branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <file_sep>module Temple
module Mustache
class Engine < Temple::Engine
use Temple::Mustache::Parser
use Temple::Mustache::Compiler
filter :ControlFlow
filter :Escapable, :use_html_safe
filter :MultiFlattener
filter :DynamicInliner
generator :ArrayBuffer
end
end
end
<... | 6d93097a5c88469bf625b236785cd166c12ded9a | [
"Ruby"
] | 5 | Ruby | raphaelcosta/temple-mustache | fd486f58b26937bd6764cfd41d3581fa041446dc | eca249829c3131b2d86bfe96f92188cc5be533d7 |
refs/heads/master | <repo_name>zhangfeizhangyide/9.linux_app_manlon_elevator_display<file_sep>/v3/source/pic/piclist/picList.c
/*
实现思路: 获取 "/pic" 目录中的图片的名字信息保存在链表中
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <pic_manager.h>
/****************... | ae3421faca0b77974b283c49669b8530863e1670 | [
"C",
"Makefile"
] | 34 | C | zhangfeizhangyide/9.linux_app_manlon_elevator_display | 37d81859d054830ee6f45e60f9a2d3111d8c92d4 | c26b9580bfad26fafd26ee8e8d2793f011a974e0 |
refs/heads/master | <repo_name>gaoliru/heimatoutiao<file_sep>/src/components/index.js
// 需要使用vue.js注册
// Vue.use会调用对象中的install方法
import LayoutHeader from './home/layout-header.vue'
import LayoutAside from './home/layout-aside.vue'
import BreadCrumb from './common/bread-crumb.vue'
export default {
install: function (Vue) {
// 注册组件 全... | 088697c8e39af684abcbce268632dfdcfad21eee | [
"JavaScript"
] | 3 | JavaScript | gaoliru/heimatoutiao | 237c28b9b1e49d5a7cfa6dc8c945377e15282267 | 6a3d544075d0a675238f7cbbc75d4f463bb9b4cf |
refs/heads/main | <repo_name>blancnoir-d/Kotlin_BroadcastReceiverExample<file_sep>/app/src/main/java/com/shis/project/lockscreenexample/ScreenBroadcastReceiver.kt
package com.shis.project.lockscreenexample
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.widget.Toast
... | 3216b6c7ab69b352466beeede81b8b370da1b43d | [
"Kotlin"
] | 2 | Kotlin | blancnoir-d/Kotlin_BroadcastReceiverExample | 9208a7b55d471338b58097a42754de3c3c8c5366 | 27c96cb195f5a87d9e7b17255d58a8f316268546 |
refs/heads/master | <file_sep>e = 145673456
output = e % 7 == 0
print(output)
<file_sep>def reverse (my_string):
reversed_string = ''
for char in my_string:
reversed_string = char + reversed_string
return reversed_string
def make_palindrome(from_string):
return from_string + reverse(from_string)
print(make_palindr... | 94b18b154823d947ae1bd102bb59bb38b3ebd203 | [
"JavaScript",
"Python"
] | 124 | Python | green-fox-academy/attilavaczy | ac514cb87ebe356621d790f86f7abea8f42dd6ed | a3c8a684e3ab9a5f133b66d439ba37a23f5bfd12 |
refs/heads/master | <file_sep>package ru.urfu.imkn.ll
import java.util.*
operator fun <T, U> Iterable<T>.times(that: Iterable<U>) = this.flatMap { a -> that.map { b -> a to b } }
fun <T> Iterable<T>.bigrams(): Iterable<Pair<T, T>> {
var last: T? = null
val result = ArrayList<Pair<T, T>>()
for (e: T in this) {
if (l... | 867a346a80b6f8f21cbdbb4f8f6d9df82386a9e6 | [
"Markdown",
"Kotlin"
] | 4 | Kotlin | BrittleFoot/ll | 723ce51bc330e0c1b6ba16aca006e1b19e55ddb2 | b4787d1b8336bcce5648aeefac3d9f4ffd02d27c |
refs/heads/main | <file_sep>{{$namelist:= sdict
Coloque as respostas aqui, exemplo:
"valor" "resposta"
(Você precisará criar um database de dados com todas as equipes que você deseja incluir aqui primeiro)
}}
{{$sdb:= dbSetExpire .User.ID "ccid" .CCID 1800}}
{{if $cooldown:= (dbGet .User.ID "cooldownlaura")}}
{{$cdembed := cembe... | aed41562893e6fec9b89953717d70c01871acfdc | [
"Markdown",
"Go"
] | 76 | Go | glorylaflare/gartic-yagpdb | b3f28fce7fb1effb872583c8bf6e462fae6a4a96 | c62f256760bab5ab2616d8a6df9ed115dc67be09 |
refs/heads/master | <file_sep>package cn.edu.hebau.exam.controller;
import com.fesine.commons.util.CheckCodeCreateUtil;
import io.swagger.annotations.ApiOperation;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bin... | 4ca8b5217a9e074376d6b9fb2cd4b5529d8d1d26 | [
"Markdown",
"Java",
"SQL"
] | 23 | Java | fesine/school-exam | 35ac4388a5be451ed271492d952047ad0a7a0941 | 201b017179304502ad6490e6ac6e471bf1f53397 |
refs/heads/master | <file_sep>angular.module('shortly.shorten', [])
.controller('ShortenController', function($scope, $location, Links) {
// Your code here
angular.extend($scope, Links);
$scope.link = {};
$scope.addLink = function(link) {
Links.addLink(link)
.then(function() {
$scope.link = '';
$locatio... | 4f8976f9d37c4fa76a63188533fee9e94e9b9c79 | [
"JavaScript"
] | 2 | JavaScript | timdang/shortly-angular | 70c70e39a29374b50108992fdff9ed2f50488e3d | 0e3c827e464be4676881c247e3dec2d59272af86 |
refs/heads/master | <file_sep>#!/usr/bin/env python
# coding: utf-8
import numpy as np
import copy
import torch
from tqdm import tqdm
from loguru import logger
import torch.optim as optim
from torch.nn import CrossEntropyLoss
from lion.common.utils import AverageMeter
from lion.training.optimizers import BertAdam
from lion.models impor... | 506aaeccd47cb11717511d4a3cbdb7bab2eb7b0f | [
"Markdown",
"Python",
"Text"
] | 30 | Python | lixinsu/Lion | 76600eabb60b33ad3caf5240664adf4afa05007f | 31b20c192e649b7d76e7589ac356988fb0bc4ef2 |
refs/heads/main | <file_sep>import java.sql.Connection;
import java.sql.DriverManager;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
// chargement de la classe du driver en memoire
Class.forName("com.mysql.jdbc.Driver");
// URL de la bas... | 4935e35008d17a00f81a88d92a53ab17eb9a02cd | [
"Markdown",
"Java"
] | 5 | Java | MaelaLaconi/XMLSecurite | b9538d41c0d2f79c52dc8279f5f04bb5f4aabe01 | 03d4bedb1d4689e27ebc5d9bba52185666d23ade |
refs/heads/main | <repo_name>aniwhjr/project28<file_sep>/sketch.js
const Engine = Matter.Engine;
const World = Matter.World;
const Bodies = Matter.Bodies;
const Constraint = Matter.Constraint;
var dustbinObj, paperObject, groundObject;
var world;
// var Launcher;
function setup() {
createCanvas(1000, 700);
rectMode(CE... | b7375b5e3880e822ce6e4d40bcdd61757c0e29c1 | [
"JavaScript"
] | 1 | JavaScript | aniwhjr/project28 | 387fecb861282891f324f948f02eb43d6c827cb5 | 22f227c03cf50a4e62be5268207092da9cc2a431 |
refs/heads/master | <file_sep>using Microsoft.VisualStudio.TestTools.UnitTesting;
using BMICalculator;
using System;
using Moq;
using System.Diagnostics.CodeAnalysis;
namespace BMICalculatorUnitTest
{
[ExcludeFromCodeCoverage]
[TestClass]
public class BMIUnitTest
{
[DataRow(1, 1, 1, 1)]
[DataRow(0, 5, 0, 5... | b5339596491bf162e27648d2808c3399fea48cfe | [
"C#"
] | 1 | C# | x00132643/BMI | 15368315b786ce446e232531b53fe5a1b75d28bd | c64cb1ca076aa9b53562e17308d99f1c6954ea28 |
refs/heads/master | <repo_name>marschhuynh/metalsmith-cjsx2js<file_sep>/lib/index.js
var coffee = require('coffee-script')
var transform = require('coffee-react-transform')
/**
* Expose `plugin`.
*/
module.exports = plugin;
/**
* This a plugin for metalsmith convert jsx written by coffee to javascript
*
*
*/
function plugin(opti... | 23b77ad45a8ab7925d6f7b40391d9fa292cdf86a | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | marschhuynh/metalsmith-cjsx2js | ca7828cfe6738c9b120b6e1b01f3dfa0ef4344de | 5c5115ae2aed33e68eae09b6c8b0001d0b4a314f |
refs/heads/master | <file_sep>package com.orgecc.myproj
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.beans.factory.annotation.Value
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
@Configuration
open class BeanProvider {
@Valu... | b98e10fef928de049d0099211c1b712d01fee253 | [
"Markdown",
"SQL",
"Kotlin"
] | 35 | Kotlin | elifarley/kotlin-misc-lib | 7092fa06f4229fb457fda24058f0af81b458edc6 | b95c34672f5de418fc43a210856e1ab3ba42f0d1 |
refs/heads/master | <repo_name>savithamuralee/angprjs<file_sep>/src/app/app.component.ts
import { Component } from '@angular/core';
import { timeout } from 'q';
import {NgForm} from '@angular/forms'
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent... | b45b882b85e6783b1cf8acb4d407ad05878e10de | [
"TypeScript"
] | 3 | TypeScript | savithamuralee/angprjs | 6996fd0269772f49bf817d0a09de928067cf13cb | 93ff535e586c97768352c10d17ab793e794e6437 |
refs/heads/master | <file_sep>group 'com.raising.zc'
version '1.0-SNAPSHOT'
apply plugin: 'java'
sourceCompatibility = 1.8
//
//repositories {
// mavenCentral()
//}
//
//dependencies {
// testCompile group: 'junit', name: 'junit', version: '4.12'
//}
compileJava.options.encoding = 'UTF-8'
version = '1.0'
ext.vendor = 'Lyndon'
sou... | 60f1f6b443d22f54d2ff97cfa0b9b7b1dce115fb | [
"Java",
"Gradle"
] | 3 | Gradle | gy652207029/autocode | 12b36efb52ea0e87b5588c0744d6fba1771329ef | 7ee075964907a061741310a28a0ef983e0f7e50f |
refs/heads/main | <repo_name>ngrigoriew/code_cov_with_python_example<file_sep>/test/test_die.py
import unittest
from dice_package.dice import Die
class TestDie(unittest.TestCase):
def setUp(self):
self.die = Die()
def test_upper(self):
self.assertEqual('foo'.upper(), 'FOO')
<file_sep>/dice_package/dice.py
from... | 61cee015997ec4a0ee6a85edb38e1c80858f3b15 | [
"Python"
] | 2 | Python | ngrigoriew/code_cov_with_python_example | c9575b379f7b6243ec1866844c5b66939051784b | 4cc8763a4f84f2c83fc79e8704f410cc781eaebd |
refs/heads/master | <file_sep>/*Generalized quicksearch plugin using Ractive.js
Dependencies:
- Ractive.js 0.6+
- jQuery 1.5+
Version: 0.5
Author: <NAME>
Date: 2014-12-21
*/
//TODO: locking/unlocking of the input field
//adding it to the Ractive global object
Ractive.quickSearch= Ractive.extend({
template: '<DIV class=quick-search>\... | 8519180bdf0c14f678e34ee2629be1e7629c18de | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | laszlothewiz/Ractive-JS-Quick-Search | 3a51a380c7128e4e05bb95d10f84c0f3371dd967 | 4a9c5d8a51639e9c8684ec11d48395d4e35bae8a |
refs/heads/master | <file_sep># USER STORIES
# As a member of the public
# So that I can get across town
# I'd like to get a working bike from a docking station.
# As a member of the public,
# So that I am not confused and charged unnecessarily,
# I'd like docking stations not to release bikes when there are none available.
# As a main... | e105b1cab27a7ea7863662fc405baad738dbbd66 | [
"Ruby"
] | 1 | Ruby | timhyson/boris_bikes | 265bf2ecab3639d7cf4ae2bcc2d02f42d507ab20 | fb914c2194b6103f3630f707eb7e7c8a0ebeedf0 |
refs/heads/master | <repo_name>peterwald/json-schema-faker<file_sep>/spec/unit/generators/number.spec.js
var numberType = require('../../../lib/types/number');
describe("Number Generator", function() {
it("should return number with a fractional part", function() {
var n = numberType({});
expect(n).not.toEqual(Math.floor(n));
... | 4b5f9d701e13682b42718998469290337c1e3f76 | [
"JavaScript"
] | 1 | JavaScript | peterwald/json-schema-faker | 4d31ea1ee2f36b5be026c255f0ced780f91a92c4 | ea79245a2a3d0f50327983ac6526a0c26f95c77e |
refs/heads/weather | <file_sep># Weather Forecast Browser
## Purpose
Single page application that works with React/Redux and performs asynchronous calls with Redux.
## Application
User submits city name and search query outputs weather data forecast for the next 5 days. Over time, the user can search for many cities and will see additio... | bfcb6d46ff67f4332724a4029085cb9eeab4fda1 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | apellanr/ReactReduxStarter | 3a6cb0d825b81d3000ceebaf7e249a4931601e59 | 073cd580bd9115f68d40886373d3310a04296f1a |
refs/heads/master | <file_sep>const path = require('path');
module.exports = {
lintOnSave: false,
configureWebpack: {
resolve: {
// 别名
alias: {
'@': path.resolve(__dirname, './src'),
assets: path.resolve(__dirname, './src/assets'),
components: path.resolve(__dirname, './src/components'),
... | af3e3998dc7e60b33c97a46fb01a1b8cb1729300 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | 374046604/js_demo | c4791f31c1935e2b68c085de4c6bbca7abc52247 | 8750d001dbb50b2cf03c841d3a040d6ca6c4e8a0 |
refs/heads/master | <repo_name>mrzhouyu/from_ubunutu<file_sep>/hello.php
<?php
/**
* Created by PhpStorm.
* User: yuchou
* Date: 17-10-24
* Time: 下午10:39
*/
echo "hello";
?> | 046e553bd35f13799d1ae6dbd01a3682809143ed | [
"PHP"
] | 1 | PHP | mrzhouyu/from_ubunutu | 5da1e142d48c7b6f9746a5402e44bc1bfa935706 | 5a570cf262136ac057c53eed82ca0bd4a2fb250a |
refs/heads/master | <file_sep>import time
import datetime
import sys
import json
import csv
import tweepy
from tweepy import Cursor
#get tweepy set up
#auth issueSS
consumer_key="xeqUGGr9BnoqbvLJ3MSPUBUII"
consumer_secret="<KEY>"
access_token="<KEY>"
access_token_secret="<KEY>"
'''
'''#auth issue
'''
consumer_key="efYhxnD5Sq7ROQuLTf... | af2b7988cfe3cb7fe4aa6c22799667e31fa53d5a | [
"Markdown",
"Python"
] | 2 | Python | skagrawal/Twitter-Project | ebcdff0588d8508e09386877fe9b37befdc53a82 | 32849a61beaa9df1db3a92debd24bef496bf324e |
refs/heads/master | <file_sep><?php
session_start();
$user=$_SESSION['NAME'];
$session=session_id();
if(!isset($_SESSION['UID'])){
session_destroy();
echo "please login first";
header("location:prof_login.php");
}
if(isset($_POST['msgsend'])){
$id=$_SESSION['UID'];
$msg=$_POST['msg'];
$link=mysqli_connect("localhost","root","","Prof... | cb61a99650ea690a9ef15fccdde84752340ee547 | [
"PHP"
] | 15 | PHP | Sumanta111/Interact_core_php | 31acd3523fe44eff936f952820d8f1442773a18e | 035389a32491f89212d9cf125c0a2d9df85337b0 |
refs/heads/master | <repo_name>Panderio/Stage<file_sep>/server/server.js
const express = require('express');
const bodyparser = require('body-parser');
const cors = require('cors');
const PORT = 3000;
const api =require('./routes/api')
//const pers = require('./routes/person')
const app = express();
app.use(bodyparser.json());
app.use(b... | 17768664d88a8d10bce5f2bff4622c4c61d58e11 | [
"JavaScript",
"Python",
"TypeScript",
"Markdown"
] | 9 | JavaScript | Panderio/Stage | 76c325b22c959b4a7dd6c8c9770b907f214dcd9f | 9f332a4078134f25b7cb0d2f6605e4da2d6dda21 |
refs/heads/master | <file_sep>---
title: "Two Factor analysis"
output:
html_notebook: default
html_document: default
---
# Two Factor analysis
```{r setup}
# Load Test Dataset
sample_pertax <- data.frame("하늘시" = c(4, 6, 5, 4, 1, 2),
"구름시" = c(8, 5, 4, 6, 9, 10),
"바다시" = c(11, 13... | 8861540c419352afbb013eb2ef1164565db85175 | [
"Markdown",
"Python",
"Text",
"R",
"RMarkdown"
] | 12 | RMarkdown | nafonels/Grazie-urban-regeneration-candidate-model | 5e028ccd99e284e5b0bdf047412ddc003435d0fb | 49ae6e3898e7bd4dca5fedd244802c39a65de910 |
refs/heads/master | <repo_name>Shubham740/SwipeRefreshExample<file_sep>/app/src/main/java/com/example/root/pulltorefreshexample/MyRecyclerViewAdapter.java
package com.example.root.pulltorefreshexample;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGrou... | 209f52719704d7bd0bb05e735b9d4c94cc649a5e | [
"Markdown",
"Java"
] | 2 | Java | Shubham740/SwipeRefreshExample | 441eb4c79cb565ec462964da11f85c5672dcd3ee | 75759869f0308486eb79e81f0b4a3208605e4481 |
refs/heads/master | <repo_name>aarti0414/AppScripAssignment<file_sep>/front-end/script.js
const date = new Date();
let time;
function submitForm(e){
time=date.getHours()+":"+date.getSeconds();
e.preventDefault();
var name = document.forms["welcome_form"]["userName"].value;
console.log(name);
name1=name;
//store playe... | 761614a3f0172f5602762f5b8b4df0927767bc65 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | aarti0414/AppScripAssignment | fbd357b0b409ae9561223902340e400450ced41f | 28e6a828fb81c32e22a1d447e97cd8808f094fad |
refs/heads/master | <repo_name>xunzhang/xz_lab<file_sep>/mapreduce/master.go
package mapreduce
import "container/list"
import "fmt"
type WorkerInfo struct {
address string
// You can add definitions here.
}
// Clean up all workers by sending a Shutdown RPC to each one of them Collect
// the number of jobs each work has performed.
fu... | e37eebf6a742f951e574e374add86e8e71085fc0 | [
"Go"
] | 1 | Go | xunzhang/xz_lab | 4b4d5aee5689ebd595649e0d2b53202d56fb1913 | 2c0681b24bc4c5026931b381586b9e344dd08804 |
refs/heads/master | <repo_name>MikhailBig/yii2-blog<file_sep>/README.md
# YII 2 BLOG
This is a simple blog made on yii 2 framework
# DEMO
for admin panel test go to '/admin'
login: <EMAIL>
password: <PASSWORD>
https://yii2-blog.000webhostapp.com/
<file_sep>/web/ckfinder/core/connector/php/vendor/aws/aws-sdk-php/src/WorkLink/WorkLi... | 6bc44f821c82ed3b9a562e2a26ac7b992cd5ed8d | [
"Markdown",
"PHP"
] | 2 | Markdown | MikhailBig/yii2-blog | 3dcd6da411d61a3fc329a3c5608b6a380568b13d | 9c22356998455ac78714a850704b04bc6c5096cb |
refs/heads/master | <repo_name>vipin681/SBShare<file_sep>/DummyProject/Filters/RoleDetails.cs
using DummyProjectBAL;
using DummyProjectStateClass;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Security.Principal;
using System.Threading;
using System.Web;
using Sys... | 9663f061edd592a44ea92c2d371d9b02a79c5f57 | [
"JavaScript",
"C#"
] | 27 | C# | vipin681/SBShare | 49e13c48e96a209c7061a0e47ec814b124fb91c3 | e9bbb2eff9c5cfe83539ca82f1166b3df38c8a83 |
refs/heads/master | <file_sep>
////////////////////
/*var info = $('#info').offset();
$(window).on('scroll', function(){
var scrollBaja = $(this).scrollTop();
var topsi = info.top;
var leftsi = info.left;
if(scrollBaja>topsi){
$('#info').css({'left':leftsi-10+'px'}).addClass('info');
}
else{
$('#info').removeClass('info');
... | bd190c5d4ed20b455a4cfefc0834133d62369f96 | [
"JavaScript"
] | 2 | JavaScript | jhonM17/Notinube-Proyecto | 97b215d94d794f8d1e5a549b10a92f280a5130bc | ebe97f041d513c4d36baa35adcee7c49e665aa65 |
refs/heads/master | <file_sep>import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import acm.program.*;
import java.util.ArrayList;
import acm.util.*;
public class FileGenerator {
public FileGenerator(int dimension, String shape, String filename) {
the... | 1f5d797518a350a665c7970346d30fc95132484e | [
"Markdown",
"Java"
] | 3 | Java | dylanedwardmoore/Platform-for-Displaying-Multidimensional-Shapes | 8298fabdb9eca6861a99c5ecd9ba6dcee491ced2 | 815dc80defa8eaf48854f63a071fcc444fe26373 |
refs/heads/main | <file_sep>const express = require('express')
const router = express.Router()
const blocoController = require('../controllers/BlocoController')
router.get('/curso/:id/turma/:id/bloco', blocoController.index)
router.get('/curso/:id/turma/:id/bloco/:id', blocoController.show)
router.post('/curso/:id/turma/:id/bloco', blo... | 57565f1caef092828904e9253a5207202acab73d | [
"JavaScript",
"Markdown"
] | 10 | JavaScript | wellpinho/ads | 57a4b2492e005987e364ede2cc9933fdddfb870d | 212862196558fb7551456bf58006817daf80b9d9 |
refs/heads/master | <repo_name>PedroSpiet/Sistema-Sorveteria-C-<file_sep>/Sorveteria/Form1.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Sorveteria
{
pub... | 8353d08485aae48b0572b1365041ed7eb47a0e58 | [
"C#"
] | 1 | C# | PedroSpiet/Sistema-Sorveteria-C- | 09d41ab106ec1aba19866f4068c1595e997bb1f4 | ab60149a5f4784df62c5734ec49b7088d2c6d66d |
refs/heads/master | <file_sep>"# webapp-portfolio01"
<file_sep>const onClickAdd = () => {
const inputText = $('#add-text').val();
$('#add-text').val("");
const div = $('<div>', {class: 'list-row'});
// createElement(jQuery版) =
// $('new HTML', {jQo, jQo, ...});
const li = $('<li>').html(inputText);
... | d156e948eaf4dc687a39a6e3cc41b8ef47d52e5d | [
"Markdown",
"JavaScript"
] | 2 | Markdown | TatsuyaYamanoi-sys/webapp-portfolio01 | 169eff9c834966d95debf61e1a9b7875196be1b9 | ac8863b999602ef65bce785139299ee2e3376633 |
refs/heads/master | <repo_name>nanevardanyan/cafe-management<file_sep>/src/main/java/am/nv/cafe/repository/UserRepository.java
package am.nv.cafe.repository;
import am.nv.cafe.dataaccess.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframewo... | f320702618f511e09e86025fc654bda19e158251 | [
"Java",
"INI"
] | 19 | Java | nanevardanyan/cafe-management | 6f0bfbcbbba2bc6e6f7ffb4c162d95fb4b619409 | b3f488a137946449bbf66ed4ec144307159fafe4 |
refs/heads/master | <file_sep>pub mod transform;
<file_sep>//! Iterators used by the graph implementations.
use std::ops;
use std::slice;
use std::marker::PhantomData;
use std::iter::{Iterator,DoubleEndedIterator};
use super::interface::{Id, Graph, DirectedGraph};
/// Iterator over the (node or edge) indices of a graph.
#[derive(Clone... | b6592779dc431a2844bf84ba9e52b24af0c90c66 | [
"Markdown",
"Rust",
"TOML"
] | 36 | Rust | insaneinside/cripes | 5aee443a713a6de53259306eea86d97bc2ae67c4 | a7182c0e179d9fdb047769acaf85827a0ae46afa |
refs/heads/master | <repo_name>CraMo7/countries_api_learning_ajax<file_sep>/public/app.js
window.onload = function(){
console.log('App started');
if (!countries){
console.log("local countries not found");
var url = "http://restcountries.eu/rest/v1";
var request = new XMLHttpRequest;
request.open("GET", url);
reque... | 7b5a12f81b85d95435cc3f2498e2c6ab6d48b388 | [
"JavaScript"
] | 1 | JavaScript | CraMo7/countries_api_learning_ajax | e0a489087d072d0c41dc1bbad6e044fc8fa9239a | bb9fe31bc73e14c4700fc70a9a8caaea173f3805 |
refs/heads/master | <file_sep>#!/bin/bash
#due to pirateship image deficiencies
modprobe w1-gpio
modprobe w1-therm
<file_sep>#!/usr/bin/python
import argparse
import json
from w1thermsensor import W1ThermSensor
parser = argparse.ArgumentParser()
parser.add_argument("-p","--path", help="Specify a specific sensor ID. If path not provided... | 4410d66bc28219fcd0fcd814b041682ce4531de9 | [
"Python",
"Shell"
] | 2 | Shell | openpipekit/opk-1-wire-cli | f2e7138e58c527a5d64d47c92970afd3e4fa9c8f | 92827d7340c9e5ce8856a2461770d09794f283ad |
refs/heads/main | <file_sep>#Format image as a single page with description
from PIL import Image, ImageFont, ImageDraw
import urllib.request
def formatArt(art):
filename = "img.jpg"
pagesize = (2480, 3508)
margin = 0.05
textboxsize = 0.1
#Get the image from URL...
urllib.request.urlretrieve(art["primaryImage"], fil... | 35fd122b432079b9023ee58cfdbe5437f7ea679b | [
"Markdown",
"Python"
] | 4 | Python | parkchamchi/dailyArt | 51d77a228e3240c5bcab760c176257b9fdbaea16 | a307a986a27818a2f9e91dad035265741c8d52f5 |
refs/heads/master | <repo_name>jihaekim/foodie-blog<file_sep>/app.rb
require "sinatra"
require "sinatra/activerecord"
require './models/post.rb'
require './models/user.rb'
enable :sessions
get "/" do
if session[:user_id]
@user = User.find_by(id: session[:user_id])
@user_posts= Post.where(user_id: session[:user_id])... | 7882d5e8ff084e2d5163f06ca7d394421c111d90 | [
"Markdown",
"Ruby"
] | 3 | Ruby | jihaekim/foodie-blog | e1397ff8ecd4e6a0a9565520dfdba8bafa22db2f | 3355e5b45a59da543bfd5cd43dca36a97c2e3b79 |
refs/heads/master | <repo_name>yanghongsheng89/learn<file_sep>/install_android_update.sh
#!/bin/bash
yum install -y java
b=$(getconf LONG_BIT);
if [ $b -eq 32 ];then
wget -c http://dl.google.com/android/adt/adt-bundle-linux-x86-20131030.zip && echo 'download adt' && unzip adt-bundle-linux-x86-20131030.zip;
fi
if [ $b -eq 64 ];then
wge... | 37d06d1c00267da641744be795556a421d8f73a1 | [
"Markdown",
"Shell"
] | 9 | Shell | yanghongsheng89/learn | 0aa84e7a5702298862a1911e2788d038627b157d | ce744eb6558f6df9d3216245512e2e6d74759aad |
refs/heads/master | <repo_name>pollygee/homework_1<file_sep>/README.md
# homework_1
TIY Homework Due May 20
[](https://travis-ci.org/pollygee/homework_1)
Triangle test program
:shipit:
<file_sep>/triangle_test.rb
# 1. Copy thi... | 106fd4912355dc00315c03cefdada3c58783bb80 | [
"Markdown",
"Ruby"
] | 2 | Markdown | pollygee/homework_1 | 17be16633aaaeff1c9178708874c3014913022f5 | 94298b852a29157b217168db1b57ba880c70d10d |
refs/heads/main | <file_sep>using System;
using System.Threading.Tasks;
using User.Model.RequestModels;
using User.Model.ResponseModels;
namespace User.API.Services.Abstracts
{
public interface IUserService
{
Task<UserModel> GetUserByUserIdAsync(Guid userId);
Task<UserModel> CreateUserAsync(AddUserModel addUse... | adcac58d2220a3ed5e768af24482975e7d5c7f47 | [
"C#",
"YAML"
] | 22 | C# | Exvise/MicroservicesInterview | c7cbaf3505708d6e6f190b364af060941f84ea43 | 498395cbcc83c8c7f3db059c9fe94340bd7a55b2 |
refs/heads/main | <repo_name>blogic/ucentral-py-ws<file_sep>/client.py
#!/usr/bin/env python
import asyncio
import websockets
import json
from pathlib import Path
import ssl
serial = "00:11:22:33:44:55"
config = {"uuid": "0"}
state = {"uuid": "0", "cfg": 0 }
backend = None
uri = "wss://test:test@localhost:11783"
#uri = "wss://test:tes... | 4097b0ceb2d24592679902f39b4033716bd0dbeb | [
"Python"
] | 2 | Python | blogic/ucentral-py-ws | aac65bb502393c4d4aaaf029a70fdeded10a946c | 6ad4b83bf4ea586ae4062bb5e60eb8b75765be50 |
refs/heads/master | <file_sep>function sendMail(){
alert("i m first !");
$.ajax({
type: "POST",
url: "https://mandrillapp.com/api/1.0/messages/send.json",
data: {
'key': '<KEY>',
'message': {
'from_email': $('#email').val(),
'to': [
{
'email': '<EMAIL>',
'name': $('#name').val(),
... | 65b280422e6dcb9713ab0f64232dd798ca867e3b | [
"JavaScript"
] | 1 | JavaScript | humpak/humpak.github.io | da5ae2bf497b0c0e39b578bb4d781bea18be9099 | a6fa2f1a118abc99d130eb68e75cf7522fc33b02 |
refs/heads/master | <repo_name>jordansmellie/Logic-Model-Employee-Timeclock<file_sep>/EmployeeTimeclock/EmployeeTimeclock/Models/Position.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace EmployeeTimeclock.Models
{
public class Position
{
public int PositionId { get; set; }... | ea3067dded16a37c336c572cc15416a8844fc49a | [
"C#"
] | 1 | C# | jordansmellie/Logic-Model-Employee-Timeclock | e8437e493a3bc7d16cb0c5e82781d76b12c74950 | 6d0f7ebfd2faf795b3c59e797bec2ec687681ce8 |
refs/heads/master | <file_sep>#include "getNewState.hpp"
// gets the index of the next state given the current state index
// and the character seen on tape
int getNewState(const StateTable & stateTable,
const int curState, const char & charSeen)
{ for ( int i = 0; i < (signed int) stateTable.size(); i += 1 )
{ // compa... | c0268c8d1e62f915505a7d07555a7ce661dd4fb0 | [
"Markdown",
"Makefile",
"C++"
] | 24 | C++ | istvan-vonfedak/turing-machine-interpreter | 8a8b5f40349974d43a4b608b105162a984316746 | 024cd3831311424783bd7d5dceb251438d1465fe |
refs/heads/master | <repo_name>zhangyuanwei/lark-demo<file_sep>/README.md
lark-demo
=========
Demp application built with lark
<file_sep>/controllers/demo/index.js
/**
* Created by mdemo on 14/11/4.
*/
var app = require('../../app/demo');
var express = require('express');
var router = express.Router();
router.get('/', app.models.pageS... | 9aca1b973049324e25b910e344767c1f156f1853 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | zhangyuanwei/lark-demo | 0b406317662a149d4d2fb88427bdf359bdd01490 | d4580fb707f099099040ac6d48a0eab441f9d2b6 |
refs/heads/master | <file_sep>'use strict';
///Lesson28
const box = document.getElementById('box'), //console.log(box); //
btnt = document.getElementsByTagName('button'), //console.log(btnt[1]);
circl = document.getElementsByClassName('circle'), //console.log(circl);
wrapper = document.querySelector('.wrapper'),
hearts = ... | b5d210d32cfcc66009bc160f963871bf33a83fa5 | [
"JavaScript",
"Markdown"
] | 18 | JavaScript | alexbolepo/All_Projects | 016a77d3e5e4a93c16a70690a42e38704074aff6 | 37b285245bfc810c7dc7895cbac51ca89bcc9f79 |
refs/heads/master | <file_sep>import numpy as np
import matplotlib.pyplot as plt
for i in range(3):
time,acc_x,acc_y,acc_z,vel_x,vel_y,vel_z,pos_x,pos_y,pos_z = np.loadtxt(str(i) + ".txt", delimiter = ",", skiprows = 1, unpack = True)
fig1 = plt.figure(figsize=(6, 8))
graph = fig1.add_subplot(311)
graph.plot(time,acc_x, ... | 9c67300ea652778048fe9f12a378715862f0443f | [
"Java",
"Python"
] | 3 | Python | yamaneco28/DeadReckoning_java | 702a20b7e6afdc1b1f261e37c9897eb3c186a4be | badbd86446d6d627a67117b12027f7d20b5489ad |
refs/heads/main | <file_sep>using System;
using System.Collections.Generic;
using System.Text;
namespace Exercicio_3.Entities
{
class Employee
{
public double FixedSalary { get; set; }
public double ComissionPerCar { get; set; }
public Employee()
{
}
public Employee(double fix... | 1c87cd0e217c1fe9eb88f0fc313c51ac7dfea8a7 | [
"Markdown",
"C#"
] | 4 | C# | MatheusEstevesss/Exercicio_3 | af32a2f9c1f68642a408329fca3faf0b6679fff5 | 1bd019f7db0caca976d45ec09906303a6c9aa3ba |
refs/heads/master | <file_sep>import datetime
from flask_sqlalchemy import SQLAlchemy
from app import db
class ClassQuestion(db.Model):
__tablename__ = 'questions'
id_questions = db.Column(db.Integer, primary_key = True)
quiz_id = db.Column(db.Integer())
question = db.Column(db.String())
number = db.Column(db.Integ... | 3759881cda048f6ed80e32cb1711e48138608fed | [
"Python"
] | 8 | Python | FirmanMulyawan/belajar_mandiri | 303fb2b398719b3f18b77a04df63d4788ac1f18b | 587aa7c23f83f07b4433825dd6144f325422dc57 |
refs/heads/master | <file_sep>tx_gridelements {
setup {
tabs6 {
title = LLL:EXT:bootstrap_grids/Resources/Private/Language/locallang_db.xlf:tabs6.title
description = LLL:EXT:bootstrap_grids/Resources/Private/Language/locallang_db.xlf:tabs6.description
iconIdentifier = tx-bootstrapgrids-tabs6... | 9d821907539a039ce1c6e54984a3ea7609507b44 | [
"TypeScript"
] | 6 | TypeScript | MediaCluster/bootstrap_grids | 8cebd0e8d3c57c78d3d1550f4717cbb2e3b5079e | a4f3d4112abf169ee5eec6681612d1ae08202433 |
refs/heads/master | <repo_name>briecodes/mod5_frontend<file_sep>/src/components/EventPlaceholder.js
import React from 'react';
import { connect } from 'react-redux';
class EventPlaceholder extends React.Component {
render() {
return (
<React.Fragment>
<img src='/assets/party.jpg' className='placeholder-image' alt='Wa... | 7d836459fb5ea0a378cfc2b61b80d7d46eae002f | [
"JavaScript",
"Markdown"
] | 18 | JavaScript | briecodes/mod5_frontend | 2a09c6668ce8ce82437c65fd8a56ba426424a3ae | 7fc588b1d087e72df0864971c43597b7b5dfe1e7 |
refs/heads/master | <repo_name>RudrenduMahindar/EE599-HW2-Q5_3<file_sep>/README.md
# EE599-HW2-Q5_3
Write a function that converts a string to lower case: ○ Example: input: “EE599”, output: “ee599”
<file_sep>/tests/solution_test.cc
#include "src/lib/solution.h"
#include "gtest/gtest.h"
#include <vector>
TEST(LowerTest, HandlesUpperCaseSt... | 3678d1ef6301865419ae00e41e44ded34ce9a259 | [
"Markdown",
"C++"
] | 3 | Markdown | RudrenduMahindar/EE599-HW2-Q5_3 | 03355c5d5b041c1b5abd60340ce2969d689825b2 | 9401fa6d9ce08fd2de338a1856b3ee655e02d132 |
refs/heads/master | <file_sep>package numerical_analysis;
import java.math.RoundingMode;
import java.text.DecimalFormat;
import net.objecthunter.exp4j.ExpressionBuilder;
public class BisectionMethod {
public double x;
public double y;
String function;
void calculate() {
String a = ... | 572dcf097652e3a1138d3b410533fba07e538a4a | [
"Markdown",
"Java",
"C++"
] | 7 | Java | Abdelrahman26/Numerical-Analysis-Algorithms-Implementation | 6292e3f61440fced7bf9de2615fcdf72765eb38c | f6cae536472c53e0ec36b085429e1e8e44519347 |
refs/heads/master | <file_sep>// @flow
import type { AdaV1Wallets } from './types';
import { request } from './lib/v1/request';
export type GetAdaWalletParams = {
ca: string,
};
export const getAdaWallets = (
{ ca }: GetAdaWalletParams
): Promise<AdaV1Wallets> => (
request({
hostname: 'localhost',
method: 'GET',
path: ... | 93f5b7647e8923a259cfb31e0665ca78f8eea078 | [
"JavaScript",
"Markdown",
"Shell"
] | 28 | JavaScript | ELLIPAL/daedalus | 433714eee8964e96708365aae48f2c18782b4a6d | 73c6731ce837ff13af7f8911511184cbcd701a5d |
refs/heads/main | <file_sep>from database import Database
command = input("Enter command:")
a = command.split()
if a[0] == "CREATE" and a[1] == "DATABASE":
print("create_database")
db_object = Database(a[2], load=False)
elif a[0] == "CREATE" and a[1] == "TABLE":
name = input("Name of Database for the Table")
x = ... | 9e2c0e30cc76cfb334bf087062d54dc29b1e831f | [
"Python"
] | 1 | Python | MariosMp/minidbtask | 7c1cd6413b2781750d2906938e8ab8490528e936 | 23beae6f2ef1f275d9e7b2ccf269c0dec0a160d0 |
refs/heads/main | <repo_name>doluwamu/myPortfolio<file_sep>/src/components/Hero.jsx
import React, { useEffect, useRef } from "react";
import heropic from "../assets/img/hero_pic.png";
import Typed from "typed.js";
// import resume from "../assets/docs/resume.pdf";
const Hero = () => {
const el = React.useRef(null);
React.useEffect... | e31b159809cde5deec222c32283562e445b1f6a9 | [
"JavaScript"
] | 10 | JavaScript | doluwamu/myPortfolio | 350635b761ab910471fce43cb3c18aae06bce8a8 | 970468f38985619e5bc054190f537b21666a62d6 |
refs/heads/master | <repo_name>pardeep889/practice_redux<file_sep>/src/components/photo.js
import React from 'react';
import PhotoContainer from '../containers/photo_container';
const Photo = () => {
const photoActionForProps = (item) => (
item.map((item,i) => (
<div key = {i}>
<img width="250" hei... | 3eae68d68cd500ae5d49bd4cabfda21c5d90d60d | [
"JavaScript"
] | 11 | JavaScript | pardeep889/practice_redux | 3cb0168640f365e716ef9e6ac1268013c99d23f8 | fd96ea33bab1478a536543d96f3fc923b0b82025 |
refs/heads/master | <repo_name>khr-rakib/amazon-clone<file_sep>/src/Home.jsx
import React from "react";
import "./Home.css";
import Product from "./Product";
const Home = () => {
return (
<div className="home">
<img
src="https://cdn.technadu.com/wp-content/uploads/2018/07/Amazon-Prime-Day-2018-Featured-Banner.jpg"
... | 0ebb3b8da17c9cc6d1abbbdfc72a80f7bae5762f | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | khr-rakib/amazon-clone | 5c292f898476c90c75908bad2aaedf2598d11473 | ded65b60dc9bc63467e881a20b281603678a69c2 |
refs/heads/master | <file_sep>package com.thoughtworks.ketsu.infrastructure.mybatis.mappers;
import com.thoughtworks.ketsu.domain.Order;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface OrderMapper {
void save(@Param("order") Order order);
Order findById(@Param("id") String id);
List<Ord... | ed3ff98576fe2f1791694665560659ed093f026f | [
"Markdown",
"Java",
"SQL"
] | 19 | Java | HFCherish/order3 | 66b3f759eeadd35d3b4d9c97aee2d42bdc15b7ff | f073720cfa2e964a2425925c85b4d3612bab175e |
refs/heads/master | <repo_name>mtrojas/toggl-track-project<file_sep>/README.md
# **Toggl Track Project**
### VPC
#### Database
#### API Server
#### Consul Cluster
### Routing, Storage and CDN
#### Load Balancer
#### Cloud Storage
#### Cloud CDN
### Diagram

<file_sep... | d04b2a0e6635252b48479a760f5abddd5b7c60b6 | [
"Markdown",
"TOML",
"Shell"
] | 3 | Markdown | mtrojas/toggl-track-project | 995d15c39f491729d2fdadb765901f4969bec6ca | 4f2da0040345258b4586d95e19ce328013f3332f |
refs/heads/master | <repo_name>waifuNET/Server-on-socket<file_sep>/ConsoleCOMSERVER/Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using System.Drawing;
namespace ConsoleCOMSERVER
{
clas... | 3f9e8b3541b613e84d936cdd522a506caf52333d | [
"C#"
] | 1 | C# | waifuNET/Server-on-socket | 6c8f288c8b3ecf1ea8e7477a41223a4ae6f55143 | 40753a0e52fb3d3d023cf19e05ef3885bdadfffe |
refs/heads/master | <repo_name>Arghun-dev/e-commerce-full-version<file_sep>/README.md
# React-Router
## React-Router-Dom
### history:
We use this to push some url:
```
<button onClick={() => props.history.push('/topics')}>Topics</button>
```
### match: { isExact, params: {}, path, url }
VERRRRYYYYYY USEFUL: main usage of match be... | d661a8b4b78a7c76b94bd0fb778d9cc615304320 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Arghun-dev/e-commerce-full-version | 437462081bfbd8201528ad4a44dcaa922db8e2de | bed011827a2fad3700f5be8dca1c0281c87ecdb7 |
refs/heads/master | <repo_name>sandroperes/VS2017---Crk<file_sep>/README.md
# VS2017---Crk
Avaliação Prática - Crk
<file_sep>/Avaliacao/Crk.Dominio/Artista.cs
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Tex... | 0150ca6e9e6dacc594a0addbd40d24c82f01e223 | [
"Markdown",
"C#"
] | 13 | Markdown | sandroperes/VS2017---Crk | 173a5d064d3c99dbc7dccce2c84c2ac6f112e192 | b2d1e8acbf9d8bce2780499c1daa2e336b22153d |
refs/heads/master | <file_sep>using System;
using System.Diagnostics;
namespace PRF.Utils.Tracer.Configuration
{
/// <summary>
/// La classe de configuration du traceur
/// </summary>
public sealed class TraceConfig
{
/// <summary>
/// Le nom du traceur (exactement, celui du traceSource) sous lequel i... | a44dd2d525da319e9a1cb3e624083c44395d318a | [
"Markdown",
"C#"
] | 80 | C# | Berreip/PRF.Utils.Core | 92265127e7aba3fe7e62fae0558600fa53a71260 | e47f6f1c0e06557a5c61043f857a2e81ef47de9b |
refs/heads/master | <file_sep>var {RtmClient, RTM_EVENTS, WebClient} = require('@slack/client');
var token = process.env.SLACK_SECRET || '';
var web = new WebClient(token);
var rtm = new RtmClient(token);
var {User, Reminder, Meeting} = require('./models');
var axios = require('axios');
var moment = require('moment');
var _ = require('... | d9cfcd943a7dc311d327ea05f94bbd8bc1eb833f | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | HorizonsBot/NewBot | 3d6c62f0bbc0964e437da7452b1a1057d3191d37 | 2ec8ea3603fae417095e685937422d16e3965fe2 |
refs/heads/master | <repo_name>jsgrowing315/nodejs-docx-pdf-converter<file_sep>/public/js/demo.js
$(".note").hide();
$(".btn-save").click(function () {
var valid = true;
var data = {};
$("input,textarea").each(function (index,ele) {
var val = ele.value;
if(val.trim() == "") valid = false;
data[$(ele).at... | 6ddde87ec98252ab42faf527b0b949fc5b02f0f1 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | jsgrowing315/nodejs-docx-pdf-converter | 29c73d1041b9b3e4973f68281b014bd47f650b9d | 11b4a51d964ff5f30f6bb9e371e40833c0f47c53 |
refs/heads/master | <file_sep>#include "std_lib_facilities.h"
int main()
{
int y = 0;
try
{
//Cout << "Success!\n"; 1
cout << ++y << " Success!\n";
//cout << "Success!\n; 2
cout << ++y << " Success!\n";
//cout << "Success" << !\n" 3
cout << ++y << " Success" << "!\n";
//cout << succ... | 846804d4f255a2b8148f728ba83b9eb0f8aa31c3 | [
"C++"
] | 4 | C++ | tothantal/BevProg | 30fe36cc73362ec8256c518f6cd568f94d875018 | a3ed206b54a5b87842c087e1d1a0d027c7738d8e |
refs/heads/master | <file_sep>package com.coppermobile.form;
import com.orm.SugarRecord;
/**
* @author <NAME>
*/
public class UserModel extends SugarRecord {
private boolean detailsSaved;
//sign up
private String mUserFirstName;
private String mUserMiddleName;
private String mUserLastName;
private String mUse... | ed65219bd967c1e245ba487cb6b2680360280af2 | [
"Java"
] | 11 | Java | rohan20/Form | 8de4dd473b5d0ef17ba94f380e75cf15aba9a8c1 | d37fce6b1eb20644318eff60de689e1ed24da8bc |
refs/heads/master | <repo_name>ozpoo/ozpoo<file_sep>/single-work.php
<?php get_header(); ?>
<?php
if(is_ssl()) {
$scheme = "https";
} else {
$scheme = "http";
}
?>
<main role="main">
<?php while (have_posts()) : the_post(); ?>
<div class="panel nobottom">
<div class="flex back no-mobile-flex">
<div>
<?php $t... | 5ffcc1da1bb22315b631b8163cb3ee366063d2a0 | [
"PHP"
] | 22 | PHP | ozpoo/ozpoo | 5967a834c6497e0dece5f7c13cf25903b3160d1d | 964ecdb0d20adbe727d584299a472cd72f9834ef |
refs/heads/master | <file_sep>export default function() {
// eslint-disable-next-line
const colorStyles = figma.getLocalPaintStyles();
const colors = []; // array of hex values and their names
const gradientColors = [];
function rgbToHex(int) {
let hex = Number(int).toString(16);
if (hex.length < 2) {
hex = `0${he... | 82e4ed54bec98615069ed1ffeb92484594104156 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | joelbqz/figma-tailwindcss | f1da0946b6c5a82b922b2e252add0027bd20c009 | ff1689952e62a91d672e4a676d7adaa7aceb5b33 |
refs/heads/master | <repo_name>Search2know/tail<file_sep>/src/main/java/tail.java
import org.kohsuke.args4j.Argument;
import org.kohsuke.args4j.CmdLineException;
import org.kohsuke.args4j.CmdLineParser;
import org.kohsuke.args4j.Option;
import java.io.*;
import java.util.ArrayList;
public class tail {
@Option(name = "-c", usage = "... | 296f33c191382504ef0cba094efc45659527a125 | [
"Java"
] | 1 | Java | Search2know/tail | bc377372781c477af17d1ed375529805c43d8d29 | 0ebc2181a7ac75f9fb666ec5c5ae8d16a8ca13d2 |
refs/heads/master | <repo_name>Jakubowski-jpg/untitled2<file_sep>/main.cpp
#include <iostream>
int main() {
std::cout << "zwisa misa" << std::endl;
std::cout << "misa zwisa" << std::endl;
return 0;
}
| 446eca6e62ee7188e0cf75224676bf2125eaf2f9 | [
"C++"
] | 1 | C++ | Jakubowski-jpg/untitled2 | 3db8000ef5eae6e5280be70a0ed30089f2fb615f | 4c2d83bebdbb9d42ee68af2392c197221f32dd76 |
refs/heads/master | <repo_name>hornT/NetHelper<file_sep>/src/NetHelper/MonadeHelper.cs
using System;
namespace NetHelper
{
/// <summary>
/// Упрощает запись вида if(classA != null && classA.ClassB != null && classA.ClassB.ClassC != null)
/// в var classC = classA.With(x => x.ClassB).With(x => x.ClassC)
/// if(cla... | 22c6390244a943868f6e2542aa6049ab48d9de53 | [
"Markdown",
"C#"
] | 6 | C# | hornT/NetHelper | 82c4beda995030a9f10b373de43d7acff8a57eee | c75095a38335fb344b6d12874c24644f00af716c |
refs/heads/master | <file_sep>(function() {
"use strict";
var app = angular.module('app.login', ['firebase.utils', 'firebase.auth', 'ngRoute']);
app.controller('Login', ['$scope', 'Auth', '$location', 'fbutil', function($scope, Auth, $location, fbutil) {
var vm = this;
$scope.email = null;
$scope.pass... | 522324259bdcee4744e2484c056f0e2cb19694bd | [
"TypeScript"
] | 1 | TypeScript | askobara/Ironing | e29d8d24b5635117f56caa9db9a7570a3a8100fe | 6e5820d106484153e3e8f7699da9206a843392e4 |
refs/heads/master | <repo_name>Bhuang5/Systems-HW0<file_sep>/q1.c
# include <stdio.h>
# include <stdlib.h>
int main(){
printf("The sum of the multiples of 3 and 5 below 1000 is %d\n", count(1000));
}
int count(int max){
int i;
int sum = 0;
for(i=0; i<max; i++){
if(check(i, 3))
sum+=i;
else if(check(i,5))
sum+... | 4d83bf0004ae7cd16b31beadd10950ebda6eabcf | [
"C"
] | 2 | C | Bhuang5/Systems-HW0 | db2e267d7dd5de07667af15d9a6e9631cba4623b | 6770d82696d13f81a122d52ffd48ddee6724c138 |
refs/heads/master | <repo_name>xinerC/xiner<file_sep>/app/src/main/java/com/example/jeremylim/mathgame/MainActivity.java
package com.example.jeremylim.mathgame;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class Ma... | 002a59934dad51d12144f7129552e66025e0d433 | [
"Java"
] | 2 | Java | xinerC/xiner | 9fdd94be6011ff2f5833aa8f285e537fe12da371 | 43d18a9e8478a56d8f6ee7432c9ede736ef48638 |
refs/heads/master | <file_sep>/**
* @format
*/
import {AppRegistry} from 'react-native';
import MoveAnimation from './Animations/MoveAnimation';
import FadeAnimation from './Animations/FadeAnimation';
import SplashAnimation from './Animations/SplashAnimation';
import {name as appName} from './app.json';
AppRegistry.registerComponent(a... | f5341be1cfd83ec890654fa43cc1b10bd7f611db | [
"JavaScript"
] | 4 | JavaScript | Gucal/Animation-Works | 7d9050f1d59b494d1c6eba975de2f53e478d8307 | 485f58f1a15a0dc7c553668474e75a8dcd4073d9 |
refs/heads/master | <repo_name>Dsdroid1/BigInt-CPL-<file_sep>/BigInt.c
#include<stdio.h>
#include<string.h>
#define MAX_SIZE 309//309 digits required for 2^1024-1(1024 bit largest no.),found via (characteristic of log) + 1
//#define BIT_SIZE 1024
//Using for swlab eval on git
typedef enum {POSITIVE,NEGATIVE} Sign;
typedef struct Bigint_t... | 98d895f8a521c6371b8a1fa56957a4dd9e5a0f5e | [
"C"
] | 1 | C | Dsdroid1/BigInt-CPL- | 1421dd2a0d395e85d20cec77b85ed963b1cc6e43 | 3767e513d2f667ead2d7c2772d4e28c0c2352dec |
refs/heads/main | <file_sep>from journou import db, login_manager
from time import gmtime, strftime
from flask_login import UserMixin
# function and decorater for reloading the user from the user.id stored in the session
@login_manager.user_loader
def load_user(user_id):
return Users.query.get(int(user_id))
class Forums(db.Model):
_... | 8201855664577bba110d1ea80fd3158d61bb1bcc | [
"Markdown",
"Python"
] | 4 | Python | adityamujumdar/Journou | a0bf1daa2d69ffc59f6738c323c9c78b67f7fc66 | c3217261a19dac3913053cab0dbe50987de78199 |
refs/heads/master | <file_sep>-- C# LSP integration through omnisharp
local pid = tostring(vim.fn.getpid())
local lspconfig = require("lspconfig")
vim.g.OmniSharp_server_path = '/usr/bin/omnisharp'
local on_attach_omnisharp = function(client)
-- https://github.com/williamboman/mason-lspconfig.nvim/issues/211
client.server_capabi... | d8f06c49fea36805d7a06c2c1b997e95bb3fdada | [
"Lua"
] | 22 | Lua | AlisCode/dotfiles | 5d7fc3a7f220573f509de51ce65682f800ba4639 | d6f85313d94a82adf869b58ec2da604c13e85a25 |
refs/heads/master | <repo_name>agpchil/ct_table_for<file_sep>/CHANGELOG.md
# Changelog
## version 0.1.14.beta to be released
- ...
## version 0.1.13.beta
- added whole row clikable link as an option
## version 0.1.12.beta
- added option to don't truncate cell strings, passing `:no_truncate` as an attribute parameter
- added settings... | 97067a1c6279f256400c14a532f6c4755cb05de7 | [
"Markdown",
"Ruby"
] | 2 | Markdown | agpchil/ct_table_for | 172f886454490b6483b0436bb94ca76bf67f49c5 | 3f95eb16eaa6801bb79168353f7c7adf3565770a |
refs/heads/master | <file_sep>// ==============================
// Characters and places
// ==============================
const hobbits = [
'<NAME>',
'Samwise "Sam" Gamgee',
'Meriadoc "Merry" Brandybuck',
'Peregrin "Pippin" Took'
];
const buddies = [
'<NAME>',
'Legolas',
'Gimli',
'Strider',
'Boromir'
];
const b... | c0bfa4ec6feff8b8d826a7ec5e5e7d4fcf397eec | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | Clandestine1/hw-u01-d10-dom-press-release | 42ec23a768eb5373d4ebfd7a31ee3ccc52143227 | 16c73fe97193826ec245f3238c8551149d997f10 |
refs/heads/master | <repo_name>ZakKaioken/48-Hour-Clock<file_sep>/48 Hour Clock/MainWindow.xaml.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Timers;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Do... | 5712d7b05f2f58efe64ed0d5ded16569595daf42 | [
"Markdown",
"C#"
] | 2 | C# | ZakKaioken/48-Hour-Clock | 1d572ba67973cb58621cfb7de600716334c48da7 | 35911a1bc9468072eb10866102fc9cae2784343e |
refs/heads/master | <file_sep><?php
namespace Spreads;
use Exception;
use GuzzleHttp\Client;
/**
* Класс получения данных от биржы localbitcoins
* @see https://localbitcoins.net/api-docs/
*
* @author <NAME>
*/
class LocalbitcoinsSource implements SourceInterface {
public function getCurrentData() {
try {
$j... | 6040add0c691658f089fccbb474d267415b1c67c | [
"Swift",
"Ruby",
"PHP"
] | 20 | PHP | andrey-mostovoy/Spreads | 570b5c516c282c2330a8bc993d79a411353be40d | 8015e17ddd5d619cde810baefa2fa2ce928e39d6 |
refs/heads/main | <repo_name>LambdaDigamma/prosemirror-to-html<file_sep>/src/Nodes/TableHeader.php
<?php
namespace ProseMirrorToHtml\Nodes;
class TableHeader extends TableCell
{
protected $nodeType = 'tableHeader';
protected $tagName = 'th';
}
<file_sep>/tests/Marks/LinkTest.php
<?php
namespace ProseMirrorToHtml\Test\Marks;
... | 155423767f4196e8dfb181b0cf3254e866fb5895 | [
"PHP"
] | 2 | PHP | LambdaDigamma/prosemirror-to-html | 4abb937cef4be150e6424a0b5678c220a92b17e9 | 462a90ae4ab78ac6267dbaadb2ce8105cca92e7d |
refs/heads/master | <file_sep>library(shiny)
# Define UI for application that filters cars based on MPG then sorts by quarter mile time
shinyUI(fluidPage(
# Application title
titlePanel("Find the fastest car based on minimum MPG"),
# Sidebar with a slider input for the MPG threshold
sidebarLayout(
sidebarPanel(
he... | 30176cf38aed462543bf1dddc0f114c94446da41 | [
"R"
] | 2 | R | rwkpaxvt/DevelopingDataProducts | 614bf18396c548d89e3dd1641d16b7f5928d25ef | 519dd4ad20c913e441e9f1e3d5cd5bc801d993ec |
refs/heads/master | <repo_name>uNNatuRaLtm/practiceSneks<file_sep>/app/snake_0.py
from base_snake import BaseSnake
from brain import decide
import json
class Snake0(BaseSnake):
def move(self, data):
decision = decide(data)
return decision
def name(self):
return "Training Snake 0"
def color(self):
... | cc9308c9ad92120b483bf1be8751984edb4d109e | [
"Markdown",
"Python"
] | 6 | Python | uNNatuRaLtm/practiceSneks | 0c9c1c5479175294a68dee5e5124b1d6fd09a2e9 | e3650346b68ca36e07febbce708acc64b22a95ae |
refs/heads/master | <repo_name>AlexDrob/KittenWallpaper<file_sep>/app/src/main/java/com/android/example/kittenwallpaper/LiveWallpaperService.java
package com.android.example.kittenwallpaper;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.service.wallpa... | a76ad789e67fda7e3ba65e9d62e440a3217b53c0 | [
"Markdown",
"Java"
] | 2 | Java | AlexDrob/KittenWallpaper | 85d804e0b60238cd8510de3fd67c0599f69d073f | 78259ea6b5a77394cf74a24850cff9bd47fc70cf |
refs/heads/master | <repo_name>stasfilin/PostToFacebook<file_sep>/README.md
PYTHON
==============
Post To Facebook
==============
Post to facebook using Graph API
You need install requests module for using this code.
<file_sep>/example.py
import webbrowser
import requests # pip install requests
class Facebook:
def __init__(self):
... | 2c5073ab649d26dccf7e28a362939fdc31d30148 | [
"Markdown",
"Python"
] | 2 | Markdown | stasfilin/PostToFacebook | c4a125eb1ac6116b8393874835c2bfa5a73e5b67 | 40c6c980c9f3e5d58014e83b3f1c1440c5b8bc79 |
refs/heads/master | <repo_name>saimkhan92/Shell-Scripts<file_sep>/loop_syntax_test.sh
#!/bin/bash
# Test Program
# Shell program to display numbers from 1 to 10 using different loops
# This script is not my own creation and is being used just for later referencing
# Copyright (c) 2005 nixCraft project <http://cyberciti.biz/fb/>
# method... | b6cf345a26c938e782079bf258ac4c5a2e53e881 | [
"Markdown",
"Shell"
] | 5 | Shell | saimkhan92/Shell-Scripts | e87750936492719e70bd57ca2b13d1b25d02b5bf | ab72e44d9e325e8abdbca51d03a4d99b16ecd9ec |
refs/heads/master | <repo_name>kateryna1118/hotel07<file_sep>/src/main/java/ua/softserve/hotel/service/UserService.java
package ua.softserve.hotel.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springfra... | 93f4eac08e0ce6b63f4b344eabf90542420ab815 | [
"Java",
"SQL",
"INI"
] | 23 | Java | kateryna1118/hotel07 | e35334ba1df380dd2f7fb277e46db9edf0205194 | 01d18e6a10e0772431fdb7a27cc0e86c06a07199 |
refs/heads/master | <file_sep>#!/usr/bin/env python3
import Image
import sys
import random
IMG_SIZE = 640, 480
charRamp = ['@', '#', '%', '*', '+', '=', '-', ':', '.', '`', ' ']
#charRamp = ['@', '%', '*', '+', '=', '-', '.', ' ']
def getChar(average):
noise = random.randint(-10,10)
#average += noise
if (averag... | 90f7cf3e9f09b02b3895385d361256ad1de8959a | [
"Markdown",
"Python"
] | 2 | Python | sovel011/ImageToAsciiArt | 4416500ec989eb0397cd090ea0ce45f10f4f251b | 8b74e2a34ef230d52330326436cc557637c5a4c0 |
refs/heads/master | <file_sep>export GOBIN = $(PWD)/bin
GOLANGCI_LINT = $(GOBIN)/golangci-lint
GOLANGCI_LINT_VERSION = v1.19.1
.PHONY: CI
CI:lint test
.PHONY: lint
lint:$(GOLANGCI_LINT)
$(GOLANGCI_LINT) run ./...
.PHONY: test
test:
go test ./...
# Tools
$(GOLANGCI_LINT):
go get github.com/golangci/golangci-lint/cmd/golangci-lint@$... | 87d078cdf89f7ea1bb609f64f3b05dfee25d5931 | [
"Go",
"Go Module",
"Makefile",
"Markdown"
] | 8 | Makefile | glumen/boilerserv | 0e1bb5d97c064edc6c7eb15d5d11d1391c7b321f | 59c0314346fce80da0cd7a37e053ec94b0e9ab76 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.