id
stringlengths
64
64
content
stringlengths
500
100k
language
stringclasses
29 values
path
stringlengths
4
333
repo
stringlengths
5
116
license
stringclasses
15 values
size
int64
500
100k
lines
int64
26
8.06k
source
stringclasses
1 value
bff3886b13af12837f07065b29e0aee48d5bfa4c28a1f239a065c195d8950794
using System; using System.Collections.Generic; using System.Text; namespace Context.Interfaces.Communication { public class ProgressEventArgs : EventArgs { public string Name { get; private set; } public string Address { get; private set; } public long BytesSent { get; private set; ...
C#
src/Context.Interfaces/Communication/ProgressEventArgs.cs
shared-repos/context
mit
794
31
codeparrot/github-code
c2a29327b65e66920874dc0e210986730b7472b6901d1c1a678ffb8605a20114
<!doctype html> <html> <head> <title>Modify sample</title> <link rel="stylesheet" href="../assets/ol3/css/ol.css" type="text/css" /> <link rel="stylesheet" href="../assets/css/samples.css" type="text/css" /> </head> <body> <div id="map" class="map"></div> <script src="../assets/ol3/js/ol.js"><...
HTML
chapter08/2360OS_08_08_modify.html
openlayersbook/openlayersbook
mit
2,352
91
codeparrot/github-code
30eb46c920a5812280fccf9e7ebceb86379cbd11bf8dee60c853921333c9fbfd
// Import React import React from "react"; // Import Spectacle Core tags import { Appear, BlockQuote, Cite, CodePane, Deck, Fill, Heading, Image, Layout, Link, ListItem, List, Markdown, Quote, Slide, Spectacle, Text } from "spectacle"; // Import image preloader util import preloader ...
JavaScript
presentation/index.js
tricoder42/talk-react-django
mit
13,535
428
codeparrot/github-code
157c79fa51f488b667a20d938a3a6911d52dcccf95908503801a5d9be0a29bdf
const timers = { arcFill: null, circleFill: null, displayFill: null, guide0Fill: null, guide1Fill: null, markerFill: null, markerInterval: null, precision: null, }; const intervals = [ Math.PI / 12, Math.PI / 6, Math.PI / 4, Math.PI / 3, Math.PI / 2, Math.PI * 2 ...
JavaScript
public/scripts/options.js
ben-burlingham/protractor
mit
11,639
333
codeparrot/github-code
debf0b19111970f54f5b89e349278309b10940a1dfc4de451cc0b1e828746824
#include "HalideRuntime.h" #include "scoped_mutex_lock.h" namespace Halide { namespace Runtime { namespace Internal { struct list_head_t { halide_mutex mutex; _halide_runtime_internal_registered_filter_t *next; }; WEAK list_head_t list_head; } } } extern "C" { // This is looked up by name in Codegen_LLVM,...
C++
src/runtime/metadata.cpp
tdenniston/Halide
mit
1,413
40
codeparrot/github-code
2ef63168c4cde085c406ff9e7ab2e3dfe31b5f3660ce2fb4592b0c22e1a0f5ef
/* eslint-env node */ 'use strict'; var build = require('./tools/build'); var connectLivereload = require('connect-livereload'); var loadGruntTasks = require('load-grunt-tasks'); var merge = require('lodash/merge'); module.exports = function (grunt) { loadGruntTasks(grunt); var config = {}; // Modules me...
JavaScript
Gruntfile.js
jacksonrayhamilton/p.js
mit
5,021
244
codeparrot/github-code
3fc45cac785295922667a5e7bb8c0fc222576303ceb3965eb66b79a2809b6910
class GeckoStatus attr_accessor :label, :color, :message attr_reader :name def initialize(name) @name = name @label = 'n/a' @color = 'red' @message = 'unitialized' end def warn(message) @label = 'WARNING' @color = 'yellow' @message = message end def error(messag...
Ruby
lib/gecko_status.rb
ministryofjustice/parliamentary-questions
mit
2,054
109
codeparrot/github-code
5c7ecda4aace90faa15e7774987880d558d1392a7c970fef1af77f6207acba56
using Autodesk.Revit.DB; using Autodesk.Revit.UI; using Autodesk.Revit.UI.Selection; using View = Autodesk.Revit.DB.View; namespace RevitLookup.Core; public enum Selector { SnoopDb, SnoopCurrentSelection, SnoopPickFace, SnoopPickEdge, SnoopLinkedElement, SnoopDependentElements, SnoopActiv...
C#
RevitLookup/Core/Selectors.cs
jeremytammik/RevitLookup
mit
5,355
147
codeparrot/github-code
04a6760c948b4123e8b262a1649b1b14a3fe172acb13d0c5962b9146a3d9314a
""" Copyright (C) 2011-2012 Brandon L. Reiss Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish...
Python
phone_display_demo.py
blr246/traffic
mit
16,853
407
codeparrot/github-code
73ac8c452fcd50b77fca45c2dfbab7fe01965044ce0210905bca1ea2d2e449d8
<?php namespace IgniteOnline\WPMProInstaller; use Composer\Composer; use Composer\DependencyResolver\Operation\OperationInterface; use Composer\EventDispatcher\EventSubscriberInterface; use Composer\Installer\PackageEvent; use Composer\Installer\PackageEvents; use Composer\IO\IOInterface; use Composer\Plugin\PluginEve...
PHP
src/WPMProInstaller/Plugin.php
igniteonline/wpm-pro-installer
mit
10,588
333
codeparrot/github-code
89938a53591efd3ca88410d82dbaeddd94112570efa1ea5621d3b908b4746c28
from constants import OFFENSIVE_SCORING_MULTIPLIERS, DEFENSIVE_SCORING_MULTIPLIERS def convert_to_DK(data): if data['position'] == 'DEF': return _get_defensive_scoring(data['stats']) else: return _get_offensive_scoring(data['stats']) def _get_offensive_scoring(data): return round(_get_offe...
Python
NFL_Draftkings/ConvertToDraftKings.py
kacperadach/draftkings_points_scripts
mit
1,778
59
codeparrot/github-code
b4e75ef0b94bec6c43bdaec4f43719ee71974be78cb7fa22a3502e0e301155e4
/** * @component DynamicText * @version 0.17.0 * @description 自动滚动的文本框:文字超长时滚动显示 * * @instructions {instruInfo: ./DynamicText.md} */ import React, { Component, PropTypes, } from 'react'; import { StyleSheet, View, Text, Animated, Easing, } from 'react-native'; const styles = StyleSheet.create({ c...
JavaScript
DynamicText/index.js
dragonwong/rnx-ui
mit
4,718
218
codeparrot/github-code
0b482b12616f5b3a884483929c28e8e30bb5d13f9847685433e875ed45d0830e
<?php namespace Issue; class Product { public $id; public $code; public $name; public $description; private $_owner_id; private $_error; public function __construct($id = 0) { if ($id > 0) { $this->id = $id; $this->details(); } } public function add($parameters = array()) { if...
PHP
classes/Issue/Product.php
vanoden/Porkchop
mit
2,866
136
codeparrot/github-code
a9267cb2175d6d60a83f7512009fc5252d1811ff57c8570a85c92f61e07bca31
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>lc: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="s...
HTML
clean/Linux-x86_64-4.02.3-2.0.1/released/8.5.0~camlp4/lc/8.8.0.html
coq-bench/coq-bench.github.io
mit
7,718
175
codeparrot/github-code
15b3ca0653ed82f4b2a4f440847c0d565577d9ab495eaee1f9b88801695d0396
#!/usr/bin/python3 # -*- coding: utf-8 -*- import sys import re import os from urllib.request import urlretrieve from urllib.request import urlopen from urllib.request import build_opener, HTTPCookieProcessor from urllib.parse import urlencode, quote from http.cookiejar import CookieJar from configparser import SafeCo...
Python
imgdl.py
utopianf/maobot_php
mit
7,849
204
codeparrot/github-code
1cd73c09a216f7b34065d30380d83c5b21f1ff8286a123197e85e5618e428d02
<?php declare(strict_types=1); namespace Fazland\Notifire\Result; class ResultSet { /** * @var Result[][] */ private $results; public function __construct() { $this->results = []; } /** * Add a result to the array. * * @param Result $result * * @ret...
PHP
lib/Result/ResultSet.php
fazland/Notifire
mit
818
47
codeparrot/github-code
7d2a8167ef496b77051b0015fbd9117fc80d0fd943edbcd93abdfc98bf62343f
package vkadl; import java.io.*; import java.net.MalformedURLException; import java.net.URL; public class VkDownloadThread { private VkAudio audio; private File outputLoc; public VkDownloadThread(VkAudio audio, File outputLoc) { super(); this.audio = audio; this.outputLoc = output...
Java
src/main/java/vkadl/VkDownloadThread.java
Reductr/Vkadl
mit
1,557
54
codeparrot/github-code
ee6ca31d64df81912f4c4471a64f07765e7947e338ed9ad40648756d5786a191
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- 選舉資料查詢 --> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>中選會選舉資料庫網站</title> <link rel="stylesheet" type="text/css" href="http://db.cec.gov.tw/votehist.css"> <script typ...
HTML
mirror/prvCode_07/cityCode_004-areaCode_01-deptCode_007/voteCode_20120101T1A2-qryType_ctks-prvCode_06-cityCode_004-areaCode_01-deptCode_007-liCode_0119.html
g0v/projectV
mit
5,634
183
codeparrot/github-code
35dbccf90e48c1ac06c84aca82b3ef4ad777b54442364444b8f21bea2825daa6
# https://oj.leetcode.com/problems/powx-n/ # Implement pow(x, n). # The idea of this problem is very similar to the "divide two integers" problem. Try to match n with # 2^(2^(k-1)) series. # But still, there are various detailed corner cases to consider. class Solution: # @param x, a float # @param n, a intege...
Python
pow_x_n_medium/Solution1.py
lijunxyz/leetcode_practice
mit
1,612
57
codeparrot/github-code
d24bbd42a8fe9d94896380876bf2f3d71e079cfca1aa8760bc6fef3ec0e9dc41
/** * utilities function */ //console.log("loading util"); var log = require('log'); var util = { format:function(){ var args = util.toArray(arguments); var template = args.shift(); if(!template) return ""; var regex = /%s|%d|%j/g; return template.replace(regex,function(m0){ ...
JavaScript
modules/share/util.js
qquach/jsUnit
mit
3,697
132
codeparrot/github-code
f8339f4920d3aebf52b2393040e92489c9025cf8ae91b7389412f106da3f01c8
<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Interview with Chris Martens, Programming Languages Ph.D Candidate &mdash; Lambda Ladies</title> <link href="//fonts.googleapis....
HTML
_site/2014/09/02/interview-with-chris-martens/index.html
lambdaladies/lambdaladies.github.io
mit
14,125
215
codeparrot/github-code
7e97e4cdd57b38ba358ad7e4cea847f1259082f22a77359da90513b020f20c6b
// Copyright 2014 The Gogs Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package repo import ( "encoding/json" "github.com/Unknwon/com" api "github.com/gogits/go-gogs-client" "github.com/G-Node/gogs/models" "github.com/G-N...
GO
routes/api/v1/repo/hook.go
cgars/gogs
mit
5,639
187
codeparrot/github-code
e7f75d1eef9236db7e2826c21607c8bebf04bf82db201360cb196073244e9c71
using System.Collections.Generic; using OpenTK.Graphics.OpenGL; namespace OpenRGSS.Runtime.RGSS { public class Graphics { public static int frame_rate { get { return Engine.GetInstance().GetFrameRate(); } } public static int f...
C#
Runtime/RGSS/Graphics.cs
shlee322/openrgss
mit
1,004
48
codeparrot/github-code
cc84eabffbc982fc69a11d38ae58b0ae9c8e9058e14bc83da42c4b33b9d008c0
#include <stdio.h> #include <stdlib.h> #include <string.h> struct Student { char number[16]; char name[32]; char gender[8]; char age[8]; char type[32]; Student* next; }; Student* head; void addStudent(void); void insertStudent(void); void deleteStudent(void); void searchStudent(void); void modifyStudent(void);...
C
Exercise01/Exercise01.c
DerekDick/Data-Structure-Exercises
mit
5,966
280
codeparrot/github-code
5dcad2942a9407f4e823f56631ba62cd798941b74851b5479ff77d31ff1b3f8b
//Dependencies var restify = require('restify'); var cors = require('cors'); var appInfo = require('./package.json'); //Configuration var port = process.env.PORT || 1337; var server = restify.createServer(); //Plug-ins server.use(restify.queryParser()); server.use(restify.bodyParser()); server.use(restify.CORS()); ...
JavaScript
server.js
vkhazin/UserAgentService
mit
1,384
53
codeparrot/github-code
e3acfba80fac7cee329d386efa9f2f43e66b3d3ba0321f2d8f47c216a7dc2bf6
package org.octoprint.api.test.util; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import org.json.simple.JsonObject; import org.json.simple.Jsoner; import org.mockito.invocation.InvocationOnMock; import org.mockito.stubbing.Answer; /** * * This is a he...
Java
src/test/java/org/octoprint/api/test/util/JSONAnswer.java
robweber/octoprint-java-lib
mit
1,364
60
codeparrot/github-code
4639ce56b056808b49c91eddaa84b1e37f1a76dcc543d87b4f9d1faaf86df509
package org.aspenos.app.aoscontentserver.registry; import java.lang.*; import java.util.*; import java.sql.*; import org.aspenos.exception.*; import org.aspenos.app.aoscontentserver.defs.*; import org.aspenos.app.aoscontentserver.util.*; import org.aspenos.util.*; /** * */ public interface IWebEventR...
Java
aspenos.org/app/aoscontentserver/src/registry/IWebEventRegistry.java
pmark/AspenOS
mit
1,860
77
codeparrot/github-code
87cbd32a7f9e862aa4212b0e3425d3783ac8f4dac2f1927d13df29d016e4ec9d
import React from 'react'; import { storiesOf } from '@storybook/react'; import TimeTable from '../TimeTable'; const commonProps = { addItemButtonLabel: 'Add Task', columns: [ { title: '1', subtitle: 'DAY', items: [{ content: 'Task 1' }], disabled: true, }, { title: '2', ...
JavaScript
packages/wix-style-react/src/TimeTable/test/TimeTable.visual.js
wix/wix-style-react
mit
1,381
82
codeparrot/github-code
b7487942c61319869e082b47a92aa57ff578d11358f9ce66db36672978cad7dd
#ifdef HAVE_CONFIG_H #include "../ext_config.h" #endif #include <php.h> #include "../php_ext.h" #include "../ext.h" #include <Zend/zend_operators.h> #include <Zend/zend_exceptions.h> #include <Zend/zend_interfaces.h> #include "kernel/main.h" #include "kernel/string.h" #include "kernel/memory.h" #include "kernel/ope...
C
generated/ZendEngine_3/mcallinternal.zep.c
aaam/zephir
mit
5,090
290
codeparrot/github-code
65c79804f4e46ddad429f022145d680629ce2e14cff46661f9a280954c2d262e
//================================================================ // RS_ScreenManager.js // --------------------------------------------------------------- // The MIT License // Copyright (c) 2016 biud436 // --------------------------------------------------------------- // Free for commercial and non commercial use. ...
JavaScript
Windows/Resolutions/RS_ScreenManager.js
biud436/MV
mit
53,168
1,519
codeparrot/github-code
d9742c9ff85a0340c446c72859221fc5c29f75d20432d64c0f6484902c8f97dd
""" File: cryptopress.py Author: Zachary King Description: Cryptopress translates to 'cryptography compression.' As the name suggests, this program takes an arbitrary number of files as input and produces a single stream of ciphertext, which is the AES encrypted content. Optionally, you can output t...
Python
source/python34/cryptopress.py
zach-king/CoolPython
mit
3,596
109
codeparrot/github-code
e37af7443cf3e59434ce660a06abad09c1a4b63bb9eb8a72771008fac4b3d320
/* * File: ogr_las.h * Author: emkej * * Created on April 19, 2017, 9:14 PM */ #ifndef OGR_LAS_H #define OGR_LAS_H #include "ogrsf_frmts.h" #include <liblas/liblas.hpp> #include <fstream> class OGRLASLayer : public OGRLayer { OGRFeatureDefn *poFeatureDefn; std::ifstream *ifs; liblas::Rea...
C
ogr_las.h
MarcinPultyn/OGRLAS
mit
1,184
47
codeparrot/github-code
ea1810fb1646f171ffd4547dba97c88eb6ec3fdfc93342dda238f08fe0ab2aa8
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>reduction-effects: 21 s 🏆</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css...
HTML
clean/Linux-x86_64-4.03.0-2.0.5/released/8.8.1/reduction-effects/0.1.0.html
coq-bench/coq-bench.github.io
mit
7,619
169
codeparrot/github-code
ae7a2d9f26276aaa1863594f5cb68c48922247da104ef8a4a0da70d5c3af23b6
'use strict'; /** * Suggestions service tests */ var expect = require('chai').expect; var suggestionService = require('../../../server/services/suggestion.service'); var User = require('mongoose').model('User'); var Suggestion = require('mongoose').model('Suggestion'); module.exports = function() { describe('Serv...
JavaScript
test/server/services/suggestion.service.test.js
BenjaminBini/dilemme
mit
4,556
119
codeparrot/github-code
0b01b34d5a5b0c07a94fa0f443a0981db85312c53a353ec2f9a5f0d137496904
import { pressKey, simulateTimeline, startTimeline } from "@jspsych/test-utils"; import iatImage from "."; jest.useFakeTimers(); describe("iat-image plugin", () => { test("displays image by default", async () => { const { getHTML, expectFinished } = await startTimeline([ { type: iatImage, ...
TypeScript
packages/plugin-iat-image/src/index.spec.ts
jspsych/jsPsych
mit
10,984
387
codeparrot/github-code
ff581d337e4f3796d09462f8e083ea284a57237e6147e981f91254b712d847f9
<?php namespace App\Service\Utils\RainMap; class Map { /** @var int */ protected $width; /** @var int */ protected $height; /** @var array */ protected $heightMap; public function __construct($width, $height) { $this->width = $width; $this->height = $height; } ...
PHP
src/Service/Utils/RainMap/Map.php
Myloth/dominus
mit
944
47
codeparrot/github-code
cad50f70a368f999a899adc25d48fe86336cc873e8ff8c629dd53094950cbb60
/** * This file is part of the Eigen Recursive Matrix Extension (ERME). * * Copyright (c) 2019 Darius Rückert * Licensed under the MIT License. * See LICENSE file for more information. */ #pragma once #include "../Cholesky.h" #include "../Core.h" #include "MixedSolver.h" namespace Eigen::Recursive { /** * A ...
C
src/saiga/vision/recursive/External/Mixed/MixedSolverSchur.h
darglein/saiga
mit
6,903
248
codeparrot/github-code
4f308b4b1055537c7842a7e16ec86efc4b0e7456f47eea0b0eb66602de07aebf
# frozen_string_literal: true module Thredded class MessageboardsController < Thredded::ApplicationController before_action :thredded_require_login!, only: [:new, :create, :edit, :update] after_action :verify_authorized, except: %i(index) after_action :verify_policy_scoped, except: %i(new create edit upd...
Ruby
app/controllers/thredded/messageboards_controller.rb
jvoss/thredded
mit
1,480
53
codeparrot/github-code
b68c498ae8d5220a339318d8cfcd1b7b8f92bbee97a18a19b8fb620dfcdd129f
var _dataDir = null, _persistentData = {}; module.exports = function( rootDir, $ ) { var _load = function( name ) { $.scload( _dataDir.canonicalPath + '/' + name + '-store.json' ); }; var _save = function( name, data ) { $.scsave( data, _dataDir.canonicalPath + '/' + name + '-store.json' ); }; _d...
JavaScript
src/main/js/lib/persistence.js
carlrobert/ScriptCraft
mit
1,095
51
codeparrot/github-code
f759a76a199d3eec5bcab720661f700355f4e03bcfb774a794785ff51aab03a1
#! /usr/bin/env node var crypto = require('crypto') function xor (a, b) { var c = new Buffer(Math.max(a.length, b.length)) for(var i = 0; i < c.length; i++) c[i] = a[i] ^ b[i] return c } function guess (guess, key) { if('string' === typeof guess) { var g = new Buffer(32) g.fill(0) g.write(...
JavaScript
index.js
dominictarr/cryptographers-surprise
mit
1,325
59
codeparrot/github-code
35b57b3f73451b9caf073da71e5e0b36f30783ce44540b8e1a916127a8b69869
import * as React from 'react'; import Typography from '@mui/material/Typography'; import List from '@mui/material/List'; import ListItem from '@mui/material/ListItem'; import ListItemText from '@mui/material/ListItemText'; import Grid from '@mui/material/Grid'; const products = [ { name: 'Product 1', desc: ...
TypeScript
docs/data/material/getting-started/templates/checkout/Review.tsx
oliviertassinari/material-ui
mit
2,652
88
codeparrot/github-code
42f64c0267ffa6f9c0c8a7b7cb64b76b767083ae7f56c010c1c2c4e558a18432
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary> /// /// </summary> public class BossEnemyHeadIntroScript : MonoBehaviour { // Use this for initialization void Start() { } // Update is called once per frame void Update() { ...
C#
Assets/_Trashbin/BossEnemyHeadIntroScript.cs
HDNua/RxpbEngineUnity
mit
2,528
94
codeparrot/github-code
8b07ecaccbc41c7095bdceae71a5d98df055b01a35c9a30897e7cc3f6da6e5e6
<?php /* * This file is part of the HtmlTruncate package. * * (c) Maxime Colin <contact@maximecolin.fr> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace HtmlTruncate; class HtmlTruncate { /** * @param string $h...
PHP
src/HtmlTruncate.php
maximecolin/html-truncate
mit
2,415
89
codeparrot/github-code
64acdaf4ac0986934a7e56f3a9eadcd7837de4a127e97255fa93ef29d10c109d
/******************************************************************************* * * Class for Animations * *******************************************************************************/ #ifndef CGEANIMATEDMESH_H #define CGEANIMATEDMESH_H #include "CGEMesh.h" namespace CGEngine { // // Typedefs and Classheade...
C
src/cgengine/headers/mesh/CGEAnimatedMesh.h
sabov/jedi
mit
668
39
codeparrot/github-code
6930aec629a4a7382f199273ad22d263dd3b90c166f9be10b71bb6a76711f7c1
using System; using System.Net.Sockets; using System.Text; using Common.Logging; namespace Nabbix { internal class QueryHandler { private static readonly ILog Log = LogManager.GetLogger(typeof(QueryHandler)); private static byte[] GetResponseLength(string response) { var r...
C#
Nabbix/QueryHandler.cs
marksl/nabbix
mit
2,649
81
codeparrot/github-code
6fb7fd098f2789ca7a6ed75214fef80bc578af671ae49d70c3458fc5144a2f2c
// // PCVectorArray.h // SilverMan // // Created by Willy on 26.03.13. // Copyright (c) 2013 Willy. All rights reserved. // #ifndef __SilverMan__PCVerticleArray__ #define __SilverMan__PCVerticleArray__ #include <vector> #include <malloc/malloc.h> typedef struct PCVertex{ float Position[2]; float TexCoor...
C
SilverMan/Models/PCVertex.h
Serheo/ogles2game
mit
2,833
133
codeparrot/github-code
1e6790d46d3c6f8b6f6c08b255fef33330a7d7a7e26199b3094ef10cb2784f30
% Sune %############# % Hvad er copatterns? % Hvorfor giver copatterns mening, isoleret set? % Hvor kommer copatterns fra? (Hagino, Abel og venner) % Definition ved observation (eliminationsregler) % Eksempler % Ny viden: Copatterns %############# \section{Copatterns} \label{sec:copatterns} In functional programming,...
TeX
sections/background/copatterns.tex
sualitu/thesis
mit
8,856
209
codeparrot/github-code
4e7ea1f0f6b0f3cb87145d65728c70ff3dae2d181225d6fdb3ec33443a051b2c
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using JetBrains.Annotations; using MoreLinq; using PoESkillTree.Common.Model.Items; using POESKillTree.Utils.Extensions; namespace POESKillTree.Model.Items.StatTranslation { /// <summary> /// Interface for classes t...
C#
WPFSKillTree/Model/Items/StatTranslation/Translation.cs
l0g0sys/PoESkillTree
mit
4,439
108
codeparrot/github-code
57420b67651a0200cc3f71a838c24dd2e4903f85fceebf2e4537c0a8d941361b
/** * Copyright 2014 Daum Kakao Corp. * * Redistribution and modification in source or binary forms are not permitted without specific prior written permission. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy ...
C
src/ios/KakaoOpenSDK.framework/Versions/A/Headers/KakaoTalkLinkAction.h
methodi/KakaoLinkPlugin
mit
3,228
92
codeparrot/github-code
a7771e359aee992d25d85d802b57e21ba9b007ec686fe1548f483228efe8eb36
<!DOCTYPE html> <!--[if IE]><![endif]--> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>Interface IAttribute </title> <meta name="viewport" content="width=device-width"> <meta name="title" content="Interface IAttribute "> <m...
HTML
docs/api/ZptSharp.Dom.IAttribute.html
csf-dev/ZPT-Sharp
mit
16,785
378
codeparrot/github-code
9c0f1c1682c871ae42e16104681e4deee6fa2fafdea475488be113ad1edebb43
require 'sun_times' require 'open-uri' require 'nokogiri' require_relative 'switch.rb' class House attr_reader :switches def initialize() @sid = Nokogiri::XML(open("http://fritz.box/login_sid.lua")).at_xpath('//SID/text()').to_s ains = open("http://fritz.box/webservices/homeautoswitch.lua?sid=#{@sid}&swi...
Ruby
house.rb
sebastian-su/home-automation
mit
1,436
65
codeparrot/github-code
b45cda421b91dc4f5896f4ce4fb883b75b454b671289fc501844bb4e704d25ac
using System; namespace _10FibonacciNumbers { class Program { static void Main() { int n = int.Parse(Console.ReadLine()); int k = 1; int pre = 0; int l = 0; char p = ','; for (int i = 0; i < n; i++) { ...
C#
Homework/4-Console-In-and-Out/10FibonacciNumbers/Program.cs
GoranGit/CSharp-Part-I
mit
792
42
codeparrot/github-code
16be50626d97b57395942835a951859ce6689c2da9f84eea021d9a171fffa17b
using System; using System.Web.Mvc; using Postal; namespace WebSample.Controllers { public class EmailController : Controller { [HttpPost] public ActionResult SendSimple() { dynamic email = new EmailTemplate("Simple"); email.Date = DateTime.UtcNow.ToString(); ...
C#
src/Samples/WebSample/Controllers/EmailController.cs
vip32/postal
mit
843
36
codeparrot/github-code
af0788e3f090c3553805158dcd483c8c5816041c73d353c5a8de358aacd0fdab
<? // Prevent game-related logic from running define('MMRPG_EXCLUDE_GAME_LOGIC', true); // Require the top file for paths and stuff $setup_dir = str_replace('\\', '/', dirname(__FILE__)).'/'; $base_dir = dirname(dirname($setup_dir)).'/'; require($base_dir.'top.php'); // Require the repository index for looping requi...
PHP
admin/.setup/create-database-tables.php
AdrianMarceau/mmrpg-prototype
mit
3,619
94
codeparrot/github-code
64462710222442b775607f59a14372e534c940ec7aa1dbcc21f130f5b84435cc
package WebService.extensao.impl.database; import java.awt.Container; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.PrintStream; import javax.swing.JFrame; import AGVS.Controller.Rules.RulesUsuarios; import AGVS.Data.ConfigProcess; import AGVS.U...
Java
Supervisorio/src/WebService/extensao/impl/database/ActionCadastroSupermercados.java
cabralsilva/Supervisorio
mit
3,529
97
codeparrot/github-code
dea29210e567efc3e55485adffa59350a959d5c9ab626fa5e5c753f2c760ae60
#include <bits/stdc++.h> using namespace std; struct Edge { int v, cap, rev; Edge (int _v, int _c, int _r) : v(_v), cap(_c), rev(_r) {} }; const int MAXN = 210; const int INF = 1e8; vector<Edge> E[MAXN]; bool used[MAXN]; int dfs(int s, int t, int f) { if (s == t) return f; used[s] = true; ...
C++
HDU/1532_Drainage Ditches/1532.cc
hangim/ACM
mit
1,271
59
codeparrot/github-code
c67cdf62c2338e8ee164cefbb388f9958f19a46d1969157e8646027b779e1105
// // Tomato Media // ¾ùºâÆ÷ // ×÷ÕߣºSunnyCase // ´´½¨Ê±¼ä£º2016-01-17 // #include "pch.h" #include "EqualizerFilter.h" using namespace NS_MEDIA; using namespace NS_MEDIA_EFFECT; EqualizerFilter::EqualizerFilter(uint32_t sampleRate, float centerFreq, float bandWidth, float gain) { ThrowIfNot(sampleRate >= centerFre...
C++
Tomato.Media.Effect/Tomato.Media.Effect.Shared/Algorithms/EqualizerFilter.cpp
sunnycase/Tomato.Media
mit
1,873
75
codeparrot/github-code
3ab64a357dc88cca2258f020a4944b31e5f0ce0fc740c6167daaad0bfcffd222
/*============================================================================= Copyright (c) 2005-2011 Joel de Guzman Copyright (c) 2005-2006 Dan Marsden Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.lslboost.org/LICENSE_1_0.tx...
C++
liblsl/external/lslboost/fusion/container/deque/back_extended_deque.hpp
gazzlab/LSL-gazzlab-branch
mit
1,581
38
codeparrot/github-code
d97b4a4c6cee75fb668c48f7b6cf8724af7669c75c020712f2923ce727dc8a4c
<?php class User_model extends CI_Model { public function __construct() { parent::__construct(); } public function fetch_user_login($username,$password) { $this->db->where('username',$username); $this->db->where('password',$this->salt_pass($password)); $query = $this->db->get('users'); return $query->row...
PHP
application/models/User_model.php
ipball/ecdocument
mit
1,797
77
codeparrot/github-code
8fce012d3286dc3e0abc640a31a765d9dc50feca78e134449f324ac5ae92b730
import { Component, OnInit, ViewChild } from '@angular/core'; import { CameraService, CesiumService, CirclesEditorService, EllipsesEditorService, HippodromeEditorService, PointsEditorService, PolygonsEditorService, PolylineEditorObservable, RangeAndBearingComponent, RectanglesEditorService, ZoomToRe...
TypeScript
projects/landing-page/src/app/map-section/toolbar-example/toolbar-example.component.ts
TGFTech/angular-cesium
mit
2,223
90
codeparrot/github-code
60750e41d983bd587db8f1cc090c780720ebf1c41a28f775c2998d8aef028bf9
/** * Couchbase Lite for .NET * * Original iOS version by Jens Alfke * Android Port by Marty Schoch, Traun Leyden * C# Port by Zack Gramana * * Copyright (c) 2012, 2013, 2014 Couchbase, Inc. All rights reserved. * Portions (c) 2013, 2014 Xamarin, Inc. All rights reserved. * * Licensed under the Apache License...
C#
Couchbase.Lite/Sharpened/Auth/FacebookAuthorizer.cs
SotoiGhost/couchbase-lite-net
mit
3,103
118
codeparrot/github-code
c73aaebd2975acbde7345aeb0e9fc46560da955d6947e84311f3ff00c3febce8
module Datacash module Request class Base < Hash include Hashie::Extensions::Coercion include Hashie::Extensions::MergeInitializer def initialize(*args) self.class.keys.each do |key, options| self[key] = options.fetch(:default, nil) end super end d...
Ruby
lib/datacash/request/base.rb
stinkyink/datacash
mit
732
38
codeparrot/github-code
d69e913db65aa7552258973610b70f9a265482c48ebab17ddc33fa5d2e3a12e0
export default class Poly1305 { constructor(key) { this.buffer = new Buffer(16); this.leftover = 0; this.r = new Uint16Array(10); this.h = new Uint16Array(10); this.pad = new Uint16Array(8); this.finished = 0; var t = new Uint16Array(8), i; for (i = 8; i--;) t[i] = key.readUInt16LE(i*2); ...
JavaScript
src/crypto/poly1305.js
pgpst/dancer
mit
4,926
204
codeparrot/github-code
6509a5e274405db96cd793a169b2d20879aca8a9cfd7657dec20c477e1290f47
<!-- BEGIN CONTENT --> <div class="page-content-wrapper"> <div class="page-content"> <!-- BEGIN PAGE HEADER--> <h3 class="page-title"> Risk Form </h3> <div class="page-bar"> <ul class="page-breadcrumb"> <li> <i class="fa fa-home"></i> <a target="_self" href="<?=$site_url?>/main">Home</a> ...
PHP
application/modules/main/views/risk_register_library.php
Dede1213/PII-FIX
mit
52,085
1,251
codeparrot/github-code
9197d147ee29c8b97efc0da3d0c0e2fa05c50300579f5232e25dcd8fa20107cf
/***************************************************************************************** * * * OpenSpace * * ...
C++
modules/base/rendering/screenspaceframebuffer.cpp
OpenSpace/OpenSpace
mit
7,418
201
codeparrot/github-code
2d46224429814883802b379c484c32d19e8edb96f9c65cd162892dbbf3a27e12
/* * The MIT License * * Copyright 2015 Adam Kowalewski. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy,...
Java
opw-ws-obwodowa/src/main/java/pl/otwartapw/opw/ws/obwodowa/dto/KomisjaDto.java
OtwartaPlatformaWyborcza/opw-ws-obwodowa
mit
3,005
108
codeparrot/github-code
b3011db6d5ba12b357afb1c5a6b8e9bb97ad238c12f340b261fa90fed1f49e13
<?php $language = $this->input->cookie('language'); if (!isset($language)) { $language = $core_settings->language; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <he...
PHP
application/views/blueline/templates/invoice/preview.php
imranweb7/msitc-erp
mit
9,732
333
codeparrot/github-code
e29b6e8a27a3f5ac18ae3a22fdb852c7fe219f4b04963620281d58a554543671
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Login Page - Photon Admin Panel Theme</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"> <link rel="shortcut icon" href="http://photonui.orangehilldev.com/css/css_comp...
HTML
lib/assets/css/css_compiled/@{photonImagePath}plugins/elrte/images/photon/images/photon/css/css_compiled/js/plugins/jquery.jqtweet.js.html
user-tony/photon-rails
mit
15,541
183
codeparrot/github-code
33a8be04184eabc16ab4fd358375292cd1a4119c064c95a1255083efca8945d3
let order, io, droneApi, socketsUsers = {}, connected = 0; module.exports.init = function (httpServer) { io = require('socket.io').listen(httpServer); order = require('../mongodb/order'); module.exports.io = io; droneApi = require('netology-fake-drone-api'); function statusChange(d...
JavaScript
backend/socket/index.js
DImaDsky/DroneCafe
mit
2,096
69
codeparrot/github-code
77fc3a42a0bf7e4156925d6191fec6b6a0a6ef32cb76d5f7a26ec8b2b086a650
#pragma once #include <unordered_map> #include "../defines.h" #include "../Helpers/Filepath.h" #include "../Helpers/Helpers.h" #include "ft2build.h" #include "freetype/freetype.h" #ifdef DESKTOP #include <glew.h> #else #include <GLES/gl.h> #include <GLES/glext.h> #endif namespace star { #define F...
C
Project/libs/StarEngine/include/Graphics/Font.h
GlenDC/StarEngine-downloads
mit
1,479
76
codeparrot/github-code
e258ec333c5329f29bccfed946c46438aa3b0c8d73070e6de43ca95bb75fd0f7
var async = require('async'), extend = require('extend'), xlsx = require('xlsx'), q = require('q'), loadData = require('./tableOps').loadData, saveAll = require('./save').saveAll, Tupd = require('../models/cellModel').Tupd, Fupd = require('../models/formatModel').Fupd, Lupd = require('../models/layoutMo...
JavaScript
routes/xlsxOps.js
areverberi/table
mit
7,360
225
codeparrot/github-code
afb23d3966934170b554449d9328b9abadb5639450e3ceaec1d0e8b559a5c9a5
'use strict'; const path = require('path'); const fs = require('fs'); const url = require('url'); // Make sure any symlinks in the project folder are resolved: // https://github.com/facebookincubator/create-react-app/issues/637 const appDirectory = path.resolve(__dirname, '..'); const resolveApp = relativePath => pat...
JavaScript
client/config/paths.js
rantav/reversim-summit-2017
mit
2,008
57
codeparrot/github-code
242222291f3801083899b1fd37d645e8970c70d67b8cb4290cb42a2d0d99467b
#!/usr/bin/python #-*- coding:utf-8 -*- import os import sys import urllib, urllib2 import tarfile from distutils.version import LooseVersion import shutil URL_LASTVER = "http://192.168.72.133:80/deploy/lastver" URL_LIVEVER = "http://192.168.72.136:8080/deploy/livever" URL_PKG= "http://192.168.72.136:80/deploy/package...
Python
deploy.py
MiracleWong/aming_python
mit
3,516
123
codeparrot/github-code
2295e5efc09d60d6cd907623a43287786d8bf3d7bb93a642bdad7ca325ad5905
<!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="../../../../public/stylesheets/google.css"> </head> <body> <!-- <div id="logo"> <img href="/public/images/googlelogo_color_272x92dp.png"> </div> <div id="input"> <form action=""> <input id="search" type=...
HTML
app/views/google/result-prepayment.html
nhsbsa/ppc-prototype
mit
8,628
218
codeparrot/github-code
9c2f95befd12c405d5f8353d8f905009b7283d6887b6d25469fa77bd3fd745f1
import checksReducer, {defaultChecksState} from 'src/alerting/reducers/checks' import {setAllChecks, setCheck, removeCheck} from 'src/alerting/actions/checks' import {RemoteDataState} from 'src/types' import {CHECK_FIXTURE_1, CHECK_FIXTURE_2} from 'src/alerting/constants' describe('checksReducer', () => { describe('...
TypeScript
ui/src/alerting/reducers/checks.test.ts
mark-rushakoff/influxdb
mit
2,016
72
codeparrot/github-code
ab6d22a0f52ad0432166b5bd95645bf120e8397b9c5d7db6f0f02d9f2232b017
class Blog < ActiveRecord::Base belongs_to :user acts_as_activity validates_presence_of :title, :body named_scope :by_date, :order => 'blogs.created_at DESC' named_scope :latest, lambda{|count| {:limit => count} } #instance methods def my_blog(current_user) current_user && (current_user...
Ruby
app/models/blog.rb
nazar/recipetrees
mit
597
43
codeparrot/github-code
ca2ca7cfb20655d489c853c35405b6687a9ff80ef05298c3f8aa1d9f12ddd959
package georgm.com.mydraw; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Path; import android.graphics.PorterDuff; import android.graphics.PorterDuffXfermode; import android.util.Log;...
Java
src/main/java/georgm/com/mydraw/DrawingView.java
CodeGuyEST/mydraw
mit
11,063
341
codeparrot/github-code
f1b2e5a9cf2036a0bd9bff2776f60ab9045de33c24dc3dee9b21c56f3e04a6cf
using System; using System.Collections.Immutable; using System.Text.RegularExpressions; using ErrorProne.NET.Common; using ErrorProne.NET.Extensions; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Diagnostics; using SyntaxKind = Microsoft.CodeAnalysis.CSharp.Synt...
C#
src/ErrorProne.NET/ErrorProne.NET/Rules/Formatting/RegexPatternAnalyzer.cs
SergeyTeplyakov/ErrorProne.NET
mit
2,696
62
codeparrot/github-code
76e8ec31fa5fbfded9cd16c755ee7c35ee82b893dbaf43e892baea2ff342333a
package org.robolectric.shadows; import static android.os.Build.VERSION_CODES.JELLY_BEAN_MR2; import static android.os.Build.VERSION_CODES.LOLLIPOP; import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.Mockito.mock; import android.media.AudioManager; import android.media.SoundPool; impo...
Java
robolectric/src/test/java/org/robolectric/shadows/ShadowSoundPoolTest.java
ChengCorp/robolectric
mit
1,080
36
codeparrot/github-code
0637902e12e3c0e3fb32c373799bcf96f4946790d32bf0e28134a50b8d6db1de
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content="JavaScript best practices 阅读摘要"> <meta name="keywo...
HTML
_site/javascript/2015/12/29/javascript-eight.html
SPxiaomin/github_blog
mit
15,129
254
codeparrot/github-code
d7eb402da48e20c57b1fe4f3e42ae409f6202c9ee7d9c1bfa50e0a528af81e9b
<!DOCTYPE html> <html> <head> <!-- Document Settings --> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <!-- Page Meta --> <title>The Laziest Programmer</title> <meta name="description" content="Because someone else has already solved your problem." /> <!-...
HTML
tag/python/index.html
seanharr11/seanharr11.github.io
mit
11,110
262
codeparrot/github-code
3dee15e0ef5751d01827973da916139d9891947442f7c028d94656537767e1c6
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Medium Editor Toolbar States Example</title> <link rel="stylesheet" href="../bower_components/medium-editor/dist/css/medium-editor.min.css"> <link rel="stylesheet" href="../bower_components/medium-editor/dist/css/themes/default.min.cs...
HTML
examples/index.html
davideanderson/medium-editor-toolbar-states
mit
4,186
121
codeparrot/github-code
7b136bc78b999740128a9981b8c549d4071c1f87c72f789f8088709ad4237000
require "bundler" require "log4r" require "vagrant/util/subprocess" module VagrantPlugins module Triggers class DSL def initialize(machine, options = {}) if options[:vm] match = false Array(options[:vm]).each do |pattern| match = true if machine.name.match(Regexp.new...
Ruby
lib/vagrant-triggers/dsl.rb
LalatenduMohanty/vagrant-triggers
mit
4,850
129
codeparrot/github-code
713b057d00a1931c3ae4cf742061f341235c1d4ffa97e1946bfafb347774c126
package com.karolmajta.stp.test.models; import com.karolmajta.stp.models.MainMenuItemBall; import com.karolmajta.stp.models.MainMenuObstacleBall; import junit.framework.TestCase; public class TestMainMenuObstacleBall extends TestCase { public static final float FLOAT_EPSILON = 1e-6f; public static final float X0 =...
Java
src/com/karolmajta/stp/test/models/TestMainMenuObstacleBall.java
karolmajta/Save-the-Planet
mit
2,714
114
codeparrot/github-code
5e1c716c7e16adb82d897d57b467c7131573444640d5361651c1f2c6cbe945d2
angular.module('magic.form').provider('$magicForm', MagicFormProvider); MagicFormProvider.$inject = []; function MagicFormProvider() { var $magic = this, types = {}, parsers = {}, formatters = {}, validators = {}, decorators = {}, config = { html5novalida...
JavaScript
src/services/magicFormProvider.js
SolomoN-ua/angular-magic-form
mit
5,438
169
codeparrot/github-code
cf960464ea575fac5415105f900fa6b31480fa01e1f9d5591be7c1213dbd0a7c
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Frontend extends CI_Controller { /*MICHAEL PAKE*/ function __construct() { parent::__construct(); $this->load->helper(Array("url")); $this->load->model("M_frontend"); } function cekSession(){ if(isset($_SESSION['user_lang'])){ ...
PHP
application/controllers/frontend.php
MaxelITSolution/hb_wakasa
mit
77,128
2,306
codeparrot/github-code
7dc2d36dd1d164c57919e4d0e158a65664cc8511348fffe200ce28cb8c57f36c
package com.digitalBorderlands.cityHall; import java.util.HashMap; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.powermock.core.classloader.annotations.PrepareForTest; import org.powermock.modules.junit4.PowerMockRunner; import com.digitalBorderlands.cityHall.data.Child;...
Java
src/test/java/com/digitalBorderlands/cityHall/ValuesTest.java
f00f-nyc/cityhall-java
mit
8,277
215
codeparrot/github-code
a80fcb281044162ed25f4702c76a1d9fdda239464e28678f8a6d18dbde6890fd
// Contact Form Scripts $(function() { $("#contactForm input,#contactForm textarea").jqBootstrapValidation({ preventSubmit: true, submitError: function($form, event, errors) { // additional error messages or events }, submitSuccess: function($form, event) { ...
JavaScript
js/contact_me.js
nezar-d/PersonalWebsite
mit
2,911
73
codeparrot/github-code
a230c461c0a12e5141d714c2baa5ba25e3bb7bbc769e1913c8b1d8c10c83d649
Raphael.fn.connection = function (obj1, obj2, line, bg) { if (obj1.line && obj1.from && obj1.to) { line = obj1; obj1 = line.from; obj2 = line.to; } var bb1 = obj1.getBBox(), bb2 = obj2.getBBox(); // The possible bounding locations for these boxes. p = [{x: bb1.x + ...
JavaScript
web/js/app.js
JamiesonWarner/Floweasy
mit
10,922
379
codeparrot/github-code
6f4f932328b3e27593bbb84eb708687a5a08839e9514a6fbd5065223f667bf44
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. r""" Example TorchGeneratorAgent model. This demonstrates the minimal structure of a building a generative model, consi...
Python
parlai/agents/examples/seq2seq.py
facebookresearch/ParlAI
mit
7,495
221
codeparrot/github-code
fcaea5a75701c7e0e19bbabb5e9e5e04a3658de9bfaed4a0452b7b924e020622
<?php // Written by maya minatsuki // Made this file : 2016.05.02 // Last mod. : 2016.05.04 // 指定した品詞のみ出力には ma_filter を与える // ma_filter : 以下の番号のうち必要なものを | で区切って指定 // 1 : 形容詞 // 2 : 形容動詞 // 3 : 感動詞 // 4 : 副詞 // 5 : 連体詞 // 6 : 接続詞 // 7 : 接頭辞 // 8 : 接尾辞 // 9 : 名詞 // 10 : 動詞 // 11 : 助詞 // 12 : 助動詞 // 13 : 特殊(句...
PHP
include/maya_lib/yahoo_ma.inc.php
mayaeh/slack_bot_marimo
mit
2,938
152
codeparrot/github-code
9f450456e8819997f82586cfa6b96f999f65e0a2e177d28bf4b0331055f5998b
using CssLib; using System; using System.Windows; namespace ZimbraMigration { public partial class App: Application { private void Application_Exit(object sender, ExitEventArgs e) { CSMigrationWrapper mw = (CSMigrationWrapper)Properties["mw"]; if (mw != null) { if (mw.UmUs...
C#
ZimbraMigrationTools/src/c/ZimbraMigration/App.xaml.cs
nico01f/z-pec
mit
682
34
codeparrot/github-code
3e50323cb669a3c6e4503eb797db31b5928e0190562099a8618ae4cf695d4352
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef H_BITCOIN_SCRIPT_STANDARD #define H_BITCOIN_SCRIPT_STANDARD #include "key.h" ...
C
src/script/standard.h
dajohi/bitcoin
mit
3,385
87
codeparrot/github-code
761d077f8db86c0021f24d1db41ba3edb7b6b2128ec2257b555d35530ca0eac2
//4,1,1,4,2,3,4,4,5,6,6,4 ===> -4(5times) function maximalSequanse() { var n = jsConsole.read('#tb-range-first'), numbers = [], count = 0, foundNumber, theBiggest, current; for (var i = 0; i < n.length; i++) { if (n[i] > -10 && n[i] < 10) { current = n[i]; ...
JavaScript
Arrays/MostFrequantNumber/MostFrequantNumber.js
adachenski/JavaScript-Homeworks
mit
1,178
49
codeparrot/github-code
e8e1b859c3b6f5ada89d923a6235618a9be4d66bda99421cced91977692eb3f7
/** * Created by houdong on 16/11/3. */ var React = require('react'); import {connect} from "react-redux"; var initialParams = require('InitialProps').User; var HeaderLayout = React.createClass({ /****************************************************************************** * life cycle functions ***...
JavaScript
public/layouts/HeaderLayout.js
Johnson-hd/mms
mit
3,105
68
codeparrot/github-code
bc6aab3ec8a100d1089fa2537bd3485b35b9afeffb8ff0c0bbeba24e6603b8ec
# postgresql/ext.py # Copyright (C) 2005-2015 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php from ...sql import expression from ...sql import elements from ...sql import funct...
Python
lib/sqlalchemy/dialects/postgresql/ext.py
ThiefMaster/sqlalchemy
mit
4,889
169
codeparrot/github-code
3b2c233b182f71f098b079e518ec7f725c04921fdfb2188e08d0a14f5c210e82
import mongoose from 'mongoose' import helper from './_helper-functions' let schema = mongoose.Schema({ productType: { type: String, enum: ['Product', 'Ingredient'] }, name: String, price: { type: Object, required: false // Only used for Product }, amount: { type: Number, required: ...
JavaScript
src/db/models/product.js
FilipHarald/beaver-coffee
mit
612
36
codeparrot/github-code
d0a636003ca4202759c7f39b9e5ebe9771a967751c33712ae5513146bc40a32f
#include <OpenVr.h> #include <EventSystem.h> #include <Logging.h> OpenVrProxy::OpenVrProxy() :m_HMD(nullptr) { } OpenVrProxy::~OpenVrProxy() { if (m_HMD) { vr::VR_Shutdown(); } m_HMD = nullptr; } void OpenVrProxy::printError(char* str, vr::HmdError error) { char buf[1024]; sprintf_s(buf, sizeof(buf), str,...
C++
Mercury3/src/OpenVr.cpp
axlecrusher/hgengine3
mit
5,113
198
codeparrot/github-code
a62031d36b3ec40d92c4297e2678113ce08425b0c204d6565d68f728152f7669
import Bulma from '../core'; import Plugin from '../plugin'; /** * @module Tabs * @since 0.4.0 * @author Thomas Erbe <vizuaalog@gmail.com> */ export class Tabs extends Plugin { /** * Handle parsing the DOMs data attribute API. * @param {HTMLElement} element The root element for this instance *...
JavaScript
src/plugins/tabs.js
VizuaaLOG/BulmaJS
mit
4,310
168
codeparrot/github-code
fe43da478c71b5060ece475ffeb70c77606347dcf74f6f106af562263d6815af
package SystemMonitor; import java.io.File; import java.text.DecimalFormat; import javax.swing.*; import javax.swing.filechooser.FileSystemView; public class Disk { private String name; private File disk; private Icon icon; public Disk(File disk) { this.disk = disk; name...
Java
src/SystemMonitor/Disk.java
ozankaraali/SystemMonitor
mit
1,509
54
codeparrot/github-code