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># Shape ์ค๊ณ ๊ด๋ จ
## Shape
๊ธฐ์กด์ ๋ Dot์ ๊ฐ์ง๋ Circle/Line/Segment ๋ฅผ ๋ Vector2 ๋ง์ ๊ฐ์ง๊ฒ ๋ฐ๊พธ๊ณ ๊ธฐ์กด์ ๋ํ์ฒ๋ผ ์ฌ์ฉํ๋ ค๋ฉด ๋ ์ ์ ์์กดํ๋ Rule์ ์ฌ์ฉํ๊ฒ๋ ์ค์ ํ๊ฒ๋ ํ๋ ค๊ณ ํจ.
<file_sep>๏ปฟusing System.Linq;
using System.Collections.Generic;
using Grid.Framework;
using Grid.Framework.Components;
using Grid.Framework.GUIs;
using Microsoft.Xna.Framework;
... | 4fbed7793216b31b33c018e445352a0cc8e1d903 | [
"Markdown",
"C#"
] | 21 | Markdown | bigblueberry/GCS | 706e72e9ef7221f8a392d5e1853e8a13fd98c0eb | 810ec4ed36b724e15e59fd0687824f6aaa0d106a |
refs/heads/master | <file_sep>//===============ROTATE WORDS================//
var html = '';
var words = [
{Title: ' Web Designer.'},
{Title: ' Innovator.'},
{Title: ' Ski Coach.'},
{Title: ' Longboarder.'},
{Title: ' Technologist.'},
{Title: ' Baltimorean.'},
{Title: ' Do-It-Yourselfer.'},
{Title: ' Problem-Solver.'}
]... | a97ba6bec7591cce16d367a835ffb96b99121ac2 | [
"JavaScript"
] | 3 | JavaScript | berziiii/off-piste-redesign | f101c1f527a95b847e33b3aee85de8304426b056 | 87c62a153d444d0036fa279aa4b6a86fe20ecfb4 |
refs/heads/master | <file_sep>๏ปฟusing Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Script.Services;
namespace KendoUIAppDemo.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
... | 554fd5add85c2ae041263fbf7ac8befdf66518bb | [
"C#"
] | 1 | C# | nikkipunjabi/KendoUIPOC | 144573cf4cc75e1cc27cfd2c16d461d0a7a8c6e4 | a1170b85bbaf7c886c99f2cfa6e22c783cb2d2be |
refs/heads/master | <file_sep>from banner.models import Order, Place, Place_owner, Tadbirkor
from django.shortcuts import render, redirect, get_object_or_404
from banner.forms import CreateUserForm
from django.contrib import messages
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.decorators import lo... | b6a151e08ca79ecd0c789bf2cb9445273e70a949 | [
"Python"
] | 1 | Python | MeBobur/ban | 9cd89eadd3b721bd702d69d86c26f90f62bbbc71 | 3d4dd82f2043f6cc0ba2dd55cffdc280902d6beb |
refs/heads/master | <file_sep><body>
<h1>
Understanding Routing!
</h1>
<ul>
<li>
<a href="/items">
<div>
/items
</div>
</a>
</li>
<li>
<a href="/items/1">/items/1</a>
</li>
<li>
<a href="/items/2">/items/2</a>
</li>
<li>
<a href="/bogus">/bogus<... | 90a63c594f063d5064f385781f565cccfb5c841c | [
"JavaScript",
"HTML",
"Markdown"
] | 7 | HTML | eventedmind/class-inside-iron-router | 327964ed0c8a662192929f6d16ec8245f5460d68 | e51a50415c2a7a7a2503c3d5b66b596bbdb1f838 |
refs/heads/master | <repo_name>lingmumu/react-simple-demo<file_sep>/webpack.config.js
module.exports={
entry:'./build/App.js',/**่ฎพ็ฝฎไฝ webpack็ๅ
ฅๅฃ*/
output:{/**่พๅบ*/
path:'./js',/**่พๅบ็่ทฏๅพๅฃ*/
filename:'bundle.js'/**่พๅบ็ๅๅญ ventor*/
},
module:{
loaders:[
{
test: /\.js$/,
loader: "jsx-loader"/**ๅฏไปฅๆๅ
coffeeScript-load css-... | c51873ab881a26c00a8d44b2744adb28fb4365c9 | [
"JavaScript"
] | 3 | JavaScript | lingmumu/react-simple-demo | 2852e55c3eb4e772d2600e785a15f86285795c32 | 8776aa7a8234cac0c3e2f9c4fa57a5e835a25d16 |
refs/heads/master | <repo_name>SistemasTecTlaxiaco/Prestadores-de-servicio-EGAL-<file_sep>/sistema/detalle_persona.php
<?php
session_start();
include ("correo.php");
?>
<?php
if (!isset($_GET["codigo"])) {
exit();
}
$codigo = $_GET["codigo"];
require_once "../conexion.php";
$query = mysqli_query($conection,'SELECT * FROM... | d9150b3b137ce15df02b025cc5546830f505ec33 | [
"Markdown",
"PHP"
] | 13 | PHP | SistemasTecTlaxiaco/Prestadores-de-servicio-EGAL- | 0a3146b4cf6eeb9eb6de0190b7c8b9e2a741558f | c6cc73881aa459daabe2be1dc95ddd520e2c447b |
refs/heads/master | <repo_name>gitter-badger/emerald-js<file_sep>/lib/rpc/jsonrpc.js
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(['exports'], factory);
} else if (typeof exports !== "undefined") {
factory(exports);
} else {
var mod = {
exports: {}
};
factory(mod.ex... | 4b60439f10ab189557eeefa49e899b0cacea7ac7 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | gitter-badger/emerald-js | 21bb8f7a8a94f641ae86d631bcd35d1e9109e6b2 | 12f162eb616993de2a92d4eb8e66e270dba8f041 |
refs/heads/master | <repo_name>taruti/ultimateq<file_sep>/data/user_test.go
package data
import (
"fmt"
. "launchpad.net/gocheck"
)
func (s *s) TestUser_Create(c *C) {
u := CreateUser("")
c.Check(u, IsNil)
u = CreateUser("nick")
c.Check(u, NotNil)
c.Check(u.GetNick(), Equals, "nick")
c.Check(u.GetFullhost(), Equals, "nick")
u... | 72941fee559de03f68b53e0c6b76f5f7d886dda1 | [
"Markdown",
"Go"
] | 25 | Go | taruti/ultimateq | 8b980c2141591d28eb1859ed5e12695637c5fc08 | 395745b92295bf7df730b94389696930119e1c1d |
refs/heads/master | <file_sep>package scripts;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Scanner;
public class Functions {
public static void main(String[] args) throws IOException {
String path_file_url = "uuu";
ArrayList<String> li = n... | db992a39d9d88b58487c6e951ede94fc6bc6c1b4 | [
"Java"
] | 1 | Java | NawalOuldamer/Deleicious_cogo | 1c98d1dc5d8eac75e4df41331eb48b9ed61460cb | 8dd842127cddce74b1751b1837bb2d8a69ac8111 |
refs/heads/main | <repo_name>rochyscarlata/SuperHeroesSearch<file_sep>/src/components/login/Login.js
import React, { useState, useEffect } from "react";
import Mujerm from "../../assets/img/mujerm.jpg";
import swal from "sweetalert";
import { useHistory, Redirect } from "react-router-dom";
const Login = () => {
const [email, setEmail... | 87f12cc4312cf7bc709bd509c70aa99c26d270f9 | [
"JavaScript"
] | 7 | JavaScript | rochyscarlata/SuperHeroesSearch | 02c086bdbd12f86861afdb1cb8363d6f26133aef | d792f5b51b01fdcb42fe362f245f5b29af298ce0 |
refs/heads/master | <file_sep>package com.ucucs.mybatis;
import lombok.Getter;
import lombok.Setter;
import java.util.Properties;
@Getter
@Setter
public class MybatisPlusConfig {
private String dbType;
private String dbUrl;
private String driverClassName;
private String userName;
private String password;
private String pro... | 1c7f6cc45e64fa2a633e9870bdc0e75af078ceca | [
"Markdown",
"Java",
"SQL"
] | 5 | Java | ucucs/mybatis-codegen | c01c5991596cd1b38ef2084cd92aa0c1e4e583fa | 3b4ff692c41756536b650c9db9b52c450283e35c |
refs/heads/master | <repo_name>Sukhadia1/Springboard_DSC<file_sep>/README.md
# Springboard_DSC
Springboard_DSC This repository contains all the data and ipython notebooks for all the springboard data science course exercises. It also has a directory for the capstone project.
<file_sep>/Exercises/titanic_datascience/titanic/__init__.py
# -... | c3fbfa270bae95fe26acd070d9acc825d5d1f0bc | [
"Markdown",
"Python"
] | 4 | Markdown | Sukhadia1/Springboard_DSC | 17489633ffb9b0df798b9bb79100e075e3ceb8a3 | 0636ab59005a0292a84471c6464ef83304473543 |
refs/heads/master | <file_sep>package simulator.tests;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import junit.framework.TestCase;
import simulat... | 6f599670e78cb3ab6fdef1cbed4d139e5ee5ef37 | [
"Java"
] | 16 | Java | aleruirod/BatchSystemSimulator | b7db85e0974aa82fab9fc595fcef3f9ff13dccd3 | c3e4ea5dfde014cd93cee9f2ff90ce623c908f2e |
refs/heads/main | <repo_name>mlukow/floating_point<file_sep>/fp_wrong.swift
import Metal
func test(device: MTLDevice) {
print("Testing on \(device.name)")
let url = URL(fileURLWithPath: "library.metallib")
guard let library = try? device.makeLibrary(URL: url) else {
return print("Could not create library")
}
... | 9abd6f00c65b04cd36896103ef1141452d72a54c | [
"Swift",
"C",
"Markdown",
"Shell"
] | 6 | Swift | mlukow/floating_point | 18dd1b3d786b3d648feafe67fe2eb04dfa1b6e03 | 7e4a0d5d97b3bec5959651858b517602f3cb2cbb |
refs/heads/master | <file_sep># todoapp
A simple ToDo app with html, css, js and jQuery.
Site is published at https://prosperevergreen.github.io/todoapp/
<file_sep>
$("ul").on("click", ".todo-text", function () {
$(this).toggleClass("completed");
$(this).siblings().toggleClass("completed");
})
$("ul").on("click", ".delete", funct... | 8170947182bd87f083341061b2541345b02b571b | [
"Markdown",
"JavaScript"
] | 2 | Markdown | prosperevergreen/todoapp | 2431d2df54c3cbc002b4227a12e836171f220a2b | ff5ef3c798d814e29d2ae4fb8309e314cac9402c |
refs/heads/master | <file_sep>import Home from './pages/Home'
import About from './pages/About'
import Contact from './pages/Contact'
export default [
{ path: '/', component: Home },
{ path: '/about', component: About },
{ path: '/contact', component: Contact }
]
<file_sep> => {
return Boolean(Math.round(Math.random()))
}
export const getRandomFloat = (min, max) => {
return Math.random() * (max - min) + min
}
export const getRandomInt = (min, max) => {
min = Math.ceil(min)
max = Math.floor... | d7b5e657c9e3d19a3942f2b57d43153fa9cb9a06 | [
"JavaScript"
] | 1 | JavaScript | gronula/balls | 374c21558aa8101d6b9a01d9214284e4c9fde28c | 6f395fd4d9e975f2026b4aff88598f76ae01f5dd |
refs/heads/master | <repo_name>richstu/jb_utils<file_sep>/libs/ask.py
#!/usr/bin/env python
def ask_key(question, valids, default=None):
answer = raw_input(question)
if '' not in valids: valids.append('')
if answer not in valids:
print('[Error] Did not enter valid key: '+', '.join(valids))
return ask_key(question, valids, de... | fa809c36e296e15e873721f0e47239074f5c0434 | [
"Python",
"Shell"
] | 4 | Python | richstu/jb_utils | 7f263b0b9b18cf59bf55642f76d45777e3ab21ab | 39cb7d2f4789cd2b154d7676c662bf057d67a063 |
refs/heads/master | <repo_name>venkatbhargava/FavouriteFoodSpot<file_sep>/FavouriteFoodSpot/Extensions/NavigationController+Ext.swift
//
// NavigationController+Ext.swift
// FavouriteFoodSpot
//
// Created by <NAME> on 03/07/20.
// Copyright ยฉ 2020 <NAME>. All rights reserved.
//
import UIKit
extension UINavigationController {
o... | 591e21e4d16cd2188fd25b88f9d83a6a5ee3fa47 | [
"Swift",
"Markdown"
] | 2 | Swift | venkatbhargava/FavouriteFoodSpot | 85a58c6c8317b39fccc6b16cb0557b481112c2f8 | c1bdcc746b11c267b39855026baae0012246ba28 |
refs/heads/master | <file_sep>#!/bin/bash
set -e
echo "devops.sh controls deployment for a docker swarm cluster"
if (( $# != 1 ))
then
echo "Usage : ./devops.sh [deploy | stop | restart | redeploy] [version] " 1>&2
echo "ex : ./devops.sh deploy v1" 1>&2
exit 1
fi
CMD=$1
#VERSION=$2
case "$CMD" in
init)
echo "Initi... | 434c97b3405e54c3e95cb4cd7f66f8148a776f96 | [
"Markdown",
"Shell",
"Gradle"
] | 6 | Shell | blackdog0403/spring-boot-gradle-web | 7553b69537c17534b1448f40646204c78c45392e | 139d79d9d1b392812dd38372692c0bccca9c010a |
refs/heads/master | <file_sep>๏ปฟusing System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace UserControlDemo
{
public partial class Main... | fcb0e6d614720cee3c8a7428ae421ca87f6f55b7 | [
"C#"
] | 7 | C# | nguyenngockha2904/usercontrol_csharp | 827ae300e1e70b3a286bb3e12ce9bf1c2bb065f5 | cd7212bf762d00f4e036d4527a666b8c85b749e8 |
refs/heads/master | <repo_name>kehv1n/kehv1n.github.io<file_sep>/assets/js/about.js
const data = [
{
"exerpt": "A man cannot build a reputation on what he is going to do.",
"author": "<NAME>"
},
{
"exerpt": "My mother said to me, 'If you are a soldier, you will become a general. If you are a monk, you ... | 47e2b25be0338ce3d5559c4ac1d808cf49a69a78 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | kehv1n/kehv1n.github.io | 7c379095f7ad00d164ced8a62d27a56eb36aef3d | 23a882d1bf65d5d7b290f9d5fb3da95cbf743fbd |
refs/heads/master | <repo_name>danisolo91/battleship-game<file_sep>/src/components/GameBoards.js
import { useContext, useEffect } from "react";
import { GameContext } from "../contexts/GameContext";
import GameBoard from '../factories/GameBoard';
import ComputerBoard from "./ComputerBoard";
import PlayerBoard from "./PlayerBoard";
import ... | 40a46008570df67aa8ef3dee6d9f2154fca84685 | [
"JavaScript",
"Markdown"
] | 11 | JavaScript | danisolo91/battleship-game | 5b13790c9d90c7d9d0c09bf61fe0c60af46339c3 | dcad04f7c3ceba302421c5b95958ece03b45d289 |
refs/heads/master | <repo_name>victorsens/vote-no-restaurante<file_sep>/vote-no-restaurante/vote-no-restaurante-server/src/main/java/br/com/bluesoft/votenorestaurante/domain/validation/ValidCandidatesValidator.java
package br.com.bluesoft.votenorestaurante.domain.validation;
import javax.validation.ConstraintValidator;
import javax.valid... | 9c79e92432382321a41c2927492b225b2031d7e6 | [
"JavaScript",
"Java",
"Maven POM",
"SQL"
] | 19 | Java | victorsens/vote-no-restaurante | a2d064297e4a1f83b3e25f8e00bb62fc7a37bb8f | 76cc2d2f1890096af781d9c727c16a57e6525765 |
refs/heads/master | <repo_name>feliperufin0/cadastro<file_sep>/conec.php
<?php
$servername = "localhost";
$username = "root";
$password ="<PASSWORD>";
$bd = "estoque_prod";
$con = mysqli_connect($servername, $username, $password, $bd);
?><file_sep>/cd.php
<?php
/*
$servername = "localhost";
$username = "root";
$password ="<PASSWORD>";... | d82ded415973b71d5e41fd4b13f0648346e5e46f | [
"PHP"
] | 3 | PHP | feliperufin0/cadastro | 4ff0ed7e48b75f6645f71da5738434912f7e2548 | c058c3ce537ff3eb016526bcee0a11ab11a87280 |
refs/heads/master | <repo_name>kingntop/mrp<file_sep>/sftpclient.py
import paramiko
import datetime, os
import glob
from sftpconn import sftpconn
import shutil
import json
now = datetime.datetime.now() - datetime.timedelta(minutes=10)
YMD = now.strftime("%Y%m%d")
HMD = now.strftime("%Y%M")
YMD = '20200620'
JSON_BASE = '/ho... | 51b1cc87b52ce6c78ab54ba9304498f8d8c005d1 | [
"Python"
] | 2 | Python | kingntop/mrp | 513e386daf9d35c6e725b68ab12bfd304fa75e2e | a716f395992684b7a5f107171e5a6e07561e3866 |
refs/heads/master | <file_sep>#!/bin/bash
testing=1
path="$1"
shift
if [[ "$path" = "" ]]; then
echo "no path specified"
exit 1
fi
realpath=$(realpath $path)
dir=$(dirname $realpath)
file=$(echo $realpath | sed -e "s@$dir/@@")
devdir=$(echo $dir | sed -e "s@/$USER/@/dev/@")
echo "Running tests for $realpath"
# echo "dir=$dir"
# ec... | a2559bcc6a432bfb5fa43689f1932763206538fc | [
"Shell"
] | 2 | Shell | jwatte/vim-colors | afecd96e25a5777f746abe81eb24f7371e44d425 | 31fad2729a7ac351359596a98b821a9d80f599ce |
refs/heads/master | <file_sep>source 'https://rubygems.org'
gem 'github-pages'
gem 'jekyll-github-metadata'
gem 'jekyll-relative-links'
gem 'jekyll-seo-tag'
gem 'jekyll-sitemap'
gem 'jekyll-redirect-from'
gem 'jekyll-include-cache'
gem 'jekyll-remote-theme'
gem 'jekyll-paginate'
gem 'jekyll-feed'
gem 'wai-website-plugin'
gem 'liquid', g... | 37b898e347cde5604489b572efc4cc0706028e03 | [
"Ruby"
] | 1 | Ruby | yogayya7/wai-website | 5066a3fbcf22b2a0e0f3fd8fad10b38baadaa6ba | 96b48773f4e47a893d0b04a03a7f91c3f0ffde72 |
refs/heads/master | <file_sep>def add(add1, add2):
return add1 + add2
print(add(1, 2))
def subtract(sub1, sub2):
return sub1 - sub2
print(subtract(4, 1))
def divide(divi1, divi2):
return divi1 / divi2
print(divide(8, 2))
<file_sep>from pymongo import MongoClient
import pprint
import datetime
client = MongoClient('localhost',... | 98850cf52e08afe2b7226a6162ae0ff0bad6e17c | [
"Markdown",
"Python"
] | 3 | Python | TLBU/web-335 | 982475599d0417e3c0b9fb78b4c7256c7405ff8d | a4e4bffef659505457d4551a73a994517b86928e |
refs/heads/master | <file_sep>package gojava.module8.practice;
public class Rectangle extends Shape {
private int height;
private int width;
public Rectangle(Point startPoint, int height, int width) {
super(startPoint);
this.height = height;
this.width = width;
}
@Override
public double ... | 43cb9c718e016441ddacbbeb92ff4b8e2c95e967 | [
"Markdown",
"Java",
"Text"
] | 40 | Java | Sheptytskyid/GoJava5 | 29231d58e4a190f45e0fb398c584a313572fe637 | c6a40a792b5fd1de970454107407d4eca8cac036 |
refs/heads/master | <repo_name>xuyue1231/MG5-heavy-Higgs<file_sep>/LHC_HH_2lep_rw/SubProcesses/P2_qq_zhh_z_qq_hh_llqq/coloramps.inc
LOGICAL ICOLAMP(1,1,12)
DATA(ICOLAMP(I,1,1),I=1,1)/.TRUE./
DATA(ICOLAMP(I,1,2),I=1,1)/.TRUE./
DATA(ICOLAMP(I,1,3),I=1,1)/.TRUE./
DATA(ICOLAMP(I,1,4),I=1,1)/.TRUE./
DATA(ICO... | d7a3e57e211cdec1f5b9493c86d2ee70c2af2f0f | [
"SQL",
"HTML",
"Markdown",
"C",
"C++",
"Shell"
] | 89 | SQL | xuyue1231/MG5-heavy-Higgs | 8c1b8b0dd3ec79a297130ac2dc2ae38df7c08b07 | a3752e7da5d4e37a85bea3c0e26a468103d71d02 |
refs/heads/main | <file_sep>// task : create singly linked list
// language : c++
#include <iostream>
using namespace std;
class Node {
public:
int data;
Node* next;
};
class linkedList {
public:
Node* head, *temp;
linkedList() {
head = NULL;
}
void addNode(int value) {
Node* newNode = new Node();
newNode->dat... | 24d9303cea326d4049fd69417244f8e8bb0bb396 | [
"C++"
] | 2 | C++ | Shree-2301/cpp_projects | 4ba17acce3498c678620aaee15232ddc2b70915e | 3a2b286c7862f3cfcd38407bab71a20224364eb4 |
refs/heads/main | <repo_name>alfreddo98/Network-Projects<file_sep>/mp3/receiver_main.c
#include <stdio.h>
#include <stdlib.h>
#include <netdb.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <pthread.h>
#include "buffers.... | 518a49d72b685c5b73e41ba38d9b4b4f26e2dd77 | [
"Text",
"C",
"Makefile",
"Shell"
] | 14 | C | alfreddo98/Network-Projects | 4ec6537c3400912599a0ef5f1ec46f7a4c548339 | 32b100f508c684b439fe85f770dce3750db08eb6 |
refs/heads/master | <repo_name>ahmedMubarak2024/simplerestweb<file_sep>/src/main/java/hss/GenericResource.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package hss;
import java.util.Vector... | 97ba0da8977fce9e94cfee5eaa2ad155a82f30cd | [
"Java"
] | 2 | Java | ahmedMubarak2024/simplerestweb | 117d252650f7292ccb7a495a39d52b5a97f096a7 | e9d6cb97c31ccdc396c3bccd6d35f6bc1d46b8cb |
refs/heads/main | <file_sep>#include "drive_detector.h"
#include <fstream>
#include <memory>
#include <numeric>
#include <cuda_runtime_api.h>
#include "debug_log.h"
#include "performance_count.h"
namespace lunchjet {
static size_t getMemorySize(const nvinfer1::Dims& dims, const int32_t elem_size)
{
return std::accumulate(dims.d... | d0c5c1182da6a94787824eb0307f3d2232a55279 | [
"CMake",
"Markdown",
"Python",
"C",
"C++"
] | 44 | C++ | kimito/lunchjet | c765d51e6376f597aeea0cf878bced92d734d022 | 8f3bfde9b67bd9c1ef63ed0327560de0bc6db4d6 |
refs/heads/master | <file_sep># Generated by Django 2.1.3 on 2019-03-13 20:45
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0007_auto_20190312_2016'),
]
operations = [
migrations.RemoveField(
model_name='survey',
nam... | dce288a25d253a58acc9da182c64600a4fe0441b | [
"Python"
] | 15 | Python | cwjung479/PismoClam | 20b7df14c3164a823684f47df82adfdddaecb267 | 72ff7422c08fe38a3d010f25d1fabd8f27c0cf2d |
refs/heads/master | <repo_name>benbenbob1/motion2color<file_sep>/motiontest.py
import datetime
import time
import imutils
import warnings
import numpy as np
# and now the most important of all
import cv2
VIDEO_FEED_SIZE = [272, 204] #[width, height] in pixels
MIN_AREA = (VIDEO_FEED_SIZE[0]*VIDEO_FEED_SIZE[1])/25 #minimum area size, pixel... | 05df098ea26534677fc890d7eda82a86b029c8e9 | [
"Markdown",
"Python"
] | 2 | Python | benbenbob1/motion2color | eb163ccc66205c9c0c0e3574401ed512b523ab60 | 3d4b4e5dc69ee89eb80847afc699a56ed6faa0a4 |
refs/heads/master | <repo_name>mizanmahi/maxinode<file_sep>/controller/product.js
const Product = require('../models/product')
exports.getAddProductPage = (req, res, next) => {
res.render('admin/add-product', {
path: '/admin/add-product',
pageTitle: 'Add Product'
});
}
exports.postProductPage = (req, res, next) =... | 9ed50265bf3bd0490e97ced96e2ca0c3ca5aea5a | [
"JavaScript"
] | 1 | JavaScript | mizanmahi/maxinode | b0760227e4e428fe757e1882295aa4df2337d819 | b1f34f618b247fcba42dda3e9265e467dd8f04be |
refs/heads/master | <repo_name>MehdiAit/Success_v2.2<file_sep>/success_v1/src/com/success_v1/main/Main.java
package com.success_v1.main;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import org.apache.http.NameValuePair;
import org.json.JSONArray;
import org.json.JSONException;
imp... | 0e080292ce87dac0d13a04328e6057a8c8622823 | [
"Markdown",
"Java"
] | 8 | Java | MehdiAit/Success_v2.2 | dbaffbb32a4eba203bd4d8df2709d25f2d572fd4 | eee8433e74d8d64fa8089ddba380717ccd5f11e3 |
refs/heads/master | <file_sep># info-block
ๆฏไธไธช็ๆไพง่พนๅผนๅบๆก็jsๅฐๆไปถ๏ผๅคช่ไบไผผไนไธ่ฝ็ฎๅฐ็จๅบๅๅๅ๏ผ
## ไธป่ฆๅ่ฝ
ๅฏไปฅๅจ้กต้ขๅผนๅบไธไธชๆ็คบๆก๏ผๅจ็ป่ฟๅ
ฅๅจ็ปๆทกๅบ
ๆพ็คบๆถ้ด10s๏ผไนๅฏไปฅ่ชๅทฑๅ
ณ้ญ
## ่ฐ็จๆนๆณ
```javascript
addInfo(ๆ ้ข,ๅ
ๅฎน,่ๆฏ้ข่ฒ,ๆๅญ้ข่ฒ)
```
ๆ ้ข๏ผๅ
ๅฎนๅฟ
้กป้ข่ฎพ๏ผๅฆๅๅฐฑๆฏไธชๅฅไนๆฒกๆ็ๆกๆก
่ๆฏ้ข่ฒ้ป่ฎค๏ผrgba(233, 233, 233, 0.74)
ๆๅญ้ข่ฒ้ป่ฎค๏ผ#001f3f
<file_sep>function addInfo(h,ib,bgc = '',tc = '') {
if (h == undefined || ib == undefined)... | 8fe6ce9b1fe6d9419ce4c2f1d350f6e22e247acb | [
"Markdown",
"JavaScript"
] | 2 | Markdown | misaki-kiko/info-block | a9e359088f982e78731fd96cd519f38052d4262a | 6dad20f494fec46720645eb91c2df3333d4fca96 |
refs/heads/master | <repo_name>psztefko/ING-app<file_sep>/app/src/main/java/com/example/ing_app/ui/user/UserViewModel.kt
package com.example.ing_app.ui.user
import android.view.View
import androidx.databinding.ObservableField
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
... | 803f285bdb9c3c17da5b1b0e132f6994136ec7e7 | [
"Markdown",
"Kotlin",
"Gradle"
] | 39 | Kotlin | psztefko/ING-app | 22e9d2c487d75e0bb434359f4f610e95b13a7338 | 9118da3446faf3dc1118002e5628315f9c713eae |
refs/heads/master | <file_sep>var client = new Keen({
projectId: "55f93f85d2eaaa05a699de39",
readKey: "<KEY>"
});
Keen.ready(function(){
// ----------------------------------------
// Pageviews Area Chart
// ----------------------------------------
var pageviews_timeline = new Keen.Query("maximum", {
eventCollection: "cin... | bbb078a05d991e43a2f27f921c2414707b8fe9f9 | [
"JavaScript",
"Python",
"Text"
] | 13 | JavaScript | widian/deremasu-ranking | 50f4a196639abce590781b411bc56e620157e798 | c338543f7dcd7b5a3f64ea00862d85e98011de8d |
refs/heads/main | <repo_name>zhaolinzhang/mySpider<file_sep>/mySpider/pipelines.py
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
# useful for handling different item types with a single interface
from itemadapter ... | 5e717889e9f0880f93057ff8c365f95ce7f7e553 | [
"Python"
] | 3 | Python | zhaolinzhang/mySpider | cdfa00848be9c7694eeb2d0b38dcadbc4655e146 | 347d4c4667312d21ae6524f4f2279f63f4dd8217 |
refs/heads/master | <repo_name>Starwaster/RealActiveRadiators<file_sep>/ModuleRealActiveRadiator.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using KSP;
using KSP.Localization;
using Radiators;
namespace RealActiveRadiator
{
public class ModuleRealActiveRadiator : ModuleActi... | 1723b26260149ec2a09bc5e63275e7bf7240500c | [
"Markdown",
"C#"
] | 2 | C# | Starwaster/RealActiveRadiators | b381f00ee486980a4570dc39cd70d1ca8a28758d | 0da0a6628b6965a3e3404ab9bb36bf5db2ec0e76 |
refs/heads/master | <repo_name>NUIG-ROCSAFE/CBRNeVirtualEnvironment<file_sep>/SOPRanking/RocsafeCode/Demo-IR/search_and_rank.py
import utils
import elastic_utils
import sys
import os
import insert_records
from elasticsearch import Elasticsearch
def main():
working_dir = os.path.dirname(os.path.realpath(__file__))
es = Elasticse... | 8fe2af32a03703f10ec12fee1c422814909760e2 | [
"Markdown",
"INI",
"Python",
"Text",
"R",
"Dockerfile",
"Shell"
] | 46 | Python | NUIG-ROCSAFE/CBRNeVirtualEnvironment | 440149886d7ecca6c774fc4148cf0a0718657ea8 | 821fc6e9d0f4ab4831b4fda84732fde94648f145 |
refs/heads/master | <repo_name>amiritka/golangtutor<file_sep>/main.go
package main
import (
"fmt"
"net/http"
"html/template"
//"github.com/gorilla/mux"
)
type ViewData struct{
Title string
Message []string
}
func main(){
data := ViewData{
Title : "Champion list!!",
Message : []string{"Tom",... | cd33411beb935d2744727e5fb57127aba42d98ce | [
"Go"
] | 1 | Go | amiritka/golangtutor | a5048dc2fdd9d6e63cb813786df58dbe9ee56352 | a45f087c7837373c8310f7b28ccfc51f3def5960 |
refs/heads/master | <repo_name>DevHyperCoder/calc-bot<file_sep>/src/index.ts
require("dotenv").config();
import { Client, Message, MessageEmbed } from "discord.js";
console.log(process.env.PREFIX);
async function helpCommand(msg: Message) {
await sendMessage(
msg,
`
add x y
multiply x y
divide x y
square x
sqrt x
lcm x y
hcf ... | 8fecf65f99484d46c327c9e07dbead330a6a34f1 | [
"TypeScript"
] | 1 | TypeScript | DevHyperCoder/calc-bot | c178a621350b183b94db5eaddc579d2af395141e | 92ee46e9a880365d22960f1b3b322aed46a43a87 |
refs/heads/master | <repo_name>yxj9721/coding<file_sep>/video/js/a/houdunren.js
alert('ๅ็พไบบ'); | 43d60e4a731996f63582819c330b79c47870af17 | [
"JavaScript"
] | 1 | JavaScript | yxj9721/coding | d2b2bcf78d3edde6f0a1e0c2d734472447d9a352 | 0e08acd72a81791d6e41f0b60fef9a2447e6183d |
refs/heads/master | <repo_name>Doryski/Epl_results<file_sep>/dataframe_prep.py
# ---------------- importing modules ----------------
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import plotly.offline as pyo
import plotly.graph_objs as go
plt.style.use('ggplot')
# ---------------- loading dat... | d3f96b75da7b40e1fccca6b9e1d719aa1a7ac7c9 | [
"Python"
] | 1 | Python | Doryski/Epl_results | d8ff04a851f8c070811cc67e21817d052e88e9d3 | 2d83c4b9be49d7403b2f2c93f16f8b5a453bed07 |
refs/heads/master | <repo_name>roshmani/Finalproject<file_sep>/src/navigation.js
import React from "react";
import { Link } from "react-router-dom";
export default function Navigation() {
return (
<div className="nav">
<ul className="navbar">
<li>
<Link to="/sharecode">Start Cod... | 4954e95632df9c7b67ccfee13027ced51eb315dd | [
"JavaScript",
"SQL"
] | 14 | JavaScript | roshmani/Finalproject | a2f8d4ffe0d8a1333ece5b8eb027e9d0e8dbc9ac | ab9fab55e0414007fab19eecf7d9aa0b46796f87 |
refs/heads/master | <repo_name>Ecalzo/3DWaveEquationCharting<file_sep>/README.md
# 3DWaveEquationCharting
Using D'Alembert's Solution to the wave equation and the matplotlib 3D library.

## Data, Data, Data
The graph is a solution to the wave equa... | af0b70c0053d2b23f4375a77c1933882bf3a8c46 | [
"Markdown",
"Python"
] | 2 | Markdown | Ecalzo/3DWaveEquationCharting | 1f4edecba81417642569a594a530abb2f4fc4543 | 0e61ab84a44205e2fd39396e88f11427f31322e5 |
refs/heads/master | <repo_name>AvianLearning/flask_event_list_lab<file_sep>/app/controller.py
from app import app
from flask import render_template, request, redirect
from app.models.add_event import *
from app.models.event import *
@app.route('/')
def index():
return render_template("index.html", title="Home", events=events)
... | deb46dc7005b8903e0ab79c230ab4bd2e0a84918 | [
"Python"
] | 2 | Python | AvianLearning/flask_event_list_lab | 1187622378456af6c99f54baa743e4ff4bee51b9 | 844044eca1076b1515592b825c7d59c0020eb99b |
refs/heads/main | <repo_name>zhlmnet/Remora<file_sep>/Firmware/FirmwareSource/Remora-OS5/FastAnalogIn/FastAnalogIn_LPC11UXX.cpp
#ifdef TARGET_LPC11UXX
#include "FastAnalogIn.h"
static inline int div_round_up(int x, int y)
{
return (x + (y - 1)) / y;
}
#define LPC_IOCON0_BASE (LPC_IOCON_BASE)
#define LPC_IOCON1_BASE (LPC_IOCON_BASE... | c9371298f3e75180aa8f202d0844cf79823ba2e8 | [
"C++"
] | 2 | C++ | zhlmnet/Remora | ae1513b7d3c906ac4ba21cc6faf11b504328d2ae | 3a209a8b16bfb828dea12a7c65db65acc62c09c3 |
refs/heads/master | <repo_name>ktsein/boris_bikes<file_sep>/spec/docking_station_spec.rb
require 'docking_station'
describe DockingStation do
it 'releases bike when user asks' do
expect(subject).to respond_to :release_bike
end
end
<file_sep>/spec/bike_spec.rb
require 'docking_station'
describe Bike do
it 'checks if the bike is... | 7677e3aafc43e81906401d957fa9060670ddeef7 | [
"Ruby"
] | 2 | Ruby | ktsein/boris_bikes | 397454eae0db027d28086e1a7c358131267b6559 | b779d518de1f39d1f186b874323733ffd2e39c51 |
refs/heads/master | <repo_name>darkvical/vaadin-mobile<file_sep>/src/main/java/com/vical/ui/util/DetallePersona.java
package com.vical.ui.util;
import org.apache.commons.lang3.StringUtils;
import com.vaadin.addon.touchkit.ui.NavigationManager;
import com.vaadin.addon.touchkit.ui.NavigationView;
import com.vaadin.addon.touchkit.ui.... | 472a50815a18d76814ba9cff2aaca7fe52175e81 | [
"Java"
] | 5 | Java | darkvical/vaadin-mobile | b0c6c7112f426a691f61892b551dd7d507a81258 | 117315a9412f10aa052cff027ba9befa7d5c3aab |
refs/heads/master | <repo_name>amchaudhari/KDDMM<file_sep>/Truss_AOS/src/main/java/seakers/trussaos/architecture/TrussRepeatableArchitecture.java
package seakers.trussaos.architecture;
import org.moeaframework.core.Solution;
import org.moeaframework.core.Variable;
import org.moeaframework.core.variable.BinaryVariable;
import org.moe... | f1c4e2efdcfdc07ab5853b2ec7efab5ffd09c099 | [
"Java",
"Python"
] | 6 | Java | amchaudhari/KDDMM | 94d03bb86294e4bb8f489fe2f6315b36c689a824 | d3d4e11834ad6aee3d1558473712747a36ffef19 |
refs/heads/master | <file_sep>plotall <- function() {
source("plot1.R")
source("plot2.R")
source("plot3.R")
source("plot4.R")
plot1()
plot2()
plot3()
plot4()
}<file_sep>plot1 <- function () {
library(graphics)
source("read.file.R")
data <- read.file()
# Create the plot.
par(bg = "white", mfcol = c(1,1))
hist(data$Global_ac... | def0b6736fb610dc3b20a503254ac1e2cda308a5 | [
"R"
] | 6 | R | pizzic/ExData_Plotting1 | c86f0e3104e035ad2d4cb78eebcc820046727771 | 88f432c34dc456986bd6ba73915dd9dc2049a847 |
refs/heads/master | <file_sep>'use strict';
/*
#่ใๆน
1. ้็บใๅฎ่กใฏใในใฆdevใใฃใฌใฏใใชใฎไธญใง่กใใ
2. prdใใฃใฌใฏใใชใฏๆฌ็ชใซupใใใใฎใฎใฏใชใชใใฃใง่กใใ
*/
var gulp = require('gulp');
var sass = require('gulp-ruby-sass');
var imagemin = require('gulp-imagemin');
var coffee = require('gulp-coffee');
var plumber = require('gulp-plumber');
var browserSync = require('browser-sy... | b4f1c3dc4d5325860609c91536ab078594fad5da | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | yohawing/yohawing-template | 80432a6b63dda7062ef218dd0aa892fc5782f0dc | 0bafca9f194bb6e98334d726d1b7935e437c8b8a |
refs/heads/master | <file_sep>from linkkit import linkkit
import time
from pi_info import *
def on_device_dynamic_register(rc, value, userdata):
if rc == 0:
print("dynamic register device success, rc:%d, value:%s" % (rc, value))
else:
print("dynamic register device fail,rc:%d, value:%s" % (rc, value))
# lk.on_de... | 001090098170455f2e63656b2bbd9084b6173e9c | [
"Markdown",
"Python",
"Shell"
] | 7 | Python | lijiecamel/aliyun-mqtt | b1d4e3a1dd9ba71f9fc08859917537f463c15a7b | d7850aef343a03d34eb576d6a8f32e298e5fc2aa |
refs/heads/master | <repo_name>XiaoChenqi/commonlib<file_sep>/src/main/java/com/ezdata/commonlib/core/mvp/BasePresenter.java
package com.ezdata.commonlib.core.mvp;
//import com.ezdata.xcqframeopencv.data.DataManager;
import com.ezdata.commonlib.data.DataManager;
import io.reactivex.disposables.CompositeDisposable;
import io.reactivex.... | 936a9bc2c3926cf04961233af77e37d3daaee843 | [
"Java"
] | 6 | Java | XiaoChenqi/commonlib | 2ea32095b86f52d1bc02e2babf5a60f7629d0e1b | d8c32b58a3e2a9d865e8d3bdf9f200d82ce6eb19 |
refs/heads/master | <repo_name>joejcox/monsters<file_sep>/src/components/card/card.component.jsx
import React from "react";
import "./card.styles.css";
export const Card = ({ id, name, email }) => {
return (
<div className="cards__container--card">
<img alt="monster face" src={`https://robohash.org/${id}?set=set3`} />
<... | 2316d5678f48642b640aa066d64d29ae1416529c | [
"JavaScript"
] | 4 | JavaScript | joejcox/monsters | ca965695b16989edac40054f491f11500c1876f4 | c324d5ecec622f442c3d3c46d5456959cfebb452 |
refs/heads/master | <repo_name>sarahfwood/GA-Homework-Ajax-Countries<file_sep>/starter-code/scripts/app.js
function init() {
const countryList = document.querySelector('#countries')
let countries = []
function getCountries() {
const countryFetch = fetch('https://restcountries.eu/rest/v2/all')
countryFetch
.then((res... | df8e74f21d1457ab434bab857d21855d75067c88 | [
"JavaScript"
] | 1 | JavaScript | sarahfwood/GA-Homework-Ajax-Countries | 72087fdd72cd63ce71510bc9f967182bb8c72fc6 | 9765c1ea87c27c2bf3470416ba742f2352013473 |
refs/heads/master | <repo_name>nikunjsharma1/MockApi<file_sep>/app/src/main/java/com/nikunj/mockapp/ui/main/MainAdapter.kt
package com.nikunj.mockapp.ui.main
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.PopupM... | 1267eadf27ec6a76cab2a2ca2e6a39a54e644f29 | [
"Kotlin",
"Gradle"
] | 30 | Kotlin | nikunjsharma1/MockApi | 5ca14b628ba4b4405eb26f342180d8f6048df08f | 87ab584f9571e9da215a98b43c97fe1e305ed9b5 |
refs/heads/master | <repo_name>pparthasarathy/parthas_UdacityCppND_SystemMonitorProj<file_sep>/src/linux_parser.cpp
#include <dirent.h>
#include <unistd.h>
#include <string>
#include <vector>
#include "linux_parser.h"
using std::stof;
using std::string;
using std::to_string;
using std::vector;
// DONE: An example of how to read data fr... | 4dc9f02cd3287d9b9eb5b0b866b909cde013528e | [
"C++"
] | 4 | C++ | pparthasarathy/parthas_UdacityCppND_SystemMonitorProj | b77a4392df9da94473328a907e3a961a8eb240be | 412fc2e0170f43d6f38941198a5fb57431d9b667 |
refs/heads/master | <repo_name>donatedTunic1290/certification-network<file_sep>/chaincode/contract.js
'use strict';
const {Contract} = require('fabric-contract-api');
class CertnetContract extends Contract {
constructor() {
// Provide a custom name to refer to this smart contract
super('org.certification-network.certnet');
}
... | c535f21da5ce2721c2adfa1893623bac508a09da | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | donatedTunic1290/certification-network | d45babdb19d18893e3b041e4077c86a33683e6f5 | db7c1207937b8a65d1f6f14b0d543de6617313fe |
refs/heads/master | <repo_name>superKaigon/TheCave<file_sep>/src/containers/inscription.jsx
import React, { Component } from 'react'
import { Field, reduxForm } from 'redux-form'
import { selectUser } from '../actions/index'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import { browserHistory } from 're... | 33ef527e9f211dfa66cfcccbd63b4dd82121ac11 | [
"JavaScript"
] | 9 | JavaScript | superKaigon/TheCave | 1bf526c226eeb4deba48a3f8985ff04fe0c85fb8 | caefc272a254c72b71e0b0f88be29e6b78a7298e |
refs/heads/master | <file_sep>๏ปฟusing System;
using System.Collections.Generic;
using System.Text;
namespace SimponiApp.Models
{
public class TracerAlumni
{
public string ID_PERTANYAAN { get; set; }
public string ID_SURVEY { get; set; }
public string PERTANYAAN { get; set; }
public string TIPE_JAWAB... | 6ff8348058856e10faff0b42009c6ca18da5fb97 | [
"C#"
] | 17 | C# | ekurniawan/SimponiApp | 99065bf6327bf8e20180f8a1b99f677c965e88fa | edd6099ffc3edfa6b668d0f84e76508dea105b96 |
refs/heads/master | <repo_name>paraspatel11/MapKit<file_sep>/README.md
# MapKit
This project is to demonstrate ability to code in xcode and working knowldege of implementing Map Kit in iOS apps.
Functionality:
User can search for any address and the program shows the route to the destination along with a visual of starting point to desti... | 27e4255e5162b14aa41cc4921c66edaf56486c82 | [
"Markdown",
"Swift"
] | 2 | Markdown | paraspatel11/MapKit | f0fb18e0f870913ba14b19922efb4293de19c7d8 | 5f7d1593d00765756991a8033d183067b70a0d02 |
refs/heads/master | <file_sep>
import java.util.Random;
public class Producer implements Runnable{
Random generator =new Random();
Buffer SharedLocation;
public Producer(Buffer Shared)
{
SharedLocation=Shared;
}
public void run(){
int sum=0;
for(int count =1 ;count<=10 ;count++){
try{
Thread.sleep(generator.nextInt(3... | 03ec746311df0025f0bcd107e6ccff1fe40d4c8e | [
"Java"
] | 4 | Java | DoaaAwad/OSProjectSim | 095553af0626c7dfcf2ed446ebaffe76135e75b2 | d41d701db0b7da92e4151455f2524db658f32534 |
refs/heads/master | <file_sep>//Language: English
//Translator: ntoombs19
const translations = {
filter_01: "LA Enhancer",
filter_02: "Instructions",
filter_03: "Created by",
filter_04: "Load Pages",
filter_05: "to",
filter_06: "Enable",
filter_07: "Hide All/None",
filter_08: "Scout Attack",
... | cd225f08dbd5aa7a94f41ecfc35dc14bcdf284a8 | [
"JavaScript"
] | 1 | JavaScript | syreanis/enhancer | 01a008b00561ef01d8f35093204d4d3ab4b9b797 | f8e84b98e99ce2c36c7a76cf16b4562f8fc0c4fe |
refs/heads/master | <file_sep>#ifndef NORMAL_DISTRIBUTION_CONFIDENCE_INTERVAL_H
#define NORMAL_DISTRIBUTION_CONFIDENCE_INTERVAL_H
#include "ruby.h"
void Init_confidence_interval( void );
#endif //NORMAL_DISTRIBUTION_CONFIDENCE_INTERVAL_H
<file_sep>#ifndef NORMAL_DISTRIBUTION_H
#define NORMAL_DISTRIBUTION_H
#include "model.h"
#include ... | 1b5d54301151679370fb7ace33563e2e50e426f3 | [
"C",
"Ruby"
] | 15 | C | domcermak/normal_distribution | 6ca8ebdb066b9e72be0c1d55d5ace8f0f29510d8 | fd983ac9d91fdfaed02615e09b16d20077e134ee |
refs/heads/master | <repo_name>ShubhankarS/dynamodb-export<file_sep>/README.md
# dynamodb-export
Scan a Dynamodb table in batches, transform documents as needed and write them in batches to SQS in order to be consumed by another environment
<file_sep>/migrate.js
const AWS = require('aws-sdk');
const async = require('async');
AWS.config.u... | fc2a9eee256381e0f6f470104691804483e38fca | [
"Markdown",
"JavaScript"
] | 2 | Markdown | ShubhankarS/dynamodb-export | 59115693f96213a59b45d9a1bb39db65b5e226cd | 7e762593a7cbb41db0b8c7716c20d18e033d90ae |
refs/heads/master | <repo_name>kjlundsgaard/guessing-game<file_sep>/game.py
# importing random module
from random import randint
#greet player
#get player name
name = raw_input("Hey! What's your name? ")
#print name in prompt
print "Hey %s, I'm thinking of a number between 1 and 100." % (name)
#choose random number beteen 1 and 100
de... | 136cba3b69fd4d33c4f841ddd1505d108fbc47f3 | [
"Python"
] | 1 | Python | kjlundsgaard/guessing-game | 058328d3b6022084f8154664e80ad6d8f303de65 | d0d39d2ba665c4a8f3560bd2b3ae99c34821ee8c |
refs/heads/master | <repo_name>vstishenok/School<file_sep>/View/Print.cs
๏ปฟusing System;
using System.Collections.Generic;
using Model.Entity;
namespace View
{
public static class Print
{
private const string LIST_IS_EMPTY = "Sorry, pupils is empty...";
public static string Show(IEnumerable<Pupil> list)
... | 9eb117e57d4f7ec97619d7ac6e9f60141230607c | [
"Markdown",
"C#"
] | 10 | C# | vstishenok/School | 0220bba6029c8668d836b6942ecba3b2b6cdd3ae | 71a076796feec773b28c4bd036054c71de9a8e34 |
refs/heads/master | <file_sep>๏ปฟusing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Multinet.Math.Impl
{
public class RungeKuttaMethod : INumericalMethod
{
private Dictionary<string, double> vars;
public RungeKuttaMethod()
{
vars = new Dictionary<stri... | a5015b524ca4660b1dad7cc88102585c77a28331 | [
"Markdown",
"C#"
] | 34 | C# | joaoCS/MultinetSharp | 5e160a45d76f3d1a78dea66c70078f854cbb60ec | e8f65dd51cd780312a3cd7f54da45df8e88c5c27 |
refs/heads/master | <repo_name>Jack-Madden/SEWT-Project<file_sep>/src/main/java/RegisterGUI.java
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class RegisterGUI {
public JFrame getFrame() {
return frame;
}
public JFrame frame;
public JText... | c92843cd763229c8eaac1073ac05ed5e232c33af | [
"Java"
] | 5 | Java | Jack-Madden/SEWT-Project | 0ac2991650604a1dd6ec3d811f9a32933679d956 | 89d740eccf8f9b519b99c9fe6a561d7df4c3acf8 |
refs/heads/master | <file_sep>package main
import (
"fmt"
"os"
)
const (
ExitCodeOK int = iota
ExitCodeError
)
func main() {
os.Exit(run(os.Args))
}
func run(args []string) int {
client, err := NewClient()
if err != nil {
fmt.Println(err)
return ExitCodeError
}
calendar, err := NewCalendar(client)
if err != nil {
fmt.... | d795989c5e3e57c17cb2f6ee583ce481de2e1de5 | [
"Markdown",
"Go"
] | 5 | Go | zenizh/gooce | 4ec7914010edc05cee91cffb65424e0ef2e2035f | 91fde9eabc80f6015c9cf4af3e4ec57a099798d2 |
refs/heads/master | <repo_name>nkeynes/bazel-js-testcase<file_sep>/a/src/Bar.ts
export function getBar() {
return {bar: "hello"};
}
<file_sep>/b/src/index.ts
import {getBar} from "@testws/a/Bar";
console.log(getBar());
| 10596c6179df97ddc18c74c5e2d07505eb327dd2 | [
"TypeScript"
] | 2 | TypeScript | nkeynes/bazel-js-testcase | 05fdef8af91cf7671294996576e749fbe1dd620e | 3afd923d1dcd7e79578e608fc818d43a0eae32f5 |
refs/heads/main | <file_sep>import torch
import torch.nn as nn
import torch.nn.functional as F
'''modified from https://github.com/ndrplz/ConvLSTM_pytorch/'''
class ConvLSTMCell(nn.Module):
def __init__(self, input_dim, hidden_dim, kernel_size, bias=True, forget_bias=1.0):
"""
Initialize ConvLSTM cell.
... | 4f3cd743e8143ce7b625e0d4d71bc5e4dcd2ee97 | [
"Markdown",
"Python",
"Shell"
] | 5 | Python | adizhol/ColonLight | 77bdad166c6abd25df80b920a8e5b156cfe01f25 | d1bd3b02a4fc4c0bd370b5ceda7f896f0880870d |
refs/heads/master | <file_sep>word = raw_input()
length = len(word)
start = word[0:length/2]
if length % 2 == 0:
end = word[length/2:length]
else:
end = word[length/2+1:length]
isPalendrome = True
for i in range(0,len(start)):
if start[i] != end[len(end)-(i+1)]:
isPalendrome = False
break
if isPalendrome:
print word+" is a pale... | c6c0ec167a9a2840e67f5b5cea25a20d65a05550 | [
"Python"
] | 2 | Python | Organi/karanprojects | 943053d748ba9677581070abee697f5e55ec5538 | 9b9b016d40ecf42e3657c26a71ae2fcf4c9ee778 |
refs/heads/master | <file_sep>import Component from '@ember/component';
import { computed } from '@ember/object';
export default Component.extend({
totalBill: 0,
tipValue: 0,
tipAmount: computed('totalBill', 'tipValue', function() {
return this.get('totalBill') * parseFloat(this.get('tipValue'));
}),
totalBillWithTip: compu... | f033a3cb89ed7e0c3372674aba007a9776350868 | [
"JavaScript"
] | 2 | JavaScript | ima007/tippy-test | 16e31e0338fd19ef7257b9dd8f5d088446facae7 | dfb754f247e59f32ee6d1fdbfccbc006c496c05f |
refs/heads/main | <repo_name>a-msy/IEE-B<file_sep>/Media/report/6/image.c
#include "image.h"
Image *ImageAlloc(int w, int h)
{
Image *im = (Image *)malloc(sizeof(Image));
im->W = w;
im->H = h;
im->data = (unsigned char *)malloc(3 * w * h);
return im;
}
void ImageClear(Image *im){
for(int y=0;y<im->H;y++){
... | de12486e656f03ab5d00515c60cdd3acf5b9315d | [
"Markdown",
"C"
] | 15 | C | a-msy/IEE-B | 83e981ea8826bb502ddd77633876aee33b4d7905 | 4582694d8b411d3d6e959d788b7f59680a778e54 |
refs/heads/master | <file_sep>Meteor.methods ({
addChat: function(otherUserId) {
if(Meteor.userId()) {
var chatId;
// find a chat that has two users that match current user id
// and the requested user id
var filter = {$or:[
{user1Id:Meteor.userId(), user2Id:otherUserId},
{user2Id:Met... | 638be91ff76ab264ca36a3c1b9a3b02c04c7de2f | [
"JavaScript"
] | 1 | JavaScript | choco1050/ShareEat | ef75df19522fdc2bf90376fd3a242ffd34e0ac93 | ab094a53456d13b2e736abc28a39ba23aaaf8f1b |
refs/heads/master | <repo_name>bboyle/html5-constraint-validation-API<file_sep>/test/disabled.js
(function( $ ) {
'use strict';
module( 'environment', lifecycleCVAPI );
test( 'required fields are in test form', function() {
strictEqual( $( 'form#test' ).length, 1, 'form#test is present' );
strictEqual( $( 'form#test input#foo' ... | 2d62c3d69401420a25b7ddc3394aa118d3fbe013 | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | bboyle/html5-constraint-validation-API | 8a660e606471a3bd07b84f5a7f8885841686caba | 1d8124c0cf7c9f1a7ad6ecf3ea87ec57d077fae5 |
refs/heads/master | <file_sep>from sympy import *
import math
import sympy
x=symbols("x")
expr=((x**2)-1)
n=input("Pick a number to raise and differentiate our function to ")
RaisedExpr=expand(expr**n)
while n>0:
value=sympy.diff(RaisedExpr,x)
n=n-1
RaisedExpr=value
print value | d2fbd6a14126cc0e6cda5ce206dbafb2c1d333c0 | [
"Python"
] | 1 | Python | sarahbonne/hello-darling | f568b7d3d875f1b7b575f953f779fe7bcfb42fe5 | 3b978d4d15d0f073f72fdf0fd015305950ccb3ba |
refs/heads/master | <repo_name>wgamagomes/sgm-sac-backend<file_sep>/dotnet-packages/sac/src/SGM.SAC.Domain/QuerySide/QueryHandlers/PropertyTaxQueryHandler.cs
๏ปฟusing MediatR;
using Newtonsoft.Json;
using SGM.SAC.Domain.Dto;
using SGM.SAC.Domain.HttpResponse;
using SGM.SAC.Domain.QuerySide.Queries;
using System.Net.Http;
using System.Thread... | 08ec7ac26afc9bdb6bfcc35fca388f6d4c1460b8 | [
"Markdown",
"C#"
] | 27 | C# | wgamagomes/sgm-sac-backend | be435134490cba685fd5632059e24f7d45741129 | fdca50a27f5cbe5823b78f15cbbc8325e4989848 |
refs/heads/main | <file_sep>#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
int num;
system("cls");
cout<<"Enter the Number:";
cin>>num;
int fact = 1;
for(int i=1;i<=num;i++)
{
fact = fact*i;
}
cout<<"The factorial of"<<ends<<num<<ends<<"is:"<<fact<<endl;
getch();
}
<file_sep>#include<iostream>
#includ... | 84d5c80fe6232e6083ac683589d7e53febbc8164 | [
"C++"
] | 34 | C++ | abhijeetmurmu1997/c-plus-plus-programming | b3a602fcc48d617509817b41612a371264ce0c18 | 97ddac1a6ad03bf3bc5b812185a120e6b800b557 |
refs/heads/master | <repo_name>eguitarz/mailgun-rails<file_sep>/app/controllers/letters_controller.rb
class LettersController < ApplicationController
API_KEY = ENV['MAILGUN_KEY']
API_DOMAIN = ENV['MAILGUN_DOMAIN']
API_URL = "https://api:#{API_KEY}@api.mailgun.net/v2/#{API_DOMAIN}/messages"
def index
@letters = Letter.all
end
def... | 111dc97058f015d37820a5195da450ea64af5b72 | [
"Markdown",
"Ruby"
] | 8 | Ruby | eguitarz/mailgun-rails | 9bd3bcf6eb945885d6ba5a832c5771f32019610f | d0cffce52c889ee742f446775fd6c8d25a88d8e1 |
refs/heads/master | <file_sep>
# Add by pfzhang
"""Simple layer DSL wrapper to ease creation of neural nets."""
from tvm import relay
def bitserial_conv2d(data, weight=None, **kwargs):
"""Wrapper of bitserial_conv2d which automatically creates weights if not given
Parameters
----------
data: relay.Expr
The ... | a5e7facfdd0cf514964ce9887636126e54f9d773 | [
"Python"
] | 3 | Python | kuafu1994/QNNEngine | 2e3a0d7908bb1ebe7f5f75f197e12395e5e07cf5 | 937ee76db1f0bb7771b2241bd2230f4a60127c97 |
refs/heads/master | <repo_name>MrRumIsGodLike/QuestionBank<file_sep>/01_07.py
class Solution:
def rotate(self, matrix: List[List[int]]) -> None:
"""
Do not return anything, modify matrix in-place instead.
"""
# 1.ๅธธ่ง่งฃๆณ
# N = len(matrix)
# # ๆฒฟ็ไธปๅฏน่ง็บฟไบคๆข
# for i in range(N):
... | 653526baf970446e97a3feb956c1a1a1792955ce | [
"Markdown",
"Python"
] | 8 | Python | MrRumIsGodLike/QuestionBank | 4a8ed025439a151cc3ed90eea9aa7523f2546f90 | 0983e49d3466c4b61988bda2834316a437d925d9 |
refs/heads/main | <repo_name>sanadriu/blog-with-api<file_sep>/assets/js/components/navigation.js
import { insertPostCards } from "./postCard.js";
import { clearPostCards } from "./postCard.js";
export function navigationListener() {
document.querySelector("#navigation").addEventListener("click", async function (event) {
const navBut... | 18cde95bd8c03ac9443a849a9702bf47683d07c9 | [
"JavaScript"
] | 5 | JavaScript | sanadriu/blog-with-api | fd6378a578674ce016fdf0fe06741ecaab7099b2 | 6f33763c0cf67bb7b1bfcd7f3bb1725ffea70150 |
refs/heads/master | <file_sep>#-----------------------------------------------------#
# vsm measurement plot v0.6 ----#
# former name: vsm_plt_v05_id_Hc-i.py ----#
# author: tatsunootoshigo, <EMAIL> #
#-----------------------------------------------------#
# Imports
import numpy as np
import peakutils
import matplotlib.py... | 1962c65a2ffc4c27c82b262e28a2f3c973c1d386 | [
"Markdown",
"Python"
] | 2 | Python | tatsunootoshigoio/hsthcms | 77b3df941d5f17f093c125b564952b3da43d7d3f | a7041a05ff955ec7bf356efdaa88be5f9d51915d |
refs/heads/master | <file_sep><?php
/**
* Controller is the customized base controller class.
* All controller classes for this application should extend from this base class.
*/
class Controller extends CController
{
/**
* @var string the default layout for the controller view. Defaults to '//layouts/column1',
* meaning using a s... | 1fe9cb1b2be58552b96619e2275219679147e89f | [
"Markdown",
"SQL",
"PHP"
] | 21 | PHP | dmkaaa/calendar | a769bdabaa483762d6a9541369f3ab57456b98ac | 715a64c1336230204413e2725e8199333700e4db |
refs/heads/master | <file_sep><?php get_header(); the_post(); ?>
<div class="error error--404">
<h2>404</h2>
<p class="lead text-warning">
Sorry, the content you requested does not seem to exist.
</p>
</div>
<?php get_footer(); ?><file_sep> <div id="menu_left">
<br />
<a href="<?php echo get_home_u... | 366d83eafd83c1aec3897b4cae5013ec1851d89a | [
"Markdown",
"PHP"
] | 7 | PHP | ChrisBAshton/abermads-theme | 372386b3e0ea5134750d264b416a5a2aa52cb6e0 | 726a3f1efc5d9198ce643b0ce7d434d03db6801a |
refs/heads/master | <repo_name>crashsonu/HelloWin32<file_sep>/HelloWin32/main.c
/*
All function can be called in main function of this file.
main file.
*/
//
#include<stdio.h>
void main()
{
// // makePiramid(12);
// // e_making(7, 3);
// // dynamicPiramid(11);
// //int_typeCast();
// my_loop();
my_p(5);
}
<file_sep>/HelloWin32/cons... | 96922dcbe39542b3a4e695e45ed465e5baf27683 | [
"Markdown",
"C"
] | 11 | C | crashsonu/HelloWin32 | 2c17c6064802bb2a2a3d9958651d84dcbcecc094 | bdec032997f9edb683e5bb7493d7f8ffda60e76c |
refs/heads/master | <file_sep>def odometer(oksana):
speed_list = [values for i,values in enumerate(oksana) if not i%2]
time_list = [values for i,values in enumerate(oksana) if i%2]
Distance = speed_list[0]*time_list[0]
for i in range(1, (len(speed_list))):
Distance += speed_list[i]*(time_list[i]-time_list[i-1]... | f1df2c7a870abf2070f8aa27560de7518b23797f | [
"Python"
] | 2 | Python | loky131313/sBobrovsky_course | 930a580432a44a1ac10f1f501fb7a304fd3e0c7f | ae26e0dd076d4744203498f84817777471e50231 |
refs/heads/master | <repo_name>Jmackas/Learning_JS<file_sep>/Miscellaneous/Annotating JavaScript to HTML Output.js
// Syntax
document.getElementById('LinkedHtmlID').innerHTML = "Stuff that should be output, can be a variable";
| e96a3b18fa78db887f2dce04f14881cb93a671b1 | [
"JavaScript"
] | 1 | JavaScript | Jmackas/Learning_JS | fd1afe7659f7d045eff0ac5553fc558bd8ad6c14 | 750d06d8bd26f2b5811cc7caa6d3d5ba354c10db |
refs/heads/master | <file_sep>public class Runs implements jade.content.Predicate {
private Milage _milage;
private Car _car;
public Milage getMilage() {
return _milage;
}
public void setMilage(Milage _milage) {
this._milage = _milage;
}
public Car getCar() {
return _car;
}
p... | 95cc2121d9c73211b4ae00f8e123f5caf30c2d9a | [
"Java"
] | 16 | Java | katgiadla/Java_Small_Projects | daa55c7379b9d00c2d09b325aa1a8e655a2bb0d3 | 086554f22bc3651b529fa6d0d415c4fe301ca79d |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.