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
208599379bb49235f3ffab028d2f5c71a2b19ec124d0f982b28d58dfe823007c
/* * What follows is the result of much research on cross-browser styling. * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal, * Kroc Camen, and the H5BP dev community and team. */ /* ========================================================================== Base styles: opinionated default...
CSS
src/css/main_v1.css
djf10715/shopping-list
mit
6,355
328
codeparrot/github-code
813b8bb615fe136d67e9cbe95b4fb828b8489ea302a8af2535f4196244fa40ae
#!/usr/bin/env python __author__ = 'Radoslaw Matusiak' __copyright__ = 'Copyright (c) 2016 Radoslaw Matusiak' __license__ = 'MIT' __version__ = '0.5' import cmd import functools import os import sys from polar import Device from polar.pb import device_pb2 as pb_device __INTRO = """ _| ...
Python
loophole/__main__.py
rsc-dev/loophole
mit
9,572
307
codeparrot/github-code
4f3e00697d85ad219ed481dd0f0e7b34df66be66459d44788c514d6b66d9d181
/** * KeyParser.ts * * Simple parsing logic to take vim key bindings / chords, * and return a normalized object. */ export interface IKey { character: string shift: boolean alt: boolean control: boolean meta: boolean } export interface IKeyChord { chord: IKey[] } export const parseKeysFr...
TypeScript
browser/src/Input/KeyParser.ts
extr0py/oni
mit
2,737
121
codeparrot/github-code
47c4e99c7b6e7076adb052d3033581ebc2aa844b4f7546f3c29d9ce8fe5d03a6
import * as React from 'react'; import { connect } from 'react-redux'; import * as Actions from './Actions'; import { ITrackHistoryState } from './ITypes'; let Dropzone = require('react-dropzone'); interface IProps extends ITrackHistoryState { dispatch: Function; }; function selectState(state: ITrackHistoryState) {...
TypeScript
src/Component.tsx
inakianduaga/redux-state-history
mit
7,200
229
codeparrot/github-code
e4e903b9740852635c408547496220016ee19fe93fb4b9eb87d31f20642fd03d
var fs = require('fs'), es = require('event-stream'), asyncJoin = require('gwm-util').asyncJoin; module.exports = function(options) { var type = options.buildType, configFileName = './config/' + type + '.json', fileData = {}, successCallback, errorText, blocker = asyncJoin(funct...
JavaScript
lib/section-content-wrapper.js
jhudson8/gulp-web-modules
mit
1,761
61
codeparrot/github-code
e311c985653949a25d161fa55948420c61f3135fe7bf0673f861ba927781b01e
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Task03EnglishNameOfLastDigit { static void Main(string[] args) { long number = long.Parse(Console.ReadLine()); string numberInLetters = FindTheLastDigitI...
C#
PrgrammingFundametnalsFast/04_MethodsAndDebbuging/Task03EnglishNameOfLastDigit/Task03EnglishNameOfLastDigit.cs
samuilll/BeginnerExams
mit
1,858
84
codeparrot/github-code
471c871e0ce04d729347e9be9a7dcde4780c4311e1da352e1f95d3a1645a36db
import json import sublime import sublime_plugin from .edit import Edit class PawnBuildPathCommand(sublime_plugin.TextCommand): def run(self, edit): self.view.window().show_input_panel( "Working directory that contains pawncc.exe", "C:\\Pawno\\", self.onPawnPathDone, ...
Python
PawnBuildPath.py
Southclaw/pawn-sublime-language
mit
1,010
40
codeparrot/github-code
724cef375a99f15552a1ca5829ee3863bb638e5b22c0dab7257ff86e3dc10940
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Design Team - Sprint Review</title> <meta name="description" content="Talking-bout Sprint Review"> <meta name="author" content="Lee Williams"> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-ap...
HTML
index.html
ell0ell0/sprint_140
mit
25,200
333
codeparrot/github-code
7118f6504c6887b803be59fe1603daad10c86c181d00b68e3b26dac1a7109aa8
/* * This file is part of TechReborn, licensed under the MIT License (MIT). * * Copyright (c) 2020 TechReborn * * 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, inc...
Java
src/main/java/techreborn/blocks/storage/item/StorageUnitBlock.java
TechReborn/TechReborn
mit
4,798
121
codeparrot/github-code
4eca8312b53423c438dfe458d17315bbafc6e17f77ce9a33055d26cd6739bebf
<?php require_once __DIR__.'/../vendor/autoload.php'; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\BaseHttpException; use Symfony\Component\HttpKernel\NotFoundHttpException; use Silex\Provider\FormServiceProvider; use Silex\Provider\TwigS...
PHP
web/index.php
Josiastech/silexApp
mit
2,418
97
codeparrot/github-code
a17e72887e2a2afaf2d28f7a2b63ef1ef3344f2540eb29da0270ac61e3b14598
<?php namespace Nature; class UserToken { private $timePassed = 1418464671; private $codeMaps = "~!@#$%^&*()_+=-{}[]|\;,.<>?/abcdefghijklmnopqrstuvwxyz123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; private $key; private $uid; private $expire=604800; function __construct($key=null){ ...
PHP
App/Nature/UserToken.class.php
shiny/Nature
mit
2,790
97
codeparrot/github-code
bdddbd9257869e94df502f2f979ed5341842fcf66c8510c23c5460c5cecda0f6
'use strict'; /** * Created by x on 11/23/15. */ var path = require('path'); var webpack = require('webpack'); var os = require('os'); var WebpackDevServer = require('webpack-dev-server'); var config = require('./webpack.config.dev'); var pathToBuild = path.resolve(__dirname, 'www'); var IPv4 for(var i=0;i<os.networ...
JavaScript
webpack.server.js
v-xiaofendui/XFD-UI
mit
1,215
49
codeparrot/github-code
ea7df15a27724979afc325712489f69849d28b1078e5207115849b58fd6494a5
package za.co.cporm.model.loader.support; import android.content.Context; import android.database.Cursor; import android.support.v4.content.CursorLoader; import za.co.cporm.model.generate.TableDetails; import za.co.cporm.model.query.Select; import za.co.cporm.model.util.CPOrmCursor; import za.co.cporm.model.util.Conte...
Java
CPOrm/src/main/java/za/co/cporm/model/loader/support/CPOrmLoader.java
Wackymax/CPOrm
mit
2,810
82
codeparrot/github-code
792db62e2a12f4227185421d199d1b5843ac257af9f07a23cf9b04a516f1f3c6
import React from 'react'; import PostImage from '../components/story/PostImage'; import TwoPostImages from '../components/story/TwoPostImages'; import StoryPage from '../components/story/StoryPage'; import StoryTextBlock from '../components/story/StoryTextBlock'; import StoryImages from '../components/story/StoryImage...
JavaScript
src/stories/2016-11-20-irina-and-lucian-maternity-photo-session.js
danpersa/remindmetolive-react
mit
6,016
135
codeparrot/github-code
1fabe6cf7786951df5c2a6e7539932e28d6252c1738d16a8a33771820a642b36
/// <reference types="node" /> declare module 'sqlite3' { // Type definitions for sqlite3 3.1 // Project: http://github.com/mapbox/node-sqlite3 // Definitions by: Nick Malaguti <https://github.com/nmalaguti> // Sumant Manne <https://github.com/dpyro> // Behind The Math <https:...
TypeScript
src/vendor-typings/sqlite3/index.d.ts
kriasoft/node-sqlite
mit
5,194
181
codeparrot/github-code
2152ed436a526f18b89827a6e602ccda988896ce914473c9a154f62ea7ea0ff7
/* * The MIT License * * Copyright 2015 Ryan Gilera. * * 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, mod...
Java
src/main/java/com/github/daytron/twaattin/presenter/LogoutBehaviour.java
Daytron/Twaattin
mit
2,099
57
codeparrot/github-code
14233ba4e0ebb22de46ed2bfe4ba1a059d5ac684825771090a5e63364a2c21d4
package org.railwaystations.api.resources; import com.fasterxml.jackson.annotation.JsonProperty; import org.apache.commons.lang3.StringUtils; import org.railwaystations.api.PhotoImporter; import org.railwaystations.api.StationsRepository; import org.railwaystations.api.model.Station; import javax.ws.rs.*; import java...
Java
src/main/java/org/railwaystations/api/resources/SlackCommandResource.java
pstorch/bahnhoefe.gpx
mit
5,221
127
codeparrot/github-code
3624aad02b2fc51121ae62112402ade2888c78b4f970f87f5f705d56d841cba4
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterModule } from '@angular/router'; import { HttpModule } from '@angular/http';...
TypeScript
example-app/app/app.module.ts
jupiter101/platform
mit
3,067
92
codeparrot/github-code
b14a4e2b183f93a38c7953c981d086ad9e64a36f9788204e9caf9ff7b3c133c7
<?php namespace anli\user\models; use anli\user\models\TenantUser; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; /** * TenantUserSearch represents the model behind the search form about `app\models\TenantUser`. */ class TenantUserSearch extends TenantUser { /** * @inheritdoc */ pu...
PHP
models/TenantUserSearch.php
anli/yii2-user
mit
1,696
71
codeparrot/github-code
b031c5910fe49506b1d42ce5288ad78611f5ddeb73a46f633de6cc3ea34a80c4
<script language="javascript"> $(document).ready(function(){ $(function() { $("#pagination a").each(function() { var g = window.location.href.slice(window.location.href.indexOf('?')); var href = $(this).attr('href'); $(this).attr('href', href+g); }); }); }); ...
PHP
application/views/pages/order_cancel.php
vuonghuynhthanhtu/administrator.lacasa.com
mit
7,186
152
codeparrot/github-code
73ed21694c116383837fcf0cb3ddb17968fd75135a4ba1db159de3106a53da6a
import * as Jungle from '../../../jungle' const {Construct, Composite, Domain, Cell, j, J} = Jungle; import * as Debug from '../../../util/debug' describe("A Cell", function () { Debug.Crumb.defaultOptions.log = console; Debug.Crumb.defaultOptions.debug = true; let cell; beforeEach(function(){ ...
TypeScript
ts_src/test/specs/tertiary/cellSpec.ts
Space-Ed/junglejs
mit
1,305
57
codeparrot/github-code
b4b752a3c16120475c40b42eeaf1faab802ea2469d5ae8be95547494d651bd87
# frozen_string_literal: true module RuboCop module Cop module Rails # This cop is used to identify usages of http methods # like `get`, `post`, `put`, `path` without the usage of keyword arguments # in your tests and change them to use keyword arguments. # # @example # # ba...
Ruby
lib/rubocop/cop/rails/http_positional_arguments.rb
melch/rubocop
mit
3,883
93
codeparrot/github-code
50b8ba5ad651628ca018da1b57f456b50b3513796229abbb961119ed13e1cfea
package de.danoeh.antennapod.core; import android.content.Context; import de.danoeh.antennapod.core.cast.CastManager; import de.danoeh.antennapod.core.preferences.PlaybackPreferences; import de.danoeh.antennapod.core.preferences.SleepTimerPreferences; import de.danoeh.antennapod.core.preferences.UserPreferences; impo...
Java
core/src/play/java/de/danoeh/antennapod/core/ClientConfig.java
mfietz/AntennaPod
mit
1,708
55
codeparrot/github-code
303badfd931e5829e46ec00b02edfc095c9798486ea20a3177b4199b3ae4c466
package com.veaer.glass.viewpager; import android.support.v4.view.ViewPager; import com.veaer.glass.trigger.Trigger; /** * Created by Veaer on 15/11/18. */ public class PagerTrigger extends Trigger implements ViewPager.OnPageChangeListener { private ColorProvider colorProvider; private int startPosition, e...
Java
glass/src/main/java/com/veaer/glass/viewpager/PagerTrigger.java
Veaer/Glass
mit
1,762
61
codeparrot/github-code
3406b144ab06021c28157af500a8bb2f571d07cab23915070559612959f551cc
/* global HTMLImageElement */ /* global HTMLCanvasElement */ /* global SVGElement */ import getOptionsFromElement from "./getOptionsFromElement.js"; import renderers from "../renderers"; import {InvalidElementException} from "../exceptions/exceptions.js"; // Takes an element and returns an object with information ab...
JavaScript
src/help/getRenderProperties.js
lindell/JsBarcode
mit
2,868
103
codeparrot/github-code
b70e794a4c529ba5127994f3d1ac06f3e5cc84839bc1092ffe3046ea2a951f33
import EVENTS from '../events.js'; import external from '../externalModules.js'; import mouseButtonTool from './mouseButtonTool.js'; import touchTool from './touchTool.js'; import pointInsideBoundingBox from '../util/pointInsideBoundingBox.js'; import toolColors from '../stateManagement/toolColors.js'; import isMouseBu...
JavaScript
src/imageTools/textMarker.js
google/cornerstoneTools
mit
9,174
309
codeparrot/github-code
341f3dfc718046c349291f0d962b07527f3b29181aeb09a2935cb4645ecc643d
// Copyright (c) 2014 The GreenCoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "networkstyle.h" #include "guiconstants.h" #include <QApplication> static const struct { const char *networkId; c...
C++
src/qt/networkstyle.cpp
GreenCoinX/greencoin
mit
1,659
48
codeparrot/github-code
265a7ad8307acf2f8cead52d917a42228ded0121f0baf216f20dcff68b855378
<!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"> <head> <meta http-equiv="X-UA-Compatible" content="IE=Edge" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <ti...
HTML
docs/_modules/pymatgen/transformations/site_transformations.html
montoyjh/pymatgen
mit
81,107
650
codeparrot/github-code
0868ffd6b3baacaee8a5c071d41d5bac369e848406b5daf8d8d23e3795c98b83
using System; using Aop.Api.Domain; using System.Collections.Generic; using Aop.Api.Response; namespace Aop.Api.Request { /// <summary> /// AOP API: alipay.marketing.campaign.drawcamp.trigger /// </summary> public class AlipayMarketingCampaignDrawcampTriggerRequest : IAopRequest<AlipayMarketingCampaign...
C#
OSS/Alipay/F2FPayDll/Projects/alipay-sdk-NET20161213174056/Request/AlipayMarketingCampaignDrawcampTriggerRequest.cs
erikzhouxin/CSharpSolution
mit
2,406
101
codeparrot/github-code
a52c539087fa0e665f60cecc5166c21d270413ddab35a9f2c976db4399300048
package main import ( "errors" "flag" "fmt" "go/ast" "go/parser" "go/token" "log" "os" "path/filepath" "strings" "text/template" ) const ( usageText = `SCANEO Generate Go code to convert database rows into arbitrary structs. USAGE scaneo [options] paths... OPTIONS -o, -output Set the...
GO
scaneo.go
variadico/scaneo
mit
8,566
382
codeparrot/github-code
33fafdb0731680262815882ea8efc351b8e65a83a8550a6fbf1def8504fc3947
#include <core/stdafx.h> #include <core/smartview/NickNameCache.h> namespace smartview { void SRowStruct::parse() { cValues = blockT<DWORD>::parse(parser); if (*cValues) { if (*cValues < _MaxEntriesSmall) { lpProps = std::make_shared<PropertiesStruct>(*cValues, true, false); lpProps->block::pars...
C++
core/smartview/NickNameCache.cpp
stephenegriffin/mfcmapi
mit
1,725
72
codeparrot/github-code
73bd45f0792f366a80c17fe7ae78b2dad5e30b2da592de8ee733b5f90dec5b0c
/* * Copyright (C) 1996-2000,2002,2007 Michael R. Elkins <me@mutt.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your opt...
C
hdrline.c
hihellobolke/mutt-extra
mit
19,546
771
codeparrot/github-code
d3bb95f99d8f7e07d9c5bc1f4af7e9c14025bb14906504aeba4c5b28d7dea591
<?php /* * This file is part of the Sylius package. * * (c) Paweł Jędrzejewski * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sylius\Bundle\PromotionBundle\Form\Type\Rule; use Symfony\Component\Form\Abstr...
PHP
src/Sylius/Bundle/PromotionBundle/Form/Type/Rule/ItemCountConfigurationType.php
songecko/legem-ecommerce
mit
2,032
76
codeparrot/github-code
b1ef5521eecbf7018033c3625922585f23a97c032994feb8f05f612434e12681
//----------------------------------------------------------------------- // <copyright file="SingleInstance.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> // <summary> // This class checks to make sure that only one instance of // this application i...
C#
src/Logazmic/Utils/SingleInstance.cs
ihtfw/Logazmic
mit
15,763
441
codeparrot/github-code
91fb764c44133282c87f1477d65fe691edb940181642c2c1a2b12d2d215553b9
from math import sqrt def is_prime(x): for i in xrange(2, int(sqrt(x) + 1)): if x % i == 0: return False return True def rotate(v): res = [] u = str(v) while True: u = u[1:] + u[0] w = int(u) if w == v: break res.append(w) ret...
Python
e35/35.py
neutronest/eulerproject-douby
mit
586
37
codeparrot/github-code
a4145cd9073433f52104ceee95496bcba24b05c5725e71f72d0c41a6c7a148c3
package main import ( "encoding/json" "errors" "fmt" "os" "github.com/idahobean/npm-resource/check" "github.com/idahobean/npm-resource/npm" ) func main() { NPM := npm.NewNPM() command := check.NewCommand(NPM) var request check.Request if err := json.NewDecoder(os.Stdin).Decode(&request); err != nil { f...
GO
check/cmd/check/main.go
idahobean/npm-resource
mit
832
45
codeparrot/github-code
92516c57e38077dd4bb767f17b66c66ff96d74c79a92bdaa2c9344fcc1d8a7b1
/* [Discuz!] (C)2001-2099 Comsenz Inc. This is NOT a freeware, use is subject to license terms $Id: forum.js 33082 2013-04-18 11:13:53Z zhengqingpeng $ */ function saveData(ignoreempty) { var ignoreempty = isUndefined(ignoreempty) ? 0 : ignoreempty; var obj = $('postform') && (($('fwin_newthread') && $(...
JavaScript
bbs/static/js/forum.js
zekewang918/QuitSmoking
mit
22,328
687
codeparrot/github-code
4ccb01461226f24ce6d661f9efc03e2504fd894680ea9e8ed47f5ff53a362d0c
import { EmailTemplate } from 'email-templates' import Promise from 'bluebird' const sendgrid = require('sendgrid')(process.env.SENDGRID_MAILER_KEY) const sendEmail = Promise.promisify(sendgrid.send, { context: sendgrid }) const DEVELOPMENT = process.env.NODE_ENV === 'development' const sanitize = DEVELOPMENT ? require...
JavaScript
src/services/email/mailers/helpers.js
LeadGrabr/api
mit
1,611
45
codeparrot/github-code
5adfd26db85fb1ddc007f2ed6f6830e7f3209b226d8dbf0a61933ab85172accd
import React, { useState } from 'react'; import { StyleSheet, ImageStyle, LayoutChangeEvent } from 'react-native'; import { Gesture, GestureDetector } from 'react-native-gesture-handler'; import Animated, { useAnimatedStyle, useDerivedValue, useSharedValue, withSpring, } from 'react-native-reanimated'; import {...
TypeScript
example/src/new_api/chat_heads/index.tsx
kmagiera/react-native-gesture-handler
mit
5,897
214
codeparrot/github-code
a4eb6a4c23f4a68cff15a7e13bdc8ed6af6781ec0f65be783535e20287ee7ec4
// Copyright (c) 2011-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "sendcoinsdialog.h" #include "ui_sendcoinsdialog.h" #include "init.h" #include "walletmodel.h" #include "addresstabl...
C++
src/qt/sendcoinsdialog.cpp
coinkeeper/2015-06-22_19-13_florincoin
mit
18,849
551
codeparrot/github-code
19b24d518196314d1241704ec3cd447ace5489a722ab1e19e1d0dd61cc14a357
""" Copyright (c) 2016 Genome Research Ltd. 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, distr...
Python
denovoFilter/missing_symbols.py
jeremymcrae/denovoFilter
mit
5,967
169
codeparrot/github-code
5f393aedb9e80459c7bf484e30c484f8089c2724167313c2d41fee3359dcc763
// Copyright (c) 2009-2015 The Bitcoin Core developers // Copyright (c) 2018-2020 The Ion Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_NETBASE_H #define BITCOIN_NETBASE_H #if defined(HAVE_CONF...
C
src/netbase.h
ionomy/ion
mit
2,739
72
codeparrot/github-code
0046c6ceb7f615427a3770f421db19646a9116f8ccdbd16899ed9de6472e7e52
/* globals __dirname */ 'use strict'; var autoprefixer = require('autoprefixer-core'); var Webpack = require('webpack'); var HtmlWebpack = require('html-webpack-plugin'); var path = require('path'); var npmPath = path.resolve(__dirname, 'node_modules'); var config = { sassOptions : ( ...
JavaScript
webpack.config.demo.js
synapsestudios/react-stepper
mit
1,531
59
codeparrot/github-code
cec6bfd0249587a5975a6c602692a5d6b13d1edf5748d4466bff90572eef974d
MD.Keyboard = function(){ const keys = { "v": { name: "Select tool", cb: ()=> state.set("canvasMode", "select") }, "q": { name: "Freehand tool", cb: ()=> state.set("canvasMode", "fhpath") }, "l": { name: "Line tool", cb: ()=> state.set("canvasMode", "fhplineath")}, "r": { name...
JavaScript
src/js/Keyboard.js
duopixel/Method-Draw
mit
7,279
136
codeparrot/github-code
92e245503e2493035c3cce246e61a5290dae9bafa55905a5c2ba2bfcd4e5421e
using System; using System.Linq; using System.Windows.Media; using ICSharpCode.AvalonEdit.Document; using ICSharpCode.AvalonEdit.Rendering; using SolutionsUtilities.UI.WPF.Highlighting; namespace Barings.Controls.WPF.CodeEditors.Highlighting { public class HighlightMatchingWords : DocumentColorizingTransformer ...
C#
Barings.Controls.WPF/CodeEditors/Highlighting/HighlightMatchingWords.cs
Barings/Barings.Controls.WPF
mit
2,679
73
codeparrot/github-code
f5ed0f275b7b74e01df064124d3b3a0463347190f7d8af9381d8385249f274e7
<div class="row"> <div id="base_url" data-base="<?php echo base_url(); ?>"></div> <div class="col-lg-4 col-md-6"> <div class="x_panel"> <div class="x_title"> <h2><i class="fa fa-file"></i> Edit Form</h2> <div class="clearfix"></div> </div> ...
PHP
application/views/forms/edit-form.php
bworkman1/lapp
mit
24,529
417
codeparrot/github-code
83c2724456009b7c58de80e49173298c4fe731e298291dfd07e2d9458378a202
// React app import React from 'react' import {render} from 'react-dom' import App from './components/base_layout/App.jsx' // Redux state manager import { Provider } from 'react-redux' import { createStore } from 'redux' import reducers from './state_manager/reducers' // Electron IPC communication events import ipcRe...
JavaScript
src/renderer_process/app/entry.js
pastahito/remus
mit
1,603
53
codeparrot/github-code
26dff2d57a2a81d722a7ed8a363347d7d33d4547e069d8028b4fb02c7864913b
import datetime day = datetime.datetime.now().weekday() def get_sunday(): return "Today it's Sunday" def get_monday(): return "Today it's Monday" def get_tuesday(): return "Today it's Tuesday" def get_wednesday(): return "Today it's Wednesday" def get_thursday(): return "Today it's Thursday" def g...
Python
pachong/pythonClass/switch.py
vickyi/scoala
mit
685
33
codeparrot/github-code
4f0913eb0bf7ff4258615925d3d1dead16a44d73bbdc7e704bc72ccd324bfa7a
<?php /** * DropColumnSpecificationStatement class file. * * @author Anastaszor */ class DropColumnSpecificationStatement extends CachalotObject implements IDropColumnSpecificationStatement { /** * The name of the column to drop * * @var string */ private $_column_name = null; /** * Sets the ...
PHP
classes/statements/parts/specifications/DropColumnSpecificationStatement.php
Anastaszor/Cachalot
mit
961
58
codeparrot/github-code
13bfef8f2981652e19ed7a7a78502f6792df5b3d5a7e3ec0d36d4955397d6488
// 对字符串头尾进行空格字符的去除、包括全角半角空格、Tab等,返回一个字符串 function trim(str) { var regex1 = /^\s*/; var regex2 = /\s*$/; return (str.replace(regex1, "")).replace(regex2, ""); } // 给一个element绑定一个针对event事件的响应,响应函数为listener function addEvent(element, event, listener, isCorrect) { if (element.addEventListener) { el...
JavaScript
task2/serial5/task32-zts/task.js
hellozts4120/IFE-2016
mit
5,695
185
codeparrot/github-code
003089dc26e146d2bd7ce0155c30f26ded035a1fe858282bd03b494c28f46b2c
import * as React from 'react'; import {px2rem} from '@bizfe/biz-mobile-ui/build/util/util'; import { Button, LinearProgress, CircleProgress } from '@bizfe/biz-mobile-ui'; const styles = { progress: { width: '90%', margin: '20px auto 0', }, } export default class Progress extends Re...
JavaScript
examples/App/temp/Progress.js
tangjinzhou/biz-mobile-ui
mit
1,718
53
codeparrot/github-code
9c703b3dccf5f481193153cda6c1f18f86bdaa5283dc4638173536c22b138b3e
/* Copyright (C) 2012 Kory Nunn 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, subli...
JavaScript
ajax/libs/crel/4.1.0/crel.js
cdnjs/cdnjs
mit
4,862
95
codeparrot/github-code
81b4a098ccf656db7785e51fa1fe0fb8884c38a4577e8cd0b88f0a218d119c07
const fs = require('fs'); const dns = require('dns'); const argv = require('yargs').argv; const Seismometer = require('./seismometer'); const Communicator = require('./communicator'); function assertOnline() { return new Promise((fulfill, reject) => { dns.resolve('www.google.com', err => { if (err) { ...
JavaScript
src/index.js
jmptable/earthquake-converter
mit
1,275
56
codeparrot/github-code
e0d3129420b55d32669cf9695f4cbdae0f5982d33b965abccff175ffb9338e31
namespace Conejo { partial class Asociado { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param na...
C#
Editando/Conejo/Conejo/Asociado.Designer.cs
EduardAl/Proyectos-Visual-Studio
mit
28,866
549
codeparrot/github-code
b38dce018894cbcbfec146fb85ff7a2c47476860be7f75d16aeb99cd915578fc
package in.iamkelv.balances.alarms; import android.app.IntentService; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.support.v4.app.Notificati...
Java
app/src/main/java/in/iamkelv/balances/alarms/SchedulingService.java
kz/balances-android
mit
5,935
158
codeparrot/github-code
d56b091bfc08c4bbf87feb5aae7fb1818ebb6973688a377bb1342a06a40b82b9
package com.thecodeinside.easyfactory.core; /** * A factory's attribute. * * @author Wellington Pinheiro <wellington.pinheiro@gmail.com> * * @param <T> type of the attribute */ public class Attribute<T> { private String id; private T value; public String getId() { return this.id; } ...
Java
core/src/main/java/com/thecodeinside/easyfactory/core/Attribute.java
wrpinheiro/easy-factory
mit
795
43
codeparrot/github-code
861bcbb3748a9386f9a394c46af3b9aec57f5ae738693bcaa5c569c6ba3368d6
<?php use Illuminate\Auth\Reminders\RemindableInterface; use Illuminate\Auth\Reminders\RemindableTrait; use Illuminate\Auth\UserInterface; use Illuminate\Auth\UserTrait; /** * User * * @property-write mixed $password * @property-read \Illuminate\Database\Eloquent\Collection|\Role[] $roles * @property-read \Ill...
PHP
app/models/User.php
matrixdevelopments/laravelVentas
mit
904
39
codeparrot/github-code
820a3cc64b229f55c7c1e142ce71faadc3fbd465b69b2e5a4096b8f9cfd152c4
from contextlib import contextmanager from functools import wraps from werkzeug.local import LocalProxy, LocalStack _additional_ctx_stack = LocalStack() __all__ = ("current_additions", "Additional", "AdditionalManager") @LocalProxy def current_additions(): """ Proxy to the currently added requirements ...
Python
src/flask_allows/additional.py
justanr/flask-allows
mit
5,469
186
codeparrot/github-code
1d25a1ed54b47307c1de028398de8949983e38159854d57715a43a9402e1a386
using System; using Aop.Api.Domain; using System.Collections.Generic; using Aop.Api.Response; namespace Aop.Api.Request { /// <summary> /// AOP API: koubei.marketing.data.customreport.delete /// </summary> public class KoubeiMarketingDataCustomreportDeleteRequest : IAopRequest<KoubeiMarketingDataCustom...
C#
OSS/Alipay/F2FPayDll/Projects/alipay-sdk-NET20161213174056/Request/KoubeiMarketingDataCustomreportDeleteRequest.cs
erikzhouxin/CSharpSolution
mit
2,405
101
codeparrot/github-code
28b516be9add774f3284273874e1e5094d37e13a34a8c177989a339ca6609821
// The MIT License (MIT) // Copyright (c) 2014 Ben Abelshausen // 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, co...
C#
GTFS.IO.Desktop/GTFSDirectorySource.cs
Smartrak/GTFS
mit
5,418
158
codeparrot/github-code
00cfee0d24de55a15b51181c5363d7b7e2535bc7644128282677caacdfeacb3e
using System; using System.Runtime.CompilerServices; namespace DotJEM.AspNetCore.FluentRouting.Invoker.MSInternal { /* This class originates from the https://github.com/aspnet/Common project, as it is * internal a slightly modified version of the code has been copied into this source, * the license of t...
C#
src/DotJEM.AspNetCore.FluentRouting/Invoker/MSInternal/LambdaExecutorAwaitable.cs
dotJEM/aspnetcore-fluentrouting
mit
3,756
72
codeparrot/github-code
a1e227de26f23f2f63bb67d4bc3e4e8d3134c542158d5dd1440d875b093fbc2b
<?php namespace Almendra\Http\Psr\Messages; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\StreamInterface; /** * Represents a response * * @package Almendra\Http */ class Response extends Message implements ResponseInterface { /** * HTTP Response codes. * */ const HTTP_CONTINUE...
PHP
src/Psr/Messages/Response.php
RickyNRoses87/almendra-psr7
mit
8,925
266
codeparrot/github-code
b566982e48427196c179a76fc60bb830f2b9b33acb2d726993c987d32432b0ea
package com.tommytony.war.job; import org.bukkit.block.Block; import org.bukkit.block.BlockFace; import com.tommytony.war.War; import com.tommytony.war.volume.BlockInfo; public class ResetCursorJob implements Runnable { private final Block cornerBlock; private final BlockInfo[] originalCursorBlocks; private fina...
Java
war/src/main/java/com/tommytony/war/job/ResetCursorJob.java
grinning/war-tommybranch
mit
2,006
39
codeparrot/github-code
28c3e2a47049aa1fcd2819e0b95357634c33d7614c830462210d06858df56d81
<!DOCTYPE html> <!--[if IE 9]><html class="lt-ie9" lang="fr"><![endif]--> <!--[if !IE]><!--><html lang="fr"><!--<![endif]--> <head> <title>Ed, Edd n Eddy - Série (1999) - Danny Antonucci - SensCritique</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> ...
HTML
web/docs/series/2015-11-10/ed-edd-n-eddy/index.html
dieng444/smart-search
mit
79,892
2,007
codeparrot/github-code
9674216cefce9aa4c357f1301868a9e32c76ae4fa7ef8d88582bf00bc224a5d3
using FlatBuffers; using FlatBuffers.Schema; using Synchronica.Examples.Schema; using Synchronica.Replayers; using Synchronica.Schema; using System; using System.Collections.Generic; using System.IO; using System.Net.Sockets; using System.Threading; using UnityEngine; namespace Synchronica.Unity.Examples { class ...
C#
SynchronicaUnityExamples/Assets/Scripts/SynchronicaUnityExamples/SimpleClient.cs
wuyuntao/Synchronica
mit
5,147
169
codeparrot/github-code
1c3a36dec1e71d9182c14a3f27fb05c550e1532ced39651fabbeb4974c1a9dc9
'use strict'; function getBetterUpgradeMessage(foundVersion) { let version = (foundVersion && foundVersion[1]) ? `(${foundVersion[1]}) ` : ''; return `A new version of Ghost Core ${version}is available! Hot Damn. \ <a href="http://support.ghost.org/how-to-upgrade/" target="_blank">Click here</a> \ to learn mor...
JavaScript
main/preload/upgrade-notification.js
felixrieseberg/Ghost-Desktop
mit
1,100
30
codeparrot/github-code
4db47aa656718fc62669ed0ebf36c696b128578a74e2a5d9d7c78bdc8ffa0b0e
using System.Threading; using MonoTouch.Foundation; using MonoTouch.UIKit; using iOS.Client.Screens; using iOS.Client.MonoTouch.Dialog; using MonoTouch.Dialog; using System.Drawing; namespace iOS.Client { // The UIApplicationDelegate for the application. This class is responsible for launching the // User In...
C#
iOS.Client/AppDelegate.cs
claudiosanchez/QBank
mit
2,073
66
codeparrot/github-code
8c443ad41408a73c718737a716836051fed01c78f4b2483b0ba1346b9685be60
namespace RemindMe { partial class MaterialPopup { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <p...
C#
RemindMe/Forms/MaterialForms/MaterialPopup.Designer.cs
Stefangansevles/RemindMe
mit
13,936
273
codeparrot/github-code
a5513668e22d0033ed34d83f396344733516e20cbb76c05c2281a3c21997df99
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE416_Use_After_Free__malloc_free_char_11.c Label Definition File: CWE416_Use_After_Free__malloc_free.label.xml Template File: sources-sinks-11.tmpl.c */ /* * @description * CWE: 416 Use After Free * BadSource: Allocate data using malloc(), initialize memory bl...
C
samples/Juliet/testcases/CWE416_Use_After_Free/CWE416_Use_After_Free__malloc_free_char_11.c
maurer/tiamat
mit
5,310
182
codeparrot/github-code
79a50496afe88609366ae06b3ddcbe7e45327e4c52ede3176bc59704d4400fbd
'use strict' var PassThrough = require('stream').PassThrough var statistics = require('vfile-statistics') var fileSetPipeline = require('./file-set-pipeline') module.exports = run // Run the file set pipeline once. // `callback` is invoked with a fatal error, or with a status code (`0` on // success, `1` on failure)...
JavaScript
lib/index.js
wooorm/unified-engine
mit
4,229
151
codeparrot/github-code
a6a523fba618e034e5dd9cdec96354bf8bd4b15937312c130a67ae4a0a2e3c8f
'use strict'; import {should as should_} from 'chai'; const should = should_(); import {spy, stub} from 'sinon'; import {setCanvas, canvas, context} from '../src/canvas'; import draw from '../src/draw'; // import {Sprite} from '../../../script/src/sprite'; describe('draw.js', () => { let ctx; before(() => { ...
JavaScript
public_html/script/test/draw.js
OinkIguana/tactical-rpg
mit
29,943
665
codeparrot/github-code
1886ee5ab494866d492556aea13752e9f9b1ebd0bd08c781d8aa340a79997b36
package org.beryl.app; /** Convenience class for retrieving the current Android version that's running on the device. * * Code example on how to use AndroidVersion to load a multi-versioned class at runtime for backwards compatibility without using reflection. * <pre class="code"><code class="java"> import org.bery...
Java
beryl/src/org/beryl/app/AndroidVersion.java
jeremyje/android-beryl
mit
6,414
175
codeparrot/github-code
957e952fbb22b92e0ff3f7627250a980a1d465de4b541b7c8ee197bb51fbb3e4
/** * HTML5 ✰ Boilerplate * * style.css contains a reset, font normalization and some base styles. * * Credit is left where credit is due. * Much inspiration was taken from these projects: * - yui.yahooapis.com/2.8.1/build/base/base.css * - camendesign.com/design/ * - praegnanz.de/weblog/htmlcssjs-kickstart *...
CSS
css/style.css
btford/socialjam
mit
11,194
429
codeparrot/github-code
4b8e84263a6d5d82d847f737e7570be7331befffbd091c845460a1f6e6cb4de3
<!DOCTYPE html> <html> <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"> <title>jQuery Mobile</title> <link rel="shortcut icon" href="/styles/images/favicon.png"> <link rel="icon" href="/styles/images/favico...
HTML
_site/2017/11/13/jquery-mobile/index.html
Thisisme1228/thisisme1228.github.io
mit
51,354
919
codeparrot/github-code
00ede18f89edbc9c64b5f6ea1d73e3bfd8b97b427ab39fd9e1b8010383a462a1
require 'tempfile' require 'posix-spawn' module Grit class Git include POSIX::Spawn class GitTimeout < RuntimeError attr_accessor :command attr_accessor :bytes_read def initialize(command = nil, bytes_read = nil) @command = command @bytes_read = bytes_read end en...
Ruby
lib/grit/git.rb
gitcafe-dev/grit
mit
16,399
504
codeparrot/github-code
31fbdd78bb2e90d633f1f93ededca1e0dece71c0f7e4770ebb8d1466bf29228c
import unittest """ Given a binary tree, we need to find maximum value we can get by subtracting value of node B from value of node A, where A and B are two nodes of the binary tree and A is ancestor of B. Expected time complexity is O(n). """ class Node: def __init__(self, data, left=None, right=None): s...
Python
Graphs/max_difference.py
prathamtandon/g4gproblems
mit
1,915
68
codeparrot/github-code
9d0568fddf0e9acd8704defd3c1af3fc8806d8c45db4bdbc777b3a7e8c2001c4
"use strict"; var Piece = require('../lib/Piece'), map = require('../lib/map'); describe('Piece.js', function() { var piece; beforeEach(function() { piece = new Piece(1, 'black', 0, 0); }); describe('Piece Constructor', function() { // めんどくせいらね }); describe('Piece.prototype.getPiece()', fu...
JavaScript
test/Piece.test.js
sandai/kifuparser
mit
42,231
1,700
codeparrot/github-code
a42726673107b90f58218ed6137ee5ef20d0f734ecdabdf353e1b3eede4b9cd1
// Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Newtonsoft.Json; namespace Microsoft.Extensions.DependencyModel { internal ref struct UnifiedJsonWriter { private readonl...
C#
src/managed/Microsoft.Extensions.DependencyModel/UnifiedJsonWriter.JsonTextWriter.cs
chcosta/core-setup
mit
1,706
52
codeparrot/github-code
e209f95f608c2f0409a4c539a7beed408b464eea3f0549ca4ead53330f2224a0
<html><body><p><!-- saved from url=(0024)http://docs.autodesk.com --> <!DOCTYPE html> <!-- Mirrored from help.autodesk.com/cloudhelp/2016/ENU/Maya-Tech-Docs/PyMel/generated/classes/pymel.core.nodetypes/pymel.core.nodetypes.Bevel.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 01 Aug 2015 05:20:48 GMT --> <!-- A...
HTML
PyMel.docset/Contents/Resources/Documents/generated/classes/pymel.core.nodetypes/pymel.core.nodetypes.Bevel.html
alexwidener/PyMelDocset
mit
23,357
307
codeparrot/github-code
c3125b6204e8d4fd81eca451b7d761fb062d396aa2615dcb3375965a1bcae102
process.env.NODE_ENV = 'development'; // Load environment variables from .env file. Suppress warnings using silent // if this file is missing. dotenv will never modify any environment variables // that have already been set. // https://github.com/motdotla/dotenv require('dotenv').config({silent: true}); var chalk = r...
JavaScript
scripts/start.js
adeira/connector-frontend
mit
10,826
256
codeparrot/github-code
6936654338b3e0a59d01b9c0c0474dd794d21ec53ec1101256acd25262e8f6b7
define([], () => { 'use strict'; class FeedsError extends Error { constructor(...args) { console.error('FeedsError', args); super(args); } } class ServerError extends Error { constructor(...args) { super(args); } } function q...
JavaScript
src/client/modules/lib/feeds.js
briehl/kbase-ui
mit
8,054
210
codeparrot/github-code
104f0216b313a28e6c2b78657d5d5d534fd69e17ce255fb858d5f1c4bfdeeca9
module Precious module Views class HistoryAll < Layout def title "Recent activity on Weaki" end def versions i = @versions.size + 1 versions_temp = @versions.map do |x| v = x[0] page = x[1] i -= 1 { :id => v.id, :id7 => v.id[0..6], :num => i, :au...
Ruby
lib/gollum/views/history_all.rb
nunoflores/gollum
mit
1,894
66
codeparrot/github-code
4e0560ad4001c38f1a1bb63f38a4309eaa0996a7b6892f0c51526c0f4242c1a5
<!DOCTYPE HTML> <html lang="en"> <head> <meta id="viewport" name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="apple-m...
HTML
game/umu/realtime-status.html
JingxuanWang/JingxuanWang.github.io
mit
1,355
46
codeparrot/github-code
73d160fffbcfa99f6b9dfa04bc7ab306468d0de7e1b9e478196475071ca25c3f
/** * SIP Transactions module. */ (function(JsSIP) { var C = { // Transaction states STATUS_TRYING: 1, STATUS_PROCEEDING: 2, STATUS_CALLING: 3, STATUS_ACCEPTED: 4, STATUS_COMPLETED: 5, STATUS_TERMINATED: 6, STATUS_CONFIRMED: 7, // Transaction types NON_INVITE_CLIE...
JavaScript
src/Transactions.js
CodeYellowBV/JsSIP
mit
20,494
713
codeparrot/github-code
c90f75535c121c267f9fffa3a8cf01c7a3ca5b6b17a7a61683695336b11de123
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Data; using System.Collections; using System.Web.UI.WebControls; using ServiceReference1; public partial class Meetings { public int appointmentNumber { get; set; } public DateTime startDate ...
C#
Website/PatientClient/Appointments.aspx.cs
neunhuyeu/gds-mis
mit
1,834
66
codeparrot/github-code
c72eed35097b0190845a3845a41a46da4697389751937ae502243bd524fdea0c
/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */ /* * What follows is the result of much research on cross-browser styling. * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal, * Kroc Camen, and the H5BP dev community and team. */ /* ============================================...
CSS
css/main.css
oblinger/AnalyticsFire.com
mit
5,897
313
codeparrot/github-code
fe39d51285869e5f386d9c3b460716b2f5a7a7e9ea422c85620d43bd81c066a8
<footer class="site-footer"> <div class="wrapper"> <!--<h2 class="footer-heading">{{ site.title }}</h2>--> <div class="footer-col-wrapper"> <div class="footer-col footer-col-1"> <ul class="contact-list"> <li>{{ site.title }}</li> {% if site.email %} <li><a href="...
HTML
_includes/footer.html
cklanac/cklanac.github.io
mit
1,118
43
codeparrot/github-code
ad7ec6c4a9785d9868b816affc154f96441ede188a36df56cee5877adea3bba5
module ArrayTests def test_array_value_type assert_instance_of Inquisitive::Array, array end def test_array_match assert array.postgres? end def test_array_miss refute array.sql_server? end def test_array_negative_match assert array.exclude.sql_server? end def test_array_negative_mis...
Ruby
test/shared/array_tests.rb
christhekeele/inquisitive
mit
711
34
codeparrot/github-code
5028a3ae9c100cd327667a4b5c474a73e8958166238ac992986011888242be35
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * * Version: 5.10.0 (2021-10-11) */ (function () { 'use strict'; ...
JavaScript
ajax/libs/tinymce/5.10.0/plugins/emoticons/plugin.js
cdnjs/cdnjs
mit
18,139
637
codeparrot/github-code
6170251ddc36f71225b9df3bbb1b288892e0407e610d91edc75bfd2b23238535
/* * ajaxify.js * Ajaxify - The Ajax Plugin * https://4nf.org/ * * Copyright Arvind Gupta; MIT Licensed */ /* INTERFACE: See also https://4nf.org/interface/ Simplest plugin call: let ajaxify = new Ajaxify({options}); Ajaxifies the whole site, dynamically replacing the elements specified in "elements" ac...
JavaScript
ajax/libs/ajaxify/8.1.1/ajaxify.js
cdnjs/cdnjs
mit
30,546
840
codeparrot/github-code
8a71bf63c6a26318fb049c005c784889b38afac8bba932aaf5d8244db61ec1d2
/** * @license Highstock JS v8.1.0 (2020-05-05) * * Indicator series type for Highstock * * (c) 2010-2019 Sebastian Bochan * * License: www.highcharts.com/license */ 'use strict'; (function (factory) { if (typeof module === 'object' && module.exports) { factory['default'] = factory; module.e...
JavaScript
ajax/libs/highcharts/8.1.0/indicators/trendline.src.js
cdnjs/cdnjs
mit
5,152
155
codeparrot/github-code
817d3b60070b0295d3c17cdf467518ce121be103516c8c37a7b9ad045e0096f2
import settings from './../settings' import {findDistance, limitPositions, chooseOne, randomInt, getAvgPostion} from './general' module.exports = { applyLimbForces: (Eves) => { for(var i = 0; i < Eves.length; i++) { var eve = Eves[i]; for(var j = 0; j < eve.limbs.length; j++) { var limb = eve...
JavaScript
server/helpers/movement.js
iandeboisblanc/evolution
cc0-1.0
3,327
89
codeparrot/github-code
e7b5a41e9242d3125f0ce697addff2f0bb895a1b8edbb4bf4904e7b2be55fea2
<!-- Automatically generated HTML file from DocOnce source (https://github.com/hplgit/doconce/) --> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="DocOnce: https://github.com/hplgit/doconce/" /> <meta name="description" content="Computational Physics ...
HTML
doc/pub/pde/html/._pde-bs096.html
CompPhysics/ComputationalPhysicsMSU
cc0-1.0
32,518
536
codeparrot/github-code
423ce73b4c25c2421aca5d80f4d05ed1167d2e73dd5bfbaa5354ff072630645b
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="generator" content="pandoc" /> <meta http-equiv="X-UA-Compatible" content="IE=EDGE" /> <title>Introductory example. Part 1.</title> <script src="site_libs/header-attrs-2.1/header-attrs.js"></script> <script src="site_libs/jquery-1.11.3/jquery.mi...
HTML
docs/FLBEIA_A_Simple_Example.html
flr/doc
cc0-1.0
63,678
1,358
codeparrot/github-code
d11ecec1bac1ab6502cd4ffbdbeedf5ae1c789dfa5820774abf9879d1b19c5ff
--- layout: post title: "Get a value from a map" date: 2016-03-05 08:20:58 -0600 categories: map --- This example shows different ways to get values from a map. {% highlight elixir %} # dot syntax can be used if key is atom 1 = %{c: 1}.c # Raises a key error for missing key %{c: 1}.a # [] works for non-atom value...
Markdown
_posts/2016-03-05-get-a-value-from-a-map.markdown
elixir-examples/elixir-examples.github.io
cc0-1.0
793
40
codeparrot/github-code
cb766ca1126e4faa18a2830a0ef4880f5174e2273a4b99a33385dd8997f7b7b6
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><title>R: Toolkit for Encryption, Signatures and Certificates Based on OpenSSL</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <li...
HTML
R-Portable-Mac/library/openssl/html/00Index.html
ColumbusCollaboratory/electron-quick-start
cc0-1.0
8,757
165
codeparrot/github-code
341c8f0e0e3e1db9db14b2815b463188ed20370e7b6d8abe04e2080c4ea6d48c
/* * File: main.c * Author: topseten * * Created on December 28, 2014, 11:17 PM */ #include "main.h" #define MAX_LINE 256 void vfree(const void*,void **,void *); void test(Ring_T data); int main(int argc, char** argv) { // test ////////////////////////////////////////////////////////////////...
C
C/study/smarthome/main.c
crazyhuaer/netbeanscode
cc0-1.0
13,712
461
codeparrot/github-code
6901b1f70f0ec2fb984f7fb232a25c52b42efeba91ca400bdefa663299095dfc
#!/usr/bin/env python3 from SPARQLWrapper import SPARQLWrapper, JSON import requests import re import os import os.path import time import sys FINTO_ENDPOINT='http://api.dev.finto.fi/sparql' FINNA_API_SEARCH='https://api.finna.fi/v1/search' lang = sys.argv[1] # map ISO 639-1 language codes into the ISO 639-2 codes ...
Python
create_corpus_yso_finna.py
osma/annif
cc0-1.0
4,644
153
codeparrot/github-code
c283672807c5f0932c3dcf211b78a223ca646e25a5a2c51a6f8453ed301b4309
// // This file made available under CC0 1.0 Universal (https://creativecommons.org/publicdomain/zero/1.0/legalcode) // var aws = require('aws-sdk'); var s3 = new aws.S3(); var zlib = require('zlib'); var config = new aws.ConfigService(); var iam = new aws.IAM(); // Helper function used to validate input ...
JavaScript
node/config_enabled_in_region-periodic.js
anthroprose/aws-config-rules
cc0-1.0
2,214
81
codeparrot/github-code
279939652f17753324b593518bd9add057ea0c5346af8ddccc2c4e6bec7153f0
import {inject, customElement, bindable} from 'aurelia-framework'; import mapsapi from 'google-maps-api'; @customElement('place-picker') // Get an API key from https://developers.google.com/maps/documentation/javascript/get-api-key. @inject(Element, mapsapi('AIzaSyA1QmM_IG94DN0kCl7l1dblf4C8vRiuxus', ['places'])) expor...
JavaScript
skeleton-esnext/src/place-picker.js
ne0guille/skeleton-navigation
cc0-1.0
2,167
63
codeparrot/github-code