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
7dec12d487ed495703290153fb55f2f791a218906993b3ab2305ea5e657f5579
<!DOCTYPE html> <html dir="ltr"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>Text Editor</title> <link href="favicon.ico" rel="shortcut icon"> </head> <body spellcheck="false"> <p style=" background: #ffa; border: 1px dashed; ...
HTML
index.html
tovic/simple-text-editor-library
mit
11,788
203
codeparrot/github-code
c2525f5feb0c2e4ccd1725530fc863cb46b45719d8d2c2dd38204be4123f8fe3
module ActiveWarehouse #:nodoc: # Class that supports prejoining a fact table with dimensions. This is useful if you need # to list facts along with some or all of their detail information. class PrejoinFact # The fact class that this engine instance is connected to attr_accessor :fact_class ...
Ruby
lib/active_warehouse/prejoin_fact.rb
activewarehouse/activewarehouse
mit
3,448
98
codeparrot/github-code
e7be2a0ae00337b3761f206cb08e2ba83d5704f5c0f28dc05a8f7da8bf80ec25
from array import array import numpy as np import matplotlib.pyplot as plt from sklearn import datasets from sklearn.tree import DecisionTreeClassifier from sklearn.ensemble import AdaBoostClassifier from sklearn.metrics import classification_report, roc_auc_score, roc_curve from sklearn import tree import cPickle ...
Python
skTMVA/sci_bdt_electron_DecisionTree.py
yuraic/koza4ok
mit
1,980
68
codeparrot/github-code
9fef18524a9a92f797635ea063362c96014ffcc12a7c160fa1ae25fc869a0f64
--- layout: default og_type: article --- <article class="post grid u-pad-both pjax-animate"> <section class="grid__row"> <span class="post__date typography__mono">{{ page.date | date: "%-d %B %Y" }}</span> {{ content }} </section> </article> {% if page.comments != Nil %} {% assign showComments = page.comments ...
HTML
app/_layouts/post.html
14islands/14islands-com
mit
1,017
43
codeparrot/github-code
2a9a2e98ae7dadee813a4cc44695513da6a422670e9d0450e73f0f8e6d3e6281
package utils; import java.io.*; import java.net.DatagramSocket; import java.net.InetAddress; import java.net.ServerSocket; import java.net.Socket; import java.util.ArrayList; import java.util.List; import java.util.Scanner; import java.util.concurrent.Callable; import java.util.concurrent.ExecutorService; ...
Java
src/utils/Utils.java
justayak/ALP5
mit
14,112
453
codeparrot/github-code
123ff305aa780ff9d44e8547bc85fed61dfd1088e25c08ac70bd9a82d5de835e
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
TypeScript
src/vs/workbench/api/electron-browser/mainThreadDocumentContentProviders.ts
DustinCampbell/vscode
mit
4,197
96
codeparrot/github-code
aa07089ff24b54166ea8b86e9225042aa8a325a2aed1cd159a8560bb2ecccdc4
'use strict'; //Customers service used to communicate Customers REST endpoints angular.module('customers') .factory('Customers', ['$resource', function($resource) { return $resource('customers/:customerId', { customerId: '@_id' }, { update: { method: 'PUT' } }); } ]) .factory('Notify', ['$rootScope'...
JavaScript
public/modules/customers/services/customers.client.service.js
armackey/spa_practice
mit
724
38
codeparrot/github-code
f6beaee62c22ffc25bf5d8fd3f4022bcf6496ea1af73fe7530b9d1e120e342c9
#pragma once char separator; #ifdef _WIN32 #define DIR_SEPARATOR '\\' #else #define DIR_SEPARATOR '/' #endif #include <string> #include <algorithm> using namespace std; class PathUtil{ public: /*A small function to extract FileName from File Path C:/File.exe -> File.exe */ string static extractFileName(string Fil...
C
HuffMan/PathUtil.h
snoobvn/HuffMan
mit
1,305
40
codeparrot/github-code
8ab6dbd89a327ad8640a6931c8104cf57e15fea28705b5aad5988a5607549a02
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using TestProjectFromCsv.ValidationSteps; namespace TestProjectFromCsv { public class Program { public static void Main(string[] args) {...
C#
TestProjectFromCsv/Program.cs
jtwebman/GenericTestProjectGenerator
mit
5,549
116
codeparrot/github-code
e8b83e7c8cdda79e57ad1e9df3ed789883603f58489a8ea2ce267673b1162996
class AlbumsController < ApplicationController respond_to :html, :xml, :json attr_reader :current_album_type, :author_name load_and_authorize_resource def index @albums = Album.by_type params[:album_type] respond_with(@albums) end def show get_current_album_type get_author_name if @cur...
Ruby
app/controllers/albums_controller.rb
quattro004/scratches
mit
1,594
63
codeparrot/github-code
15a4c0fe541596583f1ab6a035e9dbc65a35160505e254014f1f0fb201314e17
import { apiGet, apiPut, apiDelete } from 'utils/api' import { flashError, flashSuccess } from 'utils/flash' import { takeLatest, takeEvery, call, put, select } from 'redux-saga/effects' import { filter, find, without, omit } from 'lodash' import { filesUrlSelector } from 'ducks/app' import { makeUploadsSelector } fro...
JavaScript
react/src/ducks/files.js
sinfin/folio
mit
14,083
512
codeparrot/github-code
36042809431da5935a211377af89e66fca663e3641ef582d21a218438690c34f
using ShiftCaptain.Models; using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Security.Principal; using System.Web; using System.Web.Security; namespace ShiftCaptain.Infrastructure { public static class Authentication { public...
C#
ShiftCaptain/Infrastructure/Authentication.cs
adabadyitzaboy/ShiftCaptain
mit
3,189
80
codeparrot/github-code
f3934a7238d5621eb514fd83df26d208d4b40677a1415d532ba2284e4a45b0a7
# encoding: utf-8 require_relative "qipowl/version" require_relative "qipowl/constants" require_relative "qipowl/core/mapper" require_relative "qipowl/core/ruler" require_relative "qipowl/core/bowler" require_relative "qipowl/bowlers/html" require_relative "qipowl/bowlers/i_sp_ru" #require_relative "qipowl/bowlers/c...
Ruby
lib/qipowl.rb
mudasobwa/qipowl
mit
1,211
63
codeparrot/github-code
f931d22811ddd6349af9616abcb889a9095f170db94c1a2700b11667679f2b0b
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Threading; using SharpDeflate; using vtortola.WebSockets; using vtortola.WebSockets.Rfc6455; namespace RohBot { public sealed class WebSocketServer<TClient> : IDisposable where TClient : WebSocketClient, new(...
C#
RohBot/WebSocketServer.cs
Rohansi/RohBot
mit
3,253
116
codeparrot/github-code
28f5707e0511dcaf0eb704b5a2533be71a36b717c33a840fa422d8021919116c
package net.spy.digg.parsers; import java.io.IOException; import org.w3c.dom.Document; import org.w3c.dom.NodeList; import org.xml.sax.SAXException; import net.spy.digg.Story; /** * Parse a stories response. */ public class StoriesParser extends TimePagedItemParser<Story> { @Override protected String getRootEl...
Java
src/main/java/net/spy/digg/parsers/StoriesParser.java
dustin/java-digg
mit
621
32
codeparrot/github-code
25343b178cde773f35105ff045a8c021511be5285fff39c803983f1a5a4267b4
/* * The MIT License (MIT): http://opensource.org/licenses/mit-license.php * * Copyright (c) 2013-2014, Chris Behrens * * 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 restrict...
C
src/locking/fil_lock.c
comstud/filament
mit
16,390
523
codeparrot/github-code
5c40f84960ad803d24bab6edf58cef2cea5034643784cf6c256ed4055de45b0d
package de.thomas.dreja.ec.musicquiz.gui.dialog; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.app.DialogFragment; import android.content.DialogInterface; import android.os.Bundle; import de.thomas.dreja.ec.musicquiz.R; import de.thomas.dreja.ec.musicqu...
Java
src/de/thomas/dreja/ec/musicquiz/gui/dialog/SortOrderSelectionDialog.java
Nanobot5770/DasMusikQuiz
mit
1,823
55
codeparrot/github-code
20ded059e370d8669c87c8d3202bf338ff5a3225eeeb81dba4db20cf0187d7e0
using System; using System.Net; using Microsoft.Extensions.Logging; namespace CakesNoteProxy { public static class NoteProxyConfigure { public static ILoggerFactory LoggerFactory; public static class NoteApi { public static string SiteFqdn { get; private set; }...
C#
src/CakesNoteProxy/NoteProxyConfigure.cs
SiroccoHub/CakesNoteProxy
mit
1,512
54
codeparrot/github-code
598b53783ba5e55275d306d01d9ada289a7d893bfaedcebb908ec28cb447f048
using System; using Lunt.IO; namespace Lunt { /// <summary> /// Represent a dependency to an asset. /// </summary> public sealed class AssetDependency { private readonly FilePath _path; private readonly long _fileSize; private readonly string _checksum; /// <summar...
C#
src/Lunt/AssetDependency.cs
lunt/lunt
mit
1,746
63
codeparrot/github-code
35141d97ff502f18e82e63cdc5e9b65f05404e48bc51fba76dcf77a3b2cd3c58
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include "liste.h" #include "atl.h" #include "es.h" #define FILE_ATLETI "atleti.txt" #define FILE_ESERCIZI "esercizi.txt" #define MAX_NOME 25 #define LUNG_CODICE 5 #define non_strutturato ;; #ifdef _WIN32 #define F_CLEAR "cls" #else ...
C
L08/E04/main.c
supermirtillo/polito-c-apa
mit
8,506
256
codeparrot/github-code
13deecc8f79587e1b3353de5923b334685952d28d0edeef8ef30ee49728da49e
#include "ofQuickTimeGrabber.h" #include "ofUtils.h" #if !defined(TARGET_LINUX) && !defined(MAC_OS_X_VERSION_10_7) //--------------------------------- #ifdef OF_VIDEO_CAPTURE_QUICKTIME //--------------------------------- //-------------------------------------------------------------- static ComponentResult frameI...
C++
of_v0.9.3_ios_release/libs/openFrameworks/video/ofQuickTimeGrabber.cpp
murataka9/iOSinOF-NativeGUISample
mit
25,185
787
codeparrot/github-code
020bcb5b5637f2ef605a77febadcf65a5869ecb02701a9ff101b0427c668eb19
// Copyright (c) 2015-2018 William W. Fisher (at gmail dot com) // This file is distributed under the MIT License. #include "ofp/tablestatus.h" #include "ofp/writable.h" using namespace ofp; bool TableStatus::validateInput(Validation *context) const { size_t length = context->length(); if (length < sizeof(Tabl...
C++
src/ofp/tablestatus.cpp
byllyfish/oftr
mit
1,028
41
codeparrot/github-code
157f7937b41514e2c15096f030fc35104d7b6f55f602145e0129d2aa6b0af21b
import random, math import gimp_be #from gimp_be.utils.quick import qL from gimp_be.image.layer import editLayerMask from effects import mirror import numpy as np import UndrawnTurtle as turtle def brushSize(size=-1): """" Set brush size """ image = gimp_be.gimp.image_list()[0] drawable = gimp_be.p...
Python
gimp_be/draw/draw.py
J216/gimp_be
mit
26,770
645
codeparrot/github-code
5f88b8e6c90fb8b1ad6bc8bf2d851cf9c31c053287af93676855b6bb9f483496
/** * @author Mat Groves http://matgroves.com/ @Doormat23 */ /** * A DisplayObjectContainer represents a collection of display objects. * It is the base class of all display objects that act as a container for other objects. * * @class DisplayObjectContainer * @extends DisplayObject * @constructor */ PIXI.D...
JavaScript
src/pixi/display/DisplayObjectContainer.js
MKelm/pixi.js
mit
7,407
346
codeparrot/github-code
a3a2724d973ccb526afd49c135a76b9a1a4f551ce5fdf397af60c5bdc77e278c
#include "binary_buffer.hpp" #include <iterator> #include <algorithm> #include <sstream> #include <boost/endian/conversion.hpp> using boost::endian::native_to_big; using boost::endian::big_to_native; namespace { using aria::byte; template <typename P> void append_bytes_to_vector(std::vector<byte> & vec,...
C++
src/util/binary_buffer.cpp
Andlon/aria
mit
4,531
161
codeparrot/github-code
322dfc0c6c4d87ac11e2019a5d2a9091f32d21d3d9abc0d211fc7c52d3ff1eda
# Acknowledgements This application makes use of the following third party libraries: ## AFNetworking Copyright (c) 2011–2016 Alamofire Software Foundation (http://alamofire.org/) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "So...
Markdown
app/Pods/Target Support Files/Pods-Jasonette/Pods-Jasonette-acknowledgements.markdown
wajahatch888/JASONETTE-iOS
mit
64,178
1,217
codeparrot/github-code
0ed5e1a72c82a13ec7771bfb16b034a5c9a8d9b78017043d6a298407420cb12b
using MongoDB.Driver; namespace AspNet.Identity.MongoDB { public class IndexChecks { public static void EnsureUniqueIndexOnUserName<TUser>(IMongoCollection<TUser> users) where TUser : IdentityUser { var userName = Builders<TUser>.IndexKeys.Ascending(t => t.UserName); var unique = new CreateIndexOptions...
C#
src/AspNet.Identity.MongoDB/IndexChecks.cs
winterdouglas/aspnet-identity-mongo
mit
991
31
codeparrot/github-code
7057295ffa313bd858e590fa626880f99eabfc9d58723df0267ce9c67068cf38
package org.aikodi.chameleon.support.statement; import org.aikodi.chameleon.core.declaration.Declaration; import org.aikodi.chameleon.core.element.ElementImpl; import org.aikodi.chameleon.core.lookup.DeclarationSelector; import org.aikodi.chameleon.core.lookup.LookupContext; import org.aikodi.chameleon.core.lookup.Loo...
Java
src/org/aikodi/chameleon/support/statement/StatementExprList.java
markovandooren/chameleon
mit
2,449
86
codeparrot/github-code
85be163867e05edee13a99942d91fe0364b88ee6e30f085d0f6e59d88ce307d0
(function(){ /** * PubSub implementation (fast) */ var PubSub = function PubSub( defaultScope ){ if (!(this instanceof PubSub)){ return new PubSub( defaultScope ); } this._topics = {}; this.defaultScope = defaultScope || this; }; PubSub.prototype...
JavaScript
web/PhysicsJS/src/util/pubsub.js
lejoying/ibrainstroms
mit
3,581
131
codeparrot/github-code
2c4d7b5df70914029329e5217c375eee0f2a2c09ae833823be141b2e12056603
function fixPosition() { console.log($(window).scrollTop()); // if its anywhee but at the very top of the screen, fix it if ($(window).scrollTop() >= headerHeight) { // magic number offset that just feels right to prevent the 'bounce' // if (headPosition.top > 0){ $('body').addClass('js-fix-positi...
JavaScript
work/af-december2016/assets/js/_default.js
brtdesign/brtdesign.github.io
mit
2,769
99
codeparrot/github-code
6d2cb636c1414224cc35509b04f48f977a23f70e77dee0b4de59feb14a199ead
import React from 'react'; import ReactDOM from 'react-dom'; import _ from 'underscore'; import babel from 'babel-core/browser'; import esprima from 'esprima'; import escodegen from 'escodegen'; import estraverse from 'estraverse'; import Codemirror from 'react-codemirror'; import classNames from 'classnames'; import ...
JavaScript
app/index.js
frank-weindel/react-live-demo
mit
5,927
240
codeparrot/github-code
59dfc79c5fcbe8a406ac4130e9d25bbbecd75ed7e3bf79b6e8a44276a0da1fea
package main import ( "bufio" "os" "fmt" ) func main() { counts := make(map[string]int) fileReader, err := os.Open("words.txt") if err != nil { fmt.Println(err) os.Exit(1) } defer fileReader.Close() scanner := bufio.NewScanner(fileReader) // Set the split function for the scanning operation. scanner....
GO
ch4/ex4_9/ex4_9.go
farmatholin/gopl-exercises
mit
608
36
codeparrot/github-code
385face5b8565affaea7ddc2ce10397d116d827f7bc04c9cfcd7d960dad1296e
// // Copyright (c) 2017-2020 the rbfx project. // // 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, mer...
C
Source/Tools/Editor/Tabs/ResourceTab.h
rokups/Urho3D
mit
3,802
116
codeparrot/github-code
bc1383d97e96a446bf760b821349fb07f7af61886d727d817e88189c103ce3d3
const _ = require('lodash'); const en = { modifiers: require('../../res/en').modifiers }; const Types = require('../../lib/types'); const optional = { optional: true }; const repeatable = { repeatable: true }; const nullableNumber = { type: Types.NameExpression, name: 'number', nullable: true...
JavaScript
test/specs/nullable.js
hegemonic/catharsis
mit
9,138
295
codeparrot/github-code
2416163edfec484f4aef6b5f169f6286beb324846f3d7aa394db70387caf4455
/* 1023 组个最小数 (20 分) */ #include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc, char *argv[]) { // 处理输入 int n = 10; int quantities[n]; for (int i = 0; i < n; i++) { if (scanf("%d", &quantities[i]) != 1) return EXIT_FAILURE; } // 组装数字 int nums[5...
C
pat-basic-level/1023.c
StudyExchange/PatPractise
mit
871
49
codeparrot/github-code
013219ae1c7b1196da20f7af98b7ad5722c0c1c9e3f814c2c061e63233820b46
angular.module('Reader.services.options', []) .factory('options', function($rootScope, $q) { var controllerObj = {}; options.onChange(function (changes) { $rootScope.$apply(function () { for (var property in changes) { controllerObj[property] = changes[property].newValue; ...
JavaScript
app/js/services/options.js
Janpot/google-reader-notifier
mit
858
35
codeparrot/github-code
13217998cebd623e8c45247f294bcefa835c6f48cd2dd3078c373bbf971f0e30
import Ember from 'ember'; import DS from 'ember-data'; import DataAdapterMixin from 'ember-simple-auth/mixins/data-adapter-mixin'; export default DS.RESTAdapter.extend(DataAdapterMixin, { authorizer: 'authorizer:dspace', initENVProperties: Ember.on('init', function() { let ENV = this.container.lookupFactory(...
JavaScript
addon/adapters/application.js
atmire/dsember-core
mit
949
32
codeparrot/github-code
9e06fcb44050f2c5294bf5c6fdea3bad61a45a01fbfa89b47524c17b4df031a5
"use strict"; var async = require('async'); var fs = require('fs'); var util = require('util'); var prompt = require('prompt'); var httpRequest = require('emsoap').subsystems.httpRequest; var common = require('./common'); var mms = require('./mms'); var mmscmd = require('./mmscmd'); var deploy = require('./deploy'); ...
JavaScript
lib/sfsetup.js
emote/tools
mit
5,142
173
codeparrot/github-code
e8bed5f24472f0b732bc0946d10ff788bc4863b094d33dd0b9f91eca01294127
#!/usr/bin/env python # coding:utf-8 """ Database operation module. This module is independent with web module. """ import time, logging import db class Field(object): _count = 0 def __init__(self, **kw): self.name = kw.get('name', None) self.ddl = kw.get('ddl', '') self._default =...
Python
business_logic/order_collector/transwarp/orm.py
boisde/Greed_Island
mit
11,968
376
codeparrot/github-code
561b92d27d9dd7b9765cecdde4aab5d61c3495dce3e4c4eacd1be83fd08a256a
package cn.libery.calendar.MaterialCalendar; import android.content.Context; import java.util.Collection; import java.util.HashSet; import cn.libery.calendar.MaterialCalendar.spans.DotSpan; /** * Decorate several days with a dot */ public class EventDecorator implements DayViewDecorator { private int color...
Java
app/src/main/java/cn/libery/calendar/MaterialCalendar/EventDecorator.java
Thewhitelight/Calendar
mit
752
35
codeparrot/github-code
2427e543ca5b50180ff950236bf34328f365a81a00c3f9387e236cef37160d0b
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; // import Layout from '../.....
JavaScript
src/routes/admin/index.js
luanlv/comhoavang
mit
958
38
codeparrot/github-code
8ee9abb50125422692cee8f5d5592b720ab567e8f9fdc3b0a9bce09a32e10bb1
using System; using System.Collections.Generic; namespace HarmonyLib { /// <summary>Specifies the type of method</summary> /// public enum MethodType { /// <summary>This is a normal method</summary> Normal, /// <summary>This is a getter</summary> Getter, /// <summary>This is a setter</summary> Setter, ...
C#
Harmony/Public/Attributes.cs
pardeike/Harmony
mit
27,094
681
codeparrot/github-code
89535ab5847b77657909a66d726db19eab624e38067267860af816812505ea8b
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <meta name="author" content="Aurelio De Rosa"> <title>Geolocation API Demo by Aurelio De Rosa</title> <style> * { -webkit-box-sizing...
HTML
apis/geolocation-api-demo.html
uiuxsrini/Material
mit
6,285
173
codeparrot/github-code
9a11c682a9232130cf962ab17c0d3706ba445e1d7804559430988a216806a106
<!DOCTYPE html> <!--[if IEMobile 7 ]> <html class="no-js iem7"> <![endif]--> <!--[if (gt IEMobile 7)|!(IEMobile)]><!--> <html class="no-js"> <!--<![endif]--> <head> <meta charset="utf-8"> <title></title> <meta name="description" content=""> <meta name="HandheldFriendly" content="T...
HTML
index.html
LisaOrtola/Mobileapp
mit
2,877
56
codeparrot/github-code
c20d94256b9b543923289a7ddd0c3c86d81d90f9aad1f58cdf2b2274cd43b977
c rutina leemallab c lee el fichero de control de lineas y longitudes de onda:'mallaobs' c ntau : numero de puntos en tau c tau : log10(tau) c ntl : numero total de lineas c nlin : indice de cada linea y de cada blend c npas : numero de puntos en cada linea c dlamda:cada delta de l.d.o. en ma c nble :numero de blends...
FORTRAN
SIR2015/leemalla2.f
cdiazbas/SIRcode
mit
5,534
179
codeparrot/github-code
62e5c960dac28975f8834a178adcd8a87462b1abf5c230cdb1b6e155132c67f5
package app.components.semanticui import japgolly.scalajs.react import japgolly.scalajs.react.{Callback, Children} import japgolly.scalajs.react.vdom.VdomNode import scala.scalajs.js object Menu { val component = react.JsComponent[js.Object, Children.Varargs, Null](SemanticUiComponents.Menu) def apply()(childre...
Scala
client/src/main/scala/app/components/semanticui/Menu.scala
Igorocky/lesn
mit
1,482
51
codeparrot/github-code
90b5f2dbc3004da59b6d753447dd2c064b2be732736a39f1b3250e2ff5b76e4f
import { NgModule } from '@angular/core'; import { RouterModule } from '@angular/router'; import { SharedModule, ExamplesRouterViewerComponent } from '../../../shared'; import { AppModule } from './app.module'; import { AppComponent } from './app.component'; @NgModule({ imports: [ SharedModule, AppModule, ...
TypeScript
demo/src/app/examples/other/material-prefix-suffix/config.module.ts
ngx-formly/ngx-formly
mit
2,128
58
codeparrot/github-code
af82430075abe85bfcf7f45e82d97343bb1a1f5f19dd5d01aeee2c8ef8436331
const jwt = require('jsonwebtoken'); const User = require('../models/User'); // import { port, auth } from '../../config'; /** * The Auth Checker middleware function. */ module.exports = (req, res, next) => { if (!req.headers.authorization) { return res.status(401).end(); } // get the last part from a a...
JavaScript
src/data/middleware/auth-check.js
ziedAb/PVMourakiboun
mit
874
34
codeparrot/github-code
e371309741502a3ce9eaafad9df750bad0fe14d7b89e8dc932316bb882e0c262
var Ringpop = require('ringpop'); var TChannel = require('TChannel'); var express = require('express'); var NodeCache = require('node-cache'); var cache = new NodeCache(); var host = '127.0.0.1'; // not recommended for production var httpPort = process.env.PORT || 8080; var port = httpPort - 5080; var bootstrapNodes =...
JavaScript
second.js
Andras-Simon/nodebp
mit
1,982
73
codeparrot/github-code
da25cd2383a21b51f847fd8e28c95f537c2f39ba1a078211d09d1978b1755746
<?php /* * This file is part of Rocketeer * * (c) Maxime Fabre <ehtnam6@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * */ namespace Rocketeer\Services\History; use Illuminate\Support\Collection; /** * Keeps a memor...
PHP
src/Rocketeer/Services/History/History.php
rocketeers/rocketeer
mit
1,576
74
codeparrot/github-code
852f20b219e93a410890c425348557f79600338099b359a1e88f73a8820854be
<?php /** * Created by PhpStorm. * User: olivier * Date: 01/02/15 * Time: 00:58 */ namespace AppBundle\Entity; use Doctrine\ORM\EntityRepository; /** * BusinessServiceRepository */ class BusinessServiceRepository extends EntityRepository { public function findByRefList(array $refList) { $qb =...
PHP
src/AppBundle/Entity/BusinessServiceRepository.php
casual-web/autodom
mit
1,432
62
codeparrot/github-code
823694398adeebd0f79b094c8ff5ecf0da68068c06c1a9a630bf810cd54cfe33
import {WidgetConfig} from '../shared/widget-config'; import {WidgetService} from '../shared/widget.service'; export class Widget { title: string; updateInterval: number = 1000; widgetConfig: WidgetConfig; titleUrl: string; description: string; constructor(private widgetService: WidgetService) { } g...
TypeScript
dashy/src/app/dashboard/widget/widget.ts
reflectoring/infiniboard
mit
1,245
56
codeparrot/github-code
e205474f481bea47baee94a01b59a536b33dab65f5638237f66185b198d84c53
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>zorns-lemma: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min...
HTML
clean/Linux-x86_64-4.11.2-2.0.7/released/8.13.2/zorns-lemma/8.7.0.html
coq-bench/coq-bench.github.io
mit
7,081
173
codeparrot/github-code
94ab589958e2d187371682aca57aed8e24bc6427ec3040458fab48b7afcd516a
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>higman-s: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.cs...
HTML
clean/Linux-x86_64-4.06.1-2.0.5/released/8.7.1+2/higman-s/8.6.0.html
coq-bench/coq-bench.github.io
mit
6,953
164
codeparrot/github-code
eac778daa7d4e98142f1160391ad6f010d93d2211060df07796063ba5491a0fb
// // console777.c // crypto777 // // Created by James on 4/9/15. // Copyright (c) 2015 jl777. All rights reserved. // #ifdef DEFINES_ONLY #ifndef crypto777_console777_h #define crypto777_console777_h #include <stdio.h> #include <stdio.h> #include <ctype.h> #include <stdint.h> #include <string.h> #include <stdlib....
C
libjl777/plugins/common/console777.c
mezzovide/btcd
mit
11,054
294
codeparrot/github-code
dd4ab47c1b822fa7c2b1d7d6807de96cc33bec983ef15a6128569dd5b4e7b01c
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Lioncoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "base58.h" #include "core.h" #include "init.h" #include "keystore.h" #include...
C++
src/rpcrawtransaction.cpp
lion-coin/lioncoin
mit
32,779
804
codeparrot/github-code
11e0f1518eb7658b92fcf450d957755c59143e99b485326f22c3552e094c6f07
import React from 'react'; import { View, ScrollView } from 'react-native'; import ConcensusButton from '../components/ConcensusButton'; import axios from 'axios'; const t = require('tcomb-form-native'); const Form = t.form.Form; const NewPollScreen = ({ navigation }) => { function onProposePress() { navig...
JavaScript
screens/NewPollScreen.js
concensus/react-native-ios-concensus
mit
929
37
codeparrot/github-code
c9aa709d16c377c97a958d80ff803ffe3b9894fc98cc6b2a606d51ca16a0f414
<?php namespace App\Helpers\Date; use Nette; /** * Date and time helper for better work with dates. Functions return special * DateTimeHolder which contains both textual and typed DateTime. */ class DateHelper { use Nette\SmartObject; /** * Create datetime from the given text if valid, or otherwise ...
PHP
app/helpers/date/DateHelper.php
CatUnicornKiller/web-app
mit
1,928
63
codeparrot/github-code
974f3c08581e3de9c67949ded664cb0bebe7a0300c6c5c65f4634dc51a11702d
#include <iostream> #include <fstream> #include <seqan/basic.h> #include <seqan/index.h> #include <seqan/seq_io.h> #include <seqan/sequence.h> #include <seqan/file.h> #include <seqan/score.h> #include <seqan/seeds.h> #include <seqan/align.h> using namespace seqan; seqan::String<Seed<Simple> > get_global_seed_chain(se...
C++
raw/pmsb13/pmsb13-data-20130530/sources/130wu1dgzoqmxyu2/2013-05-01T11-34-38.877+0200/sandbox/my_sandbox/apps/lagan_neu/lagan_neu.cpp
bkahlert/seqan-research
mit
8,171
293
codeparrot/github-code
fa395b913d66bda171070c32846f056f003a5665469e3598c25af80b161ad69e
<<<<<<< HEAD <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/favicon.ico"> <meta name="viewport" content="initial-scale=1.0, maximum-scale=2.0"> <title>Buttons example - Class names</title> <link rel="stylesheet" type="text/css"...
HTML
web/bundles/tesiscontroltesis/DataTables-1.10.12/extensions/Buttons/examples/initialisation/className.html
dialv/tesisControl
mit
46,337
1,734
codeparrot/github-code
bc697c47c2e508bd6dda2fb74b36a2fe0cada3f77c01bd696b13d386650c1982
#include "stdafx.h" #include "GPUResource.h" #include <algorithm> #include "D3D12DeviceContext.h" CreateChecker(GPUResource); GPUResource::GPUResource() {} GPUResource::GPUResource(ID3D12Resource* Target, D3D12_RESOURCE_STATES InitalState) :GPUResource(Target, InitalState, (D3D12DeviceContext*)RHI::GetDefaultDevice())...
C++
GraphicsEngine/Source/D3D12RHI/RHI/RenderAPIs/D3D12/GPUResource.cpp
Andrewcjp/GraphicsEngine
mit
4,208
148
codeparrot/github-code
9abc76c5ef3e9b334e956ce19f114caefd610d7d0e1d9ad6f21b41fad32a41ba
package com.braintreepayments.api; import android.os.Parcel; import android.os.Parcelable; import android.text.TextUtils; import androidx.annotation.Nullable; import com.braintreepayments.api.GraphQLConstants.Keys; import org.json.JSONException; import org.json.JSONObject; /** * Use to construct a card tokenizati...
Java
Card/src/main/java/com/braintreepayments/api/Card.java
braintree/braintree_android
mit
7,536
217
codeparrot/github-code
26dacbcaa9d19b9ef9c1e6b1a673a1efdf451b190acb1efd3f42e8cb2c3481c8
package cn.edu.siso.rlxapf; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; public class DeviceActivity extends AppCompatActivity { private Button devicePrefOk = null; @Override protected vo...
Java
app/src/main/java/cn/edu/siso/rlxapf/DeviceActivity.java
taowenyin/RLXAPF
mit
995
32
codeparrot/github-code
0007e3fee8cb746655aebd623e65871cce68bccc62e327ef684e65f0ea928d7b
/* * Copyright (c) André Bargull * Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms. * * <https://github.com/anba/es6draft> */ /*--- id: sec-function-calls-runtime-semantics-evaluation info: Check TypeError is thrown from correct realm with tco-call to class constructor from class [[...
JavaScript
src/test/scripts/suite262/language/expressions/call/tco-cross-realm-class-construct.js
anba/es6draft
mit
1,775
41
codeparrot/github-code
6b790cb89d8a60e063fe6e0ab4d8561b2c1006787c0bf513f5d16884d90a74e4
package com.rootulp.rootulpjsona; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.AsyncTask; import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.util.Log; import android.view.Menu; import android.view.MenuItem...
Java
mobile_apps/assignment6_rootulp/RootulpJsonA/app/src/main/java/com/rootulp/rootulpjsona/picPage.java
rootulp/school
mit
2,172
71
codeparrot/github-code
d020495953264a5fe607d40b5c7d9ddd98b83c2c91047f5b28d267dfa769c447
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging;...
C#
GameBuilder/BuilderControl/ResourcesControl.xaml.cs
bruno-cadorette/IFT232Projet
mit
909
40
codeparrot/github-code
e9a14540f51f177e4daf8d78a852d082663abd06c9c7da2ea15852df0614043e
// Copyright (c) 2015 Elements of Programming Interviews. All rights reserved. package com.epi; import java.util.Random; public class RabinKarp { // @include // Returns the index of the first character of the substring if found, -1 // otherwise. public static int rabinKarp(String t, String s) { if (s.len...
Java
java/src/main/java/com/epi/RabinKarp.java
adnanaziz/epicode
mit
3,435
109
codeparrot/github-code
bcd5f0ca479cf8ecc9a7a175cfebae56563d3b0130e86ae788ffe8fc2ec1aea6
using System; using System.Collections.Generic; using Sekhmet.Serialization.Utility; namespace Sekhmet.Serialization { public class CachingObjectContextFactory : IObjectContextFactory { private readonly IInstantiator _instantiator; private readonly ReadWriteLock _lock = new ReadWriteLock(); ...
C#
trunk/src/Sekhmet.Serialization/CachingObjectContextFactory.cs
kimbirkelund/SekhmetSerialization
mit
3,112
73
codeparrot/github-code
b105427346c0d82238d378371d47af411923b4996660cc944e266a5cebd210c7
#ifndef __CXXU_TYPE_TRAITS_H__ #define __CXXU_TYPE_TRAITS_H__ #include <type_traits> #include <memory> namespace cxxu { template <typename T> struct is_shared_ptr_helper : std::false_type { typedef T element_type; static element_type& deref(element_type& e) { return e; } static const elemen...
C++
sources/include/cxxu/cxxu/type_traits.hpp
ExpandiumSAS/cxxutils
mit
890
46
codeparrot/github-code
ac685510a6a0eac78f1345ebd37859af131e3f6a4646cf56fc01c277893c7597
package by.itransition.dpm.service; import by.itransition.dpm.dao.BookDao; import by.itransition.dpm.dao.UserDao; import by.itransition.dpm.entity.Book; import by.itransition.dpm.entity.User; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.core.Authentication; import ...
Java
src/main/java/by/itransition/dpm/service/BookService.java
AndreiBiruk/DPM
mit
1,653
65
codeparrot/github-code
97970b5c6c6f3c0426ab8784365cb4f1d04d22365ac305019d15b97e75f3091b
<scri <!DOCTYPE html> <html lang="fr" itemscope="" itemtype="http://schema.org/Blog"> <head> <script> if (window.parent !== window) { if (typeof btoa !== "function") { window.btoa = function (input) { var str = String(input); for (var block, charCode, idx = 0, map = chars, o...
HTML
work/raw_data/pretre_jean_adorateurs_mal/daa931d1d025cc6e01cae4c69445f3823df6e84f4690e8461ce2df0bf4593a92.html
czuger/haute_tension
mit
66,104
1,370
codeparrot/github-code
d3c89337503f731e5df851450709fd76cfedab81eacb00816baef5e21cd285a1
#include "icu.h" #include "unicode/uspoof.h" #define GET_SPOOF_CHECKER(_data) icu_spoof_checker_data* _data; \ TypedData_Get_Struct(self, icu_spoof_checker_data, &icu_spoof_checker_type, _data) VALUE rb_cICU_SpoofChecker; VALUE rb_mChecks; VALUE rb_mRestrictionLevel; typedef struct {...
C
ext/icu/icu_spoof_checker.c
fantasticfears/icu4r
mit
9,203
246
codeparrot/github-code
db8fea37afaeed2d16224d773508836c39dcf25e8c04dba4e0cb138b7c4a5c5f
import { Component } from 'react'; import format from '../components/format'; import parse from 'date-fns/parse'; import getDay from 'date-fns/get_day'; import Media from 'react-media'; import Page from '../layouts/Page'; import TimelineView from '../components/TimelineView'; import ListView from '../components/ListVie...
JavaScript
pages/index.js
webkom/jubileum.abakus.no
mit
1,320
51
codeparrot/github-code
60334ae9ecc9e8bc775f4cef1bbbd3f6dc1f76c8d02f94c81e025a1216fcd460
/* * Simple Vulkan application * * Copyright (c) 2016 by Mathias Johansson * * This code is licensed under the MIT license * https://opensource.org/licenses/MIT */ #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <string.h> #include "util/vulkan.h" #include "util/window.h" int main() {...
C
src/main.c
Mathias9807/Vulkan-Demo
mit
1,993
94
codeparrot/github-code
38bdd854d38443226ac64cc8757a897cef7dd655ab9eb4db63eb416f334144ff
// // detail/win_iocp_socket_recvfrom_op.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2012 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // 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...
C++
liblsl/external/lslboost/asio/detail/win_iocp_socket_recvfrom_op.hpp
gazzlab/LSL-gazzlab-branch
mit
4,108
126
codeparrot/github-code
cbc441520a4443d33aac8142540f618412b968ee3b63319bf5474efeef57389a
package Rakudobrew::ShellHook::Sh; use strict; use warnings; use 5.010; use File::Spec::Functions qw(catdir splitpath); use FindBin qw($RealBin $RealScript); use Rakudobrew::Variables; use Rakudobrew::Tools; use Rakudobrew::VersionHandling; use Rakudobrew::ShellHook; use Rakudobrew::Build; sub get_init_code { my ...
Perl
lib/Rakudobrew/ShellHook/Sh.pm
tadzik/rakudobrew
mit
1,246
57
codeparrot/github-code
c08080b3aca9cfccb3b7b663a521dc5694829e2a203b35a19c6d4272b06f1480
# -*- coding: utf-8 -*- # Keyak v2 implementation by Jos Wetzels and Wouter Bokslag # hereby denoted as "the implementer". # Based on Keccak Python and Keyak v2 C++ implementations # by the Keccak, Keyak and Ketje Teams, namely, Guido Bertoni, # Joan Daemen, Michaël Peeters, Gilles Van Assche and Ronny Van Keer # # Fo...
Python
utils.py
samvartaka/keyak-python
mit
1,774
68
codeparrot/github-code
ab4ab0435accbc0e986c37d7af78f250e59c15f508ac832a63b8e85b7f0a465c
package com.aws.global.dao; import java.util.ArrayList; import com.aws.global.classes.Pizza; import com.aws.global.common.base.BaseDAO; import com.aws.global.mapper.PizzaRowMapper; public class PizzaDAO extends BaseDAO{ //SQL Statement when user adds a pizza to his inventory public void addPizza(String pizzaName...
Java
src_custom/com/aws/global/dao/PizzaDAO.java
sethbusque/pizzaccio
mit
1,598
50
codeparrot/github-code
7e13240992c3cce25f3d69053bbbf976d89dc4f9008e8190ebdf50546303b534
#include <bits/stdc++.h> using namespace std; int count_consecutive(string &s, int n, int k, char x) { int mx_count = 0; int x_count = 0; int curr_count = 0; int l = 0; int r = 0; while (r < n) { if (x_count <= k) { if (s[r] == x) x_count++; r+...
C++
problem_solving/codeforces/676C.cpp
sazid/codes
mit
881
50
codeparrot/github-code
ee37c9efdaf4aeb32bedc08bc35c9fdf5431857c16eb63da7ed40053e17cb437
using BaxterWorks.B2.Exceptions; using BaxterWorks.B2.Types; namespace BaxterWorks.B2.Extensions { public static class BucketExtensions { public static Bucket GetOrCreateBucket(this ServiceStackB2Api client, CreateBucketRequest request) { try { return c...
C#
BaxterWorks.B2/Extensions/BucketExtensions.cs
voltagex/b2-csharp
mit
2,001
60
codeparrot/github-code
be5542c492646b18a4f10cec98617f0f7d7dc2d8422a886653ba73ec7ada448a
import numpy as np import warnings from .._explainer import Explainer from packaging import version torch = None class PyTorchDeep(Explainer): def __init__(self, model, data): # try and import pytorch global torch if torch is None: import torch if version.parse(tor...
Python
shap/explainers/_deep/deep_pytorch.py
slundberg/shap
mit
16,170
398
codeparrot/github-code
46bd58ec85e77f6ac0cfaa5afd2f913511ffa38bf9c35b55f1e7dc1822ff07b5
/* Misojs Codemirror component */ var m = require('mithril'), basePath = "external/codemirror/", pjson = require("./package.json"); // Here we have a few fixes to make CM work in node - we only setup each, // if they don't already exist, otherwise we would override the browser global.document = global.document || ...
JavaScript
codemirror.component.js
jsguy/misojs-codemirror-component
mit
2,410
74
codeparrot/github-code
cd025e877d46b3d31051dc704314ab10ca36740844f3cc39b7a6cac89073ee5a
// github package provides an API client for github.com // // Copyright (C) 2014 Yohei Sasaki // // 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 of the License at // // http://www.apache.org/l...
GO
supports/github/api.go
speedland/wcg
mit
3,000
129
codeparrot/github-code
50ac0a4e9ee8dcc59d97b75a380678638dde1f944ac2c9982749eb7d2475c3f7
import { observable, action } from 'mobx'; import Fuse from 'fuse.js'; import Activity from './../utils/Activity'; import noop from 'lodash/noop'; import uniqBy from 'lodash/uniqBy'; const inactive = Activity(500); export default class Story { @observable keyword = ''; @observable allStories = []; @observable s...
JavaScript
src/content/store/Story.js
nadimtuhin/facebook-activity-monitor
mit
1,020
41
codeparrot/github-code
408f5d3d9a6e2a6dbaf93ba401ec0e905fdc8e1c82b53d0e3fb0d674e944e6f9
# -*- coding: utf-8 -*- from __future__ import unicode_literals import time import curses from . import docs from .content import SubmissionContent, SubredditContent from .page import Page, PageController, logged_in from .objects import Navigator, Color, Command from .exceptions import TemporaryFileError class Subm...
Python
rtv/submission_page.py
shaggytwodope/rtv
mit
11,574
315
codeparrot/github-code
46bc12bfdc72779334a504d6ed7836a71d44b0f408588cfdc8bb8aeb03fc8467
#include <zombye/core/game.hpp> #include <zombye/gameplay/camera_follow_component.hpp> #include <zombye/gameplay/game_states.hpp> #include <zombye/gameplay/gameplay_system.hpp> #include <zombye/gameplay/states/menu_state.hpp> #include <zombye/gameplay/states/play_state.hpp> #include <zombye/gameplay/state_component.hpp...
C++
src/source/zombye/gameplay/gameplay_system.cpp
kasoki/project-zombye
mit
1,741
58
codeparrot/github-code
4aea97bc6457ea349601ced7e541b424acd2095d1189c3bbfc53957e06be1101
'use strict'; const Schemas = require('../server/schemas'); const Code = require('code'); const Lab = require('lab'); const expect = Code.expect; const lab = exports.lab = Lab.script(); const describe = lab.describe; const it = lab.it; describe('server/schemas.todoSchema', () => { it('validates object', (done)...
JavaScript
test/schemasTest.js
genediazjr/hapitodo
mit
1,261
42
codeparrot/github-code
30a45741a421ec980098abbb7576153ece804e1d0ef3f0b91f16a690a48ed096
package mil.nga.geopackage.extension.rtree; import org.junit.Test; import java.sql.SQLException; import mil.nga.geopackage.CreateGeoPackageTestCase; /** * Test RTree Extension from a created database * * @author osbornb */ public class RTreeIndexExtensionCreateTest extends CreateGeoPackageTestCase { /** ...
Java
geopackage-sdk/src/androidTest/java/mil/nga/geopackage/extension/rtree/RTreeIndexExtensionCreateTest.java
ngageoint/geopackage-android
mit
690
41
codeparrot/github-code
85c93d2eeea608c36cd152aa54a03bcbbb8f6e4439488303a3cbdbf21a16feea
#ifndef MESSAGEFILE_H #define MESSAGEFILE_H #include "xmlserializable.h" #include <QList> #include <QByteArray> #include <QImage> #include "messagekey.h" #include "messagetypemix.h" namespace Velasquez { class DrawingElement; } namespace MoodBox { #define MESSAGE_FILE_EXTENSION ".mbm" #de...
C
client/messagefile.h
vorushin/moodbox_aka_risovaska
mit
4,309
141
codeparrot/github-code
8c01d11df1cbe38580766b60df325024fa103991c20112dbb6de72903a9c0ee9
/** * @module popoff/overlay * * Because overlay-component is hopelessly out of date. * This is modern rewrite. */ const Emitter = require('events').EventEmitter; const inherits = require('inherits'); const extend = require('xtend/mutable'); module.exports = Overlay; /** * Initialize a new `Overlay`. * * ...
JavaScript
overlay.js
dfcreative/popoff
mit
2,294
114
codeparrot/github-code
9beb783817b61cb1b04c841d685dcb357c4e78889875e7aa8c317809bee723b9
// The MIT License (MIT) // // Copyright (c) 2015 Rasmus Mikkelsen // https://github.com/rasmus/EventFlow // // 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...
C#
Source/EventFlow.Hangfire/Integration/HangfireJobScheduler.cs
liemqv/EventFlow
mit
3,365
79
codeparrot/github-code
c2712f0670a78c886de0cb5bcf3ea7f2d66992b27372d1982d616d71ba04a69a
if (isset($_POST['upload'])) { $target = "../img".basename($_FILES['image']['name']); $image = $_FILES['image']['name']; $msg = ""; $sql = "UPDATE user SET avatar='$image' WHERE id='$id'"; mysqli_query($conn, $sql); if (move_uploaded_file($_FILES['image']['tmp_name'], $target)) { $msg = "Uploaded file...
PHP
resources/includes/TRASH/KANSKESPARA.php
vicols92/linkify
mit
3,055
105
codeparrot/github-code
bb6f29c53b127afd72894cb450110839e931ef4254bd635bb18a7bbbd80010c3
module Twitter class JSONStream protected def reconnect_after timeout @reconnect_callback.call(timeout, @reconnect_retries) if @reconnect_callback if timeout == 0 reconnect @options[:host], @options[:port] start_tls if @options[:ssl] else EventMachine.add_timer(timeo...
Ruby
lib/earthquake/ext.rb
neurodrone/earthquake
mit
1,538
74
codeparrot/github-code
ecff9eb442be593ab2dc6f97ff08b0e43b68bbd17375b9b93d91a3ba1ab9dff1
module Dotify class Version # The Checkup class is responsible for # reaching out to Rubygems.org and retrieving # the latest gem version. class Checker class << self attr_reader :result, :resp end def self.check_latest_release! @result = (latest == Version.build.le...
Ruby
lib/dotify/version/checker.rb
mattdbridges/dotify
mit
622
30
codeparrot/github-code
667abcbd92b778caf6edf9d1cfc27271f40d5bf9fd4071325fd00e41a861d3f3
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2011-2012 Litecoin Developers // Copyright (c) 2013 Fastcoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license...
C++
src/irc.cpp
RandCoin/randcoin
mit
10,568
397
codeparrot/github-code
7010f53ae99c235efe3af14366b18ee373652881a35b3983259fe91b3a0dce86
package fyskam.fyskamssngbok; import android.app.Activity; import android.app.ActionBar; import android.app.Fragment; import android.support.v4.app.ActionBarDrawerToggle; import android.support.v4.view.GravityCompat; import android.support.v4.widget.DrawerLayout; import android.content.SharedPreferences; import andro...
Java
FysKamsSangbok/app/src/main/java/fyskam/fyskamssngbok/NavigationDrawerFragment.java
fyskam/FysKams-sangbok
mit
10,600
283
codeparrot/github-code
9e8e500817b1431586d89519b256530bbd5f82597ad28afa9f63278b2ffda683
/*************************************************************************/ /* surface_tool.h */ /*************************************************************************/ /* This file is part of: */ /* ...
C
scene/resources/surface_tool.h
tomreyn/godot
mit
5,483
137
codeparrot/github-code
1c70b86a58218b27d98cd8a5846a92756ac8bf32237bb506693dced83504ddd7
import uuid from uqbar.objects import new from supriya.patterns.Pattern import Pattern class EventPattern(Pattern): ### CLASS VARIABLES ### __slots__ = () ### SPECIAL METHODS ### def _coerce_iterator_output(self, expr, state=None): import supriya.patterns if not isinstance(expr,...
Python
supriya/patterns/EventPattern.py
Pulgama/supriya
mit
1,545
58
codeparrot/github-code
1a0fe9a75ad6f571e50e28353a5b0250e43aa5f15e4201c325b356d815f2ed7b
/* Copyright (c) 2011 Andrei Mackenzie 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, distribute...
JavaScript
data/lib/levenshtein.js
crazyfacka/text2meo
mit
1,980
45
codeparrot/github-code
f89bf13c255741c3ab61d88dc07ff95eb2388a9acfb5e501d23edd718abed645
//! \file ArcSG.cs //! \date 2018 Feb 01 //! \brief 'fSGX' multi-frame image container. // // Copyright (C) 2018 by morkt // // 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 Softwar...
C#
ArcFormats/Ivory/ArcSG.cs
morkt/GARbro
mit
2,865
69
codeparrot/github-code