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
54e2bb711aa01f6d07a367a12041761f1127bcb019988fe0868ea6b489c24e7f
namespace AngleSharp.Html.Forms.Submitters.Json { using AngleSharp.Text; using System; using System.Collections; using System.Collections.Generic; using System.Linq; sealed class JsonArray : JsonElement, IEnumerable<JsonElement?> { private readonly List<JsonElement?> _elements; ...
C#
src/AngleSharp/Html/Forms/Submitters/Json/JsonArray.cs
AngleSharp/AngleSharp
mit
1,900
79
codeparrot/github-code
5b617b91f0271de528302091e2a7b9c52f86b393545c14f5c53c8366613b3eb6
<?php /* * This file is part of the FOSUserBundle package. * * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Thesis\BulletinBundle\Controller; u...
PHP
src/Thesis/BulletinBundle/Controller/SecurityController.php
wenszxc/Thesis
mit
3,446
91
codeparrot/github-code
5a1087d3a9cd643ef2b424bb34e1e5de3e81cd4c8af94a6661fd1cd33fa09621
/* globals Awesomplete */ const React = require('react'); const ReactDOM = require('react-dom'); // Dependencies import builder from 'focus-core/component/builder'; import types from 'focus-core/component/types'; let find = require('lodash/collection/find'); const InputText = require('../../components/input/text'); con...
JavaScript
src/common/autocomplete/awesomplete.js
JabX/focus-components
mit
7,917
217
codeparrot/github-code
26004e330170fd44164575393afe47e5b3d7d0ea3f02bf99206877850c089650
using System; using NUnit.Framework; using SynoDuplicateFolders.Data; using SynoDuplicateFolders.Data.Core; namespace SynoDuplicateFolders.Test { [TestFixture] public class UnitTest1 { private static SynoCSVReportPair<SynoReportSharesValues, SynoReportVolumeUsageValues> NewReportPair(ISynoCSVRepo...
C#
SynoDuplicateFolders.Test/UnitTest1.cs
biocoder-frodo/SynoDuplicateFolders
mit
2,781
77
codeparrot/github-code
e83025925dff0c78f81aea566b480f79a6c9b4057cf60184fc2b2e7516e959d4
<?php namespace Ekyna\Component\Commerce\Order\Entity; use Ekyna\Component\Commerce\Common\Model\AdjustmentInterface; use Ekyna\Component\Commerce\Common\Model\SaleItemInterface; use Ekyna\Component\Commerce\Invoice\Entity\AbstractInvoiceLine; use Ekyna\Component\Commerce\Invoice\Model\InvoiceInterface; use Ekyna\Com...
PHP
Order/Entity/OrderInvoiceLine.php
ekyna/Commerce
mit
2,819
120
codeparrot/github-code
c3b6e22ee1ea240488b0c86a84c3bdd150cb0602ec455f665aec7ffb20821003
<!DOCTYPE html> <html lang="" xml:lang=""> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <title>CHEM 370 Lab Manual</title> <meta name="description" content="Lab Manual for CHEM 370: Instrumental Analysis Laboratory" /> <meta name="generator" content="bookdown 0.20 a...
HTML
chem370/lab-manual/index.html
alphonse/alphonse.github.io
mit
34,934
432
codeparrot/github-code
e6750cb06a310620af10d95e51f96cba08602a0d77d37151c06a2c9f1e2df84c
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = function (width, height, grid, font) { var step = grid.properties.get('step'); var colors = grid.properties.has('color') ? new _immutable.List([grid.properties.get('color')]) : grid.properties.get('colors'); var st...
JavaScript
lib/components/viewer3d/grids/grid-horizontal-streak.js
cvdlab/react-planner
mit
1,664
52
codeparrot/github-code
5d7203e71061415266aa1efdbe4ef31c0a8539040da4c0202a8a23e06f99925b
/* ResponsiveVoice JS v1.4.0 (c) 2015 LearnBrite License: http://responsivevoice.org/license */ if("undefined"!=typeof responsiveVoice)console.log("ResponsiveVoice already loaded"),console.log(responsiveVoice);else var ResponsiveVoice=function(){var a=this;a.version="1.4.0";console.log("ResponsiveVoice r"+a.versi...
JavaScript
app/assets/javascripts/responsiveVoice.js
mknapik/twfhackaton
mit
21,606
49
codeparrot/github-code
c6c2006587c1b794345fe8687df27496b93e057b042823ba773ff9ffa713d866
/* * Blue-dot library * http://github.com/fpicalausa/blue-dot * * Copyright (c) 2015 Francois Picalausa * Licensed under the MIT licenses. */ (function() { 'use strict'; var geolocation_options = { enableHighAccuracy: false, timeout: 8000, maximumAge: 3000 }; function LocationError(code, rea...
JavaScript
bluedot.js
fpicalausa/blue-dot
mit
2,471
76
codeparrot/github-code
d513c328c44568f32fc743cdf659c4c70014798251e2b6ffbb0e7a04f4d4a372
package org.knowm.xchange.btcchina; import java.math.BigDecimal; import java.math.RoundingMode; import java.util.ArrayList; import java.util.Collections; import java.util.Date; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import org.knowm.xchange.btcchina.dto.BTCChinaRespons...
Java
xchange-btcchina/src/main/java/org/knowm/xchange/btcchina/BTCChinaAdapters.java
mmithril/XChange
mit
14,015
372
codeparrot/github-code
9abd3894ec7a405cf67851ba72957cc2c6400f01524d8922e0ce3a4c95fb61c8
function deepEqual(obj1, obj2) { if (typeof obj1 === 'object') { console.log("in deepEqual object") if (Array.isArray(obj1) && Array.isArray(obj2)) { if (obj1.length !== obj2.length) { return false } for (var i = 0; i < obj1.length; i++) { if (obj1[i] !== obj2[i]) { ...
JavaScript
src/utils/expect.js
GMMx1/getthrough-it-client
mit
1,395
55
codeparrot/github-code
db7deb359c2295139a2191c1c85d342b91b8b01511855497bf1197965afab739
/* eslint-disable security/detect-non-literal-require */ /* eslint-disable import/no-dynamic-require */ /* eslint-disable node/global-require */ const fs = require("fs"); const path = require("path"); const json5 = require("json5"); const _get = require("lodash/get"); const _has = require("lodash/has"); const tryRequir...
JavaScript
src/config-utl/extract-babel-config.js
sverweij/dependency-cruiser
mit
3,736
110
codeparrot/github-code
b5d60e1c5489825ecb59cb5ca65acc368fa98292157a4b01f9cc01031d5e2957
PR2 = window.PR2 || {}; /** * A static class to store and retrieve user credentials, that is name and level (student/tutor) as well as role (creator/observer). * @class user * @static * @requires utils */ PR2.user = (function(self){ var $ = PR2.utils, user_credentials = {}, role_change_handler = func...
JavaScript
public/views/classroom/whiteboard/PR2_modules/user.js
kimball139/drywall
mit
2,516
92
codeparrot/github-code
09449c61121fda7a4e7740d32d3fb15cf0eda8fa138c1e34947c4e0fcafb9b6d
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; using System.Wi...
C#
Routing/Routing.Silverlight/Views/SimulateScenario.xaml.cs
valeriob/Routing
mit
3,798
111
codeparrot/github-code
9088611c4ccf6cb2338a5388474b5384097553b2612c2dd66b00467448970303
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <META http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Register of penalty notices | NSW Food Authority</title> <meta name="DC.Identifier" scheme...
HTML
data/cache/penalties/3030930614.html
auxesis/gotgastro.com
mit
34,662
520
codeparrot/github-code
f1ea310d2b8438cbfef9f55c66f0a6e53d77d2d49af9ae12369232fd31b56500
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* |-------------------------------------------------------------------------- | Custom Constants |-------------------------------------------------------------------------- | */ define('SALT', 'justAnotherSalt000-000'); /* |-----------------------...
PHP
application/config/constants.php
qichengkk/CARDS
mit
3,642
95
codeparrot/github-code
4de451779a2047918e011a5260aedf857ea3985c14bd7394538bf3316a9f560e
/* @flow */ import React from 'react'; import PropTypes from 'prop-types'; import { View, TouchableOpacity, Text, StyleSheet, Animated, ActivityIndicator, TouchableNativeFeedback, Platform } from 'react-native'; type Props = { textStyle: Object | number, disabledStyle: Object | number, children:...
JavaScript
src/Button.js
APSL/react-native-options-button
mit
4,323
174
codeparrot/github-code
1d3429464e334847db948c169aa5786f49be028c2f78641dfb8298efa8f015d1
using System; using FileHelpers; namespace ExamplesFx { //-> Name: FixedLengthRecord FixedMode.AllowLessChars //-> Description: Options when working with fixed files and not all records have same length public class FixedLengthRecordLastVariableExample : ExampleBase { public override ...
C#
FileHelpers.Examples/Examples/15.Attributes/31.FixedLengthRecordLastVariable.cs
guillaumejay/FileHelpers
mit
1,510
53
codeparrot/github-code
7ba92ee8b4765306cce0a76ae0227896e5b465d9eb8d3f2585d17427edb1931a
require 'json' require 'systemu' module Traut class Server def initialize(params) @channel = params[:channel] || raise('parameter :channel required') @exchange = params[:exchange] || raise('parameter :exchange required') @events = params[:events] || raise('parameter :events required') @l...
Ruby
lib/traut/server.rb
blt/traut
mit
1,704
55
codeparrot/github-code
6e207ad86f47ccde4ad7ba178b27b001d2e0b941147851eed86a443d5b31af05
#!/usr/bin/env python # coding=utf-8 """ / 提供基础页面 """ import json import time import subprocess import tornado.concurrent import tornado.gen import tornado.httpclient import tornado.httpserver import tornado.ioloop import tornado.options import tornado.web import tornado.template import pymongo from tornado.options im...
Python
conf-sys/web_app.py
tao12345666333/Talk-Is-Cheap
mit
1,753
76
codeparrot/github-code
dedbdfa3110b3d12cbc503f73925042100d54a1e41db027d4cdc668f4d0f128e
/* * Copyright (C) 2009-2015 FBReader.ORG Limited <contact@fbreader.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 option) any later ...
Java
app/src/main/java/org/geometerplus/android/fbreader/preferences/ZLBooleanPreference.java
zhqhzhqh/FbreaderJ
mit
1,383
42
codeparrot/github-code
ec6664c05fdea1996c4b239b75f1ed0b8e2826d75e77a961fd1914c8a1dda84b
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>WhatsApp Chat Log Viewer</title> <link rel="stylesheet" type="text/css" media="screen" href="styles.css" /> <head> <body> <div id="screen"> <div id="contact"> <div id="profile-picture"></div> <di...
HTML
WhatsApp-chat-log-viewer/index.html
akinuri/akinuri.github.io
mit
2,440
82
codeparrot/github-code
a4b02ebce787c692aafc5df66b62bc6d12934c8816e6257f16b52c8fe06b00b1
## Imported math functions ## make vectorized version while we are at it for fn in (:sin, :cos, :tan, :sinh, :cosh, :tanh, :asin, :acos, :atan, :asinh, :acosh, :atanh, :sec, :csc, :cot, :asec, :acsc, :acot, :sech, :csch, :coth, :acoth, :atan2, :radians2degrees, :de...
Julia
src/math.jl
JuliaPackageMirrors/SymPy.jl
mit
8,668
296
codeparrot/github-code
ca681e42b1818623845d9eeacb7b063112c177525592fd367da32130bbb6aaae
# ScopeGroup module ActiveRecord module NamedScoope module Group def self.included(base) base.class_eval do extend ClassMethods end end module ClassMethods def run_scope_group(groups) scope = groups.shift if groups.empty? ...
Ruby
lib/scope_group.rb
robin/scopegroup
mit
1,097
49
codeparrot/github-code
0a559b4e4d30f28c697a669067a2f5dfd9cda25cc8a5a679b6452aa8ca93ed06
"use strict"; import { inject, injectable } from "inversify"; import { IInstanceInspector, IConfiguration } from "./interfaces"; import { spawn } from "child_process"; @injectable() export class InstanceInspector implements IInstanceInspector { private static get POLICYFILE_BANNER(): string { return "----->"; } ...
TypeScript
src/instance_inspector.ts
jirkafajfr/vscode-kitchen
mit
1,530
43
codeparrot/github-code
6a4385e4aa9a96ef398ed9109c9890afd99d88a1cd762b12792165397ac7c037
namespace KIBOTTER { partial class DraftForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param...
C#
Src/KIBOTTER/KIBOTTER/DraftForm.Designer.cs
KIBOU811/KIBOTTER
mit
6,503
124
codeparrot/github-code
c57f7ae6f155283b9758e26f77bf43081668ced494bbd5a011738e65685216b0
using System; using System.ComponentModel; using System.Linq; using LockCheck; namespace Test.NetFx { class Program { private static int Main(string[] args) { try { if (args.Length == 0) { Console.Error....
C#
Test.NetFx/Program.cs
cklutz/LockCheck
mit
2,015
59
codeparrot/github-code
e8df4509fa79d1582d683f34818a47fd6a5ffdb554b5ea963a7f3a59b8ddc231
'use strict'; var yeoman = require('yeoman-generator'); var chalk = require('chalk'); var yosay = require('yosay'); var _ = require('lodash'); var execSync = require('child_process').execSync; module.exports = yeoman.generators.Base.extend({ prompting: function () { var done = this.async(); var prompts = ...
JavaScript
generators/component/index.js
nsarno/generator-react-rocket
mit
1,037
44
codeparrot/github-code
142d410f14cbfb1dce1b3125778c5f1b84e7f2a0296c2823efe5b3027b6f40dc
/* * [The "BSD licence"] * Copyright (c) 2005-2008 Terence Parr * All rights reserved. * * Conversion to C#: * Copyright (c) 2008-2009 Sam Harwell, Pixel Mine, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the fol...
C#
src/Antlr3.Runtime.CoreCLR/Tree/TreeParser.cs
palantirza/Numeric
mit
7,867
210
codeparrot/github-code
d63561a02991292b5968e77ddb6e2de4c8700e1d3f75cd32c631f4dca15ceeec
Drafter = Class.create({ initialize: function(){ this.renderTools(); this.renderSettings(); this.renderStyle(); this.renderHTML(); this.idCount = 0; this.fSpan = 23; this.fAppend = 0; this.fPrepend = 0; this.fPull = 0; this.fPush = 0; }, renderStyle: function(){ Element.insert($("drafter_tools"...
JavaScript
js/brain.js
prtksxna/drafter
mit
8,532
234
codeparrot/github-code
6790d0784bed1e792db8c23730485136c956d8848798bba6a451001527f677ea
package com.vote4dance.judging.application; import android.accounts.*; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.net.Uri; import android.os.Bundle; import android.preference.PreferenceManager; import android.util...
Java
src/com/vote4dance/judging/application/LoginActivity.java
microcode/judging-android-client
mit
5,044
154
codeparrot/github-code
e569835ed56a0a037d5af42004d33b74177bddd607a489d6b9c45b4624c398ab
<?php declare(strict_types=1); namespace HnhDigital\LaravelTwilio; use Log; use Twilio\Rest\Client; class Sms { const MODE_NUMBER = 0; const MODE_MSG_SERVICE = 1; /** * Callback url. * * @var string */ private $callback; /** * Twilio client. * * @var Twilio\R...
PHP
src/Sms.php
bluora/laravel-twilio
mit
4,258
189
codeparrot/github-code
82a5864c10d0f546e7b17a6a741e8a1df3a049286ba569805ec420e43fb9fbc5
# Copyright (C) 2007 - 2009 Khronos Group # Copyright (c) 2012 The Khronos Group Inc. # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and /or associated documentation files (the "Materials "), to deal in the Materials without restriction, including without limitation the...
Python
StandardDataSets/collada/library_geometries/geometry/mesh/polygons/one_geometry_one_polygons/one_geometry_one_polygons.py
KhronosGroup/COLLADA-CTS
mit
5,053
94
codeparrot/github-code
c150baa650b5a525e470f2a1f5b795f20ba32ad60f8e54ea3fe4a05745bd89c0
#define _POSIX_C_SOURCE 200809L #define _GNU_SOURCE #define _XOPEN_SOURCE 500 #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <fcntl.h> #include <sys/stat.h> #include <sys/types.h> #include <errno.h> #include <signal.h> #include <time.h> #define handle(fun, val, text, exited) ...
C
ZagorskiMichal/cw05/zad2/wrfifo.c
zagura/so-2016
mit
1,827
65
codeparrot/github-code
fe1b779a3f67226f45122bf6c6a9e20de169eb289e2fb27ee2003f7b31adb53e
<?php /*======================================================================*\ || #################################################################### || || # vBulletin 4.0.5 || # ---------------------------------------------------------------- # || || # Copyright ©2000-2010 vBulletin Solutions Inc. All Rights R...
PHP
web/forum/upload/includes/class_postbit.php
jessadayim/findtheroom
mit
41,586
1,271
codeparrot/github-code
24f42bc145fdadfc9419f646f4a535b1c93bf398ed72a4e396add7f0ad2cab14
--- layout: default title: Home --- <div class="posts"> {% for post in paginator.posts %} <div class="post"> <h1 class="post-title"> <!-- <a href="{{ post.url }}"> --> {{ post.title }} <!-- </a> --> </h1> <span class="post-date">{{ post.date | date_to_string }}</span> {{ post....
HTML
index.html
karmaconductors/karmaconductors.github.io
mit
974
37
codeparrot/github-code
3ada608959523707082dc9d0ae0ebdc630213b622a01eec6c504e085ce46b525
/********************************************* Intentor.Yamapper ********************************************** Copyright © 2009-2012 André "Intentor" Martins http://intentor.com.br/projects/yamapper/ Parcialmente baseado em NHCustomProviders.NHCustomMembershipProvider Copyright © 2007-2008 Manuel Abadia ht...
C#
src/Intentor.Yamapper/Security/YamapperMembershipProvider.cs
intentor/yamapper
mit
35,414
643
codeparrot/github-code
ed0dbddca3418b8c20e014efcd6c851c8f950e35eb3383982b33a68c0e48464e
package com.example.basiccameraapp; import android.graphics.Bitmap; import android.util.Log; public class BlurArtifactInducer extends ArtifactInducer { private static String TAG = BlurArtifactInducer.class.getName(); @Override public Bitmap induceArtifacts(Bitmap image, int originalWidth, int originalHei...
Java
src/com/example/basiccameraapp/BlurArtifactInducer.java
achalddave/ImageDeteriorator
mit
2,347
53
codeparrot/github-code
af8c546c239602491ad45a5e1b5f8b137deee9523aafaaf3a0b7d9423d5f4f01
'use strict'; const { createHmac } = require('crypto'); const { mapKeys, pickBy } = require('lodash'); const querystring = require('querystring'); const AWSAccount = require('../models/account'); const S3Error = require('../models/error'); const { RESPONSE_HEADERS } = require('./response-header-override'); const { ...
JavaScript
lib/middleware/authentication.js
rockmacaca/s3rver
mit
14,616
499
codeparrot/github-code
deee491ca11dccecefa4884c51cec689f208e52656767535c5a5aced213e29cf
#include "SolutionChecker.h" using namespace ysk; using namespace std; using namespace lemon; bool SolutionChecker::verifySolutionIsCliqueGraph(ClusterEditingInstance & instance, ClusterEditingSolutions & solutions){ for (unsigned int i = 0; i < solutions.getNumberOfSolutions(); i++){ cout << "Verif...
C++
src/SolutionChecker.cpp
ls-cwi/yoshiko
mit
6,472
139
codeparrot/github-code
4d1cd357c79eb1f7b880db090a14fadc53da4666020322d4a2f93fd07ebcf508
<?php /* |-------------------------------------------------------------------------- | Model Factories |-------------------------------------------------------------------------- | | Here you may define all of your model factories. Model factories give | you a convenient way to create models for testing and seeding yo...
PHP
database/factories/ModelFactory.php
buchlesen/cdr
mit
1,264
44
codeparrot/github-code
1dfc33e74cd520793320db2a1535a72133878ed2f283ddcbfbe35e48c7bcdbca
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Runtime.InteropServices; namespace NetworkSimplex { public class FlowGraph { private readonly FlowNode[] _nodes; private readonly FlowArc[] _arcs; private readonly int[] _nodeArcs;...
C#
NetworkSimplex/FlowGraph.cs
jakobbotsch/NetworkSimplex
mit
33,909
837
codeparrot/github-code
3ee866110f8cad7514bbeeef2b7fc27ed544f2b0573b319fda1e8899faba364d
import util from "util"; import AWS from "aws-sdk"; let logs; // Log AWS SDK calls AWS.config.logger = { log: debug }; export default function debug() { logs.push({ date: new Date(), string: util.format.apply(null, arguments), }); } export function init(event, context) { logs = []; // Log API event...
JavaScript
libs/debug-lib.js
AnomalyInnovations/serverless-stack-demo-api
mit
589
31
codeparrot/github-code
7c26bed00c3342e676996e376822d993588faa5e8aacb8e5e116d34cf5b9ec9a
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> ...
HTML
src/assets/thirdParty/bootstrap-rtl-3.3.4/examples/originals/examples/cover/index.html
danbachar/TFL-ng2
mit
3,076
83
codeparrot/github-code
e92b006a1303f79337fdb4da0944a9802acc82654e4fd9fe7423bc6129d2e184
'use strict'; import { isAlpha, isNumber } from '@emmetio/stream-reader-utils'; import Token from './token'; const HYPHEN = 45; const UNDERSCORE = 95; export default function ident(stream) { return eatIdent(stream) && new Token(stream, 'ident'); } export function eatIdent(stream) { const start = stream.pos; ...
JavaScript
lib/tokens/ident.js
emmetio/css-parser
mit
684
34
codeparrot/github-code
9b9d92b93f8f58ff55b66bbb06476cb8bf9f8c849e0cb574544751ce180a41d0
#ifndef PIPELINE_LINK_ORDERED_QUEUE #define PIPELINE_LINK_ORDERED_QUEUE struct pipeline_ordered_queue_object{ void* object; unsigned long object_id; }; struct pipeline_ordered_queue{ unsigned long current_object; unsigned char flags; // QUEUE_INCREMENT ... struct pipeline_queue queue; // Leave this last }; s...
C
new_pipeline/deprecated/pipeline_link_ordered_queue.h
Stratus51/pipeline
mit
660
34
codeparrot/github-code
2e6f2c4ac71d166537a127264f1f94d96ce55869c3b8becf9262c42af1a817e2
<!DOCTYPE html> <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8" /> <title></title> <script src="jquery-2.1.4.min.js"></script> </head> <body> <div id="result"> </div> <form> <input id="txtCity" type="text" /> <button id="btnGetWeather" type=...
HTML
Web Development/Web Development Examples/AjaxExample/index.html
rohansen/Code-Examples
mit
1,217
47
codeparrot/github-code
e7c53d2b0399241a09da117190c8af21793240503008cccb86a11571b518d162
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US"> <head> <meta name="viewport" content="width=device-width" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="robots" content="noindex,nofollow" /> <title>WordPress &rsaquo; Installation</title...
HTML
index.html
qubestash/wordpress
mit
5,810
125
codeparrot/github-code
4822fa813fca6b9cd2bd53327f70250497a6d09b1c0638f5f92bccbb92063c19
using System; using Windows.UI.Popups; using Windows.UI.Xaml; using NotificationHubsSample.WinUsingAMS.Model; using NotificationHubsSample.UA; namespace NotificationHubsSample.WinUsingAMS { /// <summary> /// An empty page that can be used on its own or navigated to within a Frame. /// </summary> publi...
C#
Using Azure Mobile Services/NotificationHubsSample.UA/NotificationHubsSample.UA.Shared/MainPage.xaml.cs
saramgsilva/NotificationHubs
mit
1,327
43
codeparrot/github-code
94bac7ce700fd8e335ae03e5e1c3d9b61ec6e0848ce8c2fd02ab428458b56e10
{-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE OverloadedStrings #-} module XmppDaemon.Stun where import Control.Applicative import Control.Concurrent.STM import qualified Control.Exception as Ex import Control.Monad impo...
Haskell
source/XmppDaemon/Stun.hs
Philonous/xmpp-daemon
mit
5,711
136
codeparrot/github-code
0eddb3a123305e9115042078e5ef3f2131454675dedc4d5274f19a3ccb2e8da2
package com.englishtown.vertx.hk2.examples.integration; import com.englishtown.vertx.hk2.HK2VerticleFactory; import com.englishtown.vertx.hk2.examples.Binder; import com.englishtown.vertx.hk2.examples.SimpleVerticle; import com.englishtown.vertx.hk2.examples.impl.MyDependencyImpl; import io.vertx.core.DeploymentOption...
Java
examples/vertx-hk2-simple/src/test/java/com/englishtown/vertx/hk2/examples/integration/SimpleVerticleTest.java
englishtown/vertx-hk2
mit
1,785
60
codeparrot/github-code
6faafadb5c734985fca8e8aaaefb3a8c94a75c15d7618b314a137342d258d6d0
!(function(){ var sajax = window.sajax = {}; //命名空间 sajax.get = function(url,json,callback){ // 兼容ie6 if (window.XMLHttpRequest) { var xhr = new XMLHttpRequest(); }else { var xhr = new ActiveXObject("Microsoft.XMLHTTP"); } ...
JavaScript
ajax/day1/demo/js/sajax2.js
7fe/guide
mit
1,504
44
codeparrot/github-code
b243c1e7e61fde966848a97e5d99690c5672cde1a7038c14d11f8586f73546df
 # # Reading the registry for progids takes > 500ms, so we do it at module load time. # function InitClassIdTable { [InitializeArgumentCompleter('New-Object_ComObject')] param() $progIds = [Microsoft.Win32.Registry]::ClassesRoot.GetSubKeyNames() $versionedProgIds = new-object System.Collections.Generi...
PowerShell
Modules/ISESteroids/3rdParty/TabExpansion++/Microsoft.PowerShell.Utility.ArgumentCompleters.ps1
nylyst/Powershell
mit
4,916
173
codeparrot/github-code
625863752bdfbf5b0ecc7aad867cccab91659f620250d23675f3d1831b3f5c77
<!DOCTYPE HTML> <head> <title> Tal's DBC Blog</title> <meta charset="UTF-8"> <link type="text/css" rel="stylesheet" href="../stylesheets/default.css"> <link type="text/css" rel="stylesheet" href="../stylesheets/blog.css"> </head> <header> <nav class="header"> <div id="top_buttons"> <a class="button-top...
HTML
old_site/blog/javascript.html
schwartztal/schwartztal.github.io
mit
4,158
70
codeparrot/github-code
2a9edbb34905630b9b80a155e7821a5cf039485ca9947ad5a55b52daf483a96d
package com.sensorberg.sdk.settings; import com.google.gson.Gson; import com.sensorberg.sdk.SensorbergTestApplication; import com.sensorberg.sdk.di.TestComponent; import com.sensorberg.sdk.internal.interfaces.Clock; import com.sensorberg.sdk.internal.interfaces.PlatformIdentifier; import com.sensorberg.sdk.internal.t...
Java
android-sdk/src/androidTest/java/com/sensorberg/sdk/settings/TheSettingsShould.java
sensorberg-dev/android-sdk
mit
6,968
147
codeparrot/github-code
7c636680ca7e6702828347bad26014abc429fd9052a479c7ddc0e464988353db
package cz.muni.fi.a2p06.stolencardatabase.ocr; import android.Manifest; import android.annotation.SuppressLint; import android.app.AlertDialog; import android.app.Dialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.IntentFilter; import ...
Java
app/src/main/java/cz/muni/fi/a2p06/stolencardatabase/ocr/OcrActivity.java
VaclavStebra/stolen-car-database
mit
12,206
341
codeparrot/github-code
5d506d92157b8fda011e333ff1fbc80641e6d7d099322c25577a5bc73f19b200
using System; using System.Collections.Generic; using System.Text.RegularExpressions; using ObjectParserLib.Entities; using ObjectParserLib.Exceptions; using ObjectParserLib.Interfaces; using Container = ObjectParserLib.Entities.Container; namespace ObjectParserLib { public class Parser { private Settings Set...
C#
ObjectParserLib/Parser.cs
JasonLautzenheiser/Trizbort-Object-Parser
mit
3,144
120
codeparrot/github-code
5a4da06e1bf73cf5e96e8a16b627930ffb463811b93e1c9903859d06582ea25d
const program = require('commander') const _ = require('lodash') const pkg = require('./package.json') const version = pkg.version const { redux, component, feature, config, scaffold } = require('./src') program .version(version) program .name('node-react') .usage('[command] [options]') program .command('r...
JavaScript
index.js
thondery/kenote-react-cli
mit
3,140
123
codeparrot/github-code
2f4fd9e1deb815221bca18b78762030ab395abef96a7a0cd9adfa7aaee309a3d
#include <algorithm> #include <iostream> #include <vector> #include <string> using namespace std; class TrieNode { public: // Initialize your data structure here. TrieNode():wordcnt(0), isend(0) { childs = new TrieNode*[26]; for (auto i = 0; i < 26; ++i) childs[i] = nullptr; }...
C++
leecode-II/ImplementTriePrefixTree/源.cpp
lisnb/leetcode
mit
2,677
122
codeparrot/github-code
ade3f20fa157aa60c36b37badefb5844d23d29788b0aba6e509c4461eafefd4d
namespace Phasing_Utility { partial class PhasingUtilityFrm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </s...
C#
PhasingUtility.Designer.cs
fiidau/Phasing-Utility
mit
15,010
285
codeparrot/github-code
eb4aa0638065d2cb4426909ddd68ca3fc951156ea775c214f770772b949ac0b9
using System; using GameTimer; using System.Linq; using System.Threading.Tasks; namespace MenuBuddy { public class Tree<T> : ScrollLayout, ITree<T>, IHasContent, IDisposable { #region Events public event EventHandler<SelectionChangeEventArgs<T>> OnSelectedItemChange; #endregion //Events #region Fields ...
C#
MenuBuddy/MenuBuddy.SharedProject/Layouts/Tree/Tree.cs
dmanning23/MenuBuddy
mit
4,727
251
codeparrot/github-code
84c28e7c0fba57d8f134009660453b6a5e13eb25782e734910e90de38e8d00e1
using Songhay.StudioFloor.Shared.Models; using System; using System.Xml.Linq; namespace Songhay.StudioFloor.Shared.ModelContext { /// <summary> /// EF Model Context for EarthTools.org data. /// </summary> public static class EarthToolsContext { /// <summary> /// Gets the earth tool...
C#
Songhay.StudioFloor.Shared/ModelContext/EarthToolsContext.cs
BryanWilhite/Songhay.StudioFloor
mit
2,751
69
codeparrot/github-code
cb0784618137c005f9b6838106a721d40ca62061acf5b36b0f0495c8234b932d
--[[ A loosely based Material UI module mui-button.lua : This is for creating buttons. The MIT License (MIT) Copyright (C) 2016 Anedix Technologies, Inc. All Rights Reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documen...
Lua
Recicle_Plus/materialui/mui-button.lua
ddefb/ReciclePlus
mit
67,318
1,749
codeparrot/github-code
830f04fe268383da5d18ce9c63494441bd0e426e57a8b6fef362ef91b5bff2cd
<!DOCTYPE html> <!--[if IE]><![endif]--> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>Class PhotoshopLayer | Picturepark.SDK.V1 API </title> <meta name="viewport" content="width=device-width"> <meta name="title" content="Class Ph...
HTML
docs/sdk/site/api/Picturepark.SDK.V1.ServiceProvider.Contract.PhotoshopLayer.html
Picturepark/Picturepark.SDK.DotNet
mit
12,095
277
codeparrot/github-code
0315af8641a0866b8a14c3d3c67623594f5d02540a5e0b3e1e621bdcf2ec594e
'use strict'; var React = require('react-native'); var styles = require('./components/styleSheet'); var IndexView = require('./components/indexView'); var NavBar = require('./components/navBar'); var ArticleDetail = require('./components/articleDetail'); var { AppRegistry, Navigator, Text, ...
JavaScript
index.ios.js
JohnnieFucker/ReadBoxApp
mit
1,846
62
codeparrot/github-code
549df92f96edaa20ffbf44f3d3dd1f364e5bb5e9aeb921b82787e41d24a7519b
using System; using System.Collections.Generic; using FarseerPhysics.Collision.Shapes; using FarseerPhysics.Common; using FarseerPhysics.Common.Decomposition; using FarseerPhysics.Dynamics; using Microsoft.Xna.Framework; namespace FarseerPhysics.Factories { /// <summary> /// An easy to use factory for creatin...
C#
FarseerPhysics/Factories/FixtureFactory_2.cs
somethingnew2-0/Pinball
mit
13,260
301
codeparrot/github-code
2e67e5df8717ae8f260c1d7752b82ce178890873efb48ae313ac64b4a562c09c
// Various functions helpful when dealing with MarkDown files. package markdownutils import ( "strings" "unicode" ) // CreateGitHubAnchor produces GitHub-compatible HTML anchors. func CreateGitHubAnchor(text string) string { // The algorithm was created via blackbox testing and may not be a // perfect emulation. ...
GO
main.go
TomOnTime/markdownutils
mit
1,460
53
codeparrot/github-code
09606773103b3d57a73134211bbd257d3662f6f68e03c54487f0026c3b4c3c50
"use strict"; import Element from "./element"; import ReactClass from "./reactClass"; import ReactComponent from "./reactComponent"; import ReactClassElement from "./element/react/class"; import ReactFunctionElement from "./element/react/function"; import ReactComponentElement from "./element/react/component"; import ...
JavaScript
src/react.js
djalbat/Reaction
mit
3,711
133
codeparrot/github-code
bd8b9183acc6f8b9eb0d1a7818d0be29826e81780835a2106239946974f594f6
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Net.Http; using System.Net.Http.Headers; using System.Net.Mime; using System.Text.RegularExpressions; using System.Web.Http; using System.Web.Http.ModelBinding; using Our.Umbraco.DocTypeGridEditor.Extensions; us...
C#
src/Our.Umbraco.DocTypeGridEditor/Web/Controllers/DocTypeGridEditorApiController.cs
leekelleher/umbraco-doc-type-grid-editor
mit
7,646
202
codeparrot/github-code
e998eb67dec1a49033d0384d04b807d89469bf55199372fbe4178a86a983b533
/* ** $Id: ldump.c,v 2.8.1.1 2007/12/27 13:02:25 roberto Exp $ ** save precompiled Lua chunks ** See Copyright Notice in lua.h */ #define ldump_c #define LUA_CORE #define LUAC_CROSS_FILE #include "lua.h" #include <string.h> #include "lobject.h" #include "lstate.h" #include "lundump.h" typedef struct { lua_State* L...
C
app/lua/ldump.c
TerryE/nodemcu-firmware
mit
7,350
331
codeparrot/github-code
beece17c4d84fbb44e548c1b984437558d53ca0904ea5bf05570a521f7bd1020
// RoDI (Robot Didactico Inalambrico) var robot_ip = '192.168.4.1'; var robot_port = '1234'; var Request = function() {}; Request.get = function(url) { console.log(url); var xmlhttp; if (window.XMLHttpRequest) { xmlhttp = new XMLHttpRequest(); } else { // code for older browsers xmlhttp = new Acti...
JavaScript
assets/js/rodi.js
matt987/rodi-js
mit
3,182
154
codeparrot/github-code
d0b37e853bb39227dfccb2128b0365ea37fd0a65cbcf13b52c70f83036e61491
package info.sleeplessacorn.nomagi.client.gui; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import com.google.common.collect.Sets; import info.sleeplessacorn.nomagi.client.RenderHelper; import info.sleeplessacorn.nomagi.client.gui.button.GuiButtonDirection; import info.sleeplessacorn....
Java
src/main/java/info/sleeplessacorn/nomagi/client/gui/GuiTentPrivacy.java
SleeplessAcorn/DimensionallyTranscendentalTents
mit
10,977
285
codeparrot/github-code
041d2d64c54b803940242832dd892e512730f15507e583f686a8ed807e305c1b
const chai = require('chai'); const expect = chai.expect; const R = require('ramda'); const command = require('../src/command'); const commands = require('../src/commands'); const constants = require('../src/constants'); const greeting = () => 'Hello'; const testCommands = { hi: commands.buildCommand(greeting) }...
JavaScript
test/command.pipe.test.js
vstrand/thor-discord
mit
1,240
51
codeparrot/github-code
36fbd133c4d3dc5f838f7bf89032521c550f38d69c4776b3c1b1d6b060a9dda3
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* | ------------------------------------------------------------------------- | URI ROUTING | ------------------------------------------------------------------------- | This file lets you re-map URI requests to specific controller functions...
PHP
application/config/routes.php
OrifInformatique/gestion_questionnaires
mit
2,020
55
codeparrot/github-code
a2ce30454cb20ed85a4a95dfa4ed54cc7624ede63a8a7b751e8b30938cec4026
package com.github.monzou.guardman.validator.impl; import java.io.Serializable; import com.github.monzou.guardman.i18n.Messages; import com.github.monzou.guardman.validator.ValueValidator; import com.google.common.base.Strings; /** * NotBlankValidator */ public class NotBlankValidator extends AbstractMutableValueV...
Java
src/main/java/com/github/monzou/guardman/validator/impl/NotBlankValidator.java
monzou/guardman
mit
901
32
codeparrot/github-code
aa68db6d56805e47f449934ddf9cc7104f020a26a56f4cbc1a7b841c4845a2ef
/* * Copyright 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing ...
C++
Boss2D/addon/_old/webrtc-qt5.11.2_for_boss/pc/videocapturertracksource.cc
koobonil/Boss2D
mit
15,915
403
codeparrot/github-code
38ba001ab1aeb815ac42d4221f0691287f9707bad3706ab0181dab1014e0a947
#include <cstdio> #include <vector> #include <algorithm> using namespace std; bool bm_augment(const vector<vector<int> >& g, int u, vector<int>& match_to, vector<int>& visited) // {{{ { if (u < 0) { return true; } for (vector<int>::const_iterator it(g[u].begin()); it != g[u].end(); ++it) { if (!visited[...
C++
aoj/2/2251.cc
eagletmt/procon
mit
1,998
85
codeparrot/github-code
236b7df11b96a74246d74ea28b85bf72740cde9591d7b3c5291df35b947b1d06
#pragma once #ifndef RAZ_OBJFORMAT_HPP #define RAZ_OBJFORMAT_HPP #include <utility> namespace Raz { class FilePath; class Mesh; class MeshRenderer; namespace ObjFormat { /// Loads a mesh from an OBJ file. /// \param filePath File from which to load the mesh. /// \return Pair containing respectively the mesh's dat...
C++
include/RaZ/Data/ObjFormat.hpp
Razakhel/RaZ
mit
845
32
codeparrot/github-code
9ca0e4a83e6a638a55d818bcf418334fecc313b6c6e3bdb0caba34cbe06a5fa4
import JelNode from './JelNode'; import JelObject from '../JelObject'; import Context from '../Context'; import Util from '../../util/Util'; import BaseTypeRegistry from '../BaseTypeRegistry'; import SourcePosition from '../SourcePosition'; import DeclaringStatement from './DeclaringStatement'; /** * Represents a en...
TypeScript
src/jel/expressionNodes/EnumDef.ts
timjansen/jillian
mit
1,446
57
codeparrot/github-code
0770d013f1598fcd1bc865af8338add3eac53503a1ffa820feff319cbe06a90a
#!/usr/bin/env python # # Jetduino Example for using the Grove Electricity Sensor (http://www.seeedstudio.com/wiki/Grove_-_Electricity_Sensor) # # The Jetduino connects the Jetson and Grove sensors. You can learn more about the Jetduino here: http://www.NeuroRoboticTech.com/Projects/Jetduino # # Have a question about...
Python
Software/Python/grove_electricity_sensor.py
NeuroRoboticTech/Jetduino
mit
2,751
75
codeparrot/github-code
ddd8fdef16183769e86ddffbc70a7ba7c0933767ecdfd43eeadc62eaaf6099ac
import Ember from 'ember'; import layout from '../templates/components/e3-container'; import Group from '../utils/shadow/group'; import e3AnimatedChild from './e3-animated-child'; import meta from '../mixins/e3-meta'; const {get, set, computed} = Ember; export default e3AnimatedChild.extend(meta, { shadowType: 'grou...
JavaScript
addon/components/e3-group.js
RavelLaw/e3
mit
1,594
61
codeparrot/github-code
9f5ede62d33d7ccaa7bb88cf30d53b3709a55d0dd5fd415c7301c44b53830195
<?php /** * tromax Theme Customizer * * @package tromax */ /** * Add postMessage support for site title and description for the Theme Customizer. * * @param WP_Customize_Manager $wp_customize Theme Customizer object. */ function tromax_customize_register( $wp_customize ) { $wp_customize->get_setting( 'blognam...
PHP
tromax/inc/customizer.php
Guebsite/tromax-child
mit
16,700
593
codeparrot/github-code
5e871b21ec090eb92467e9897ec737073b2b04fd6047ed673a7282279b64c752
/* * RISIKO-JAVA - Game, Copyright 2014 Jennifer Theloy, Stefan Bieliauskas - All Rights Reserved. * Hochschule Bremen - University of Applied Sciences * * * 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 ...
Java
Server/src/main/java/server/logic/data/orders/OrderManager.java
B-Stefan/Risiko
mit
8,941
235
codeparrot/github-code
bb6aa323513368d94651f227fe6d15b126a9ca4ec791ed432abe2a2b760e7cc9
/** error ( errorType: String ) Return Type: Function 指定错误类型的错误函数 Description: 错误类型生成器,你可以使用此函数生成一个特定类型的错误生成器,在抛出错误异常时使用特定生成的错误生成器抛出特定的错误类型 eg: let exampleErr = error("example"); exampleErr("code", "这是一个示例错误"); console: [example:code]这是一个示例错误 如果没有传入moduleName或moduleName为空,则在使用此错误生成器时在中括号内不会显示模块名称,而是直接...
JavaScript
src/error.js
icejs-team/icejs
mit
1,500
46
codeparrot/github-code
1c8acfc28f725d52e52df26395eb353c061f74ad5186cf0709ca0033ec7b4b06
/* * Copyright (c) André Bargull * Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms. * * <https://github.com/anba/es6draft> */ const { assertSame, assertTrue, assertDataProperty } = Assert; function assertFunctionName(f, name) { return assertDataProperty(f, "name", {value: name,...
JavaScript
src/test/scripts/suite/semantic/function/name/object_binding_pattern.js
anba/es6draft
mit
4,324
160
codeparrot/github-code
d56dad3870b91e2055a5e5f4cefec8c1d15998e428bf2f18a3166de4a5680e94
var _ = require('underscore'); var KeenRequests = require('./requests'); /*! * ----------------- * Keen IO Query JS * ----------------- */ var Keen = {}; // ------------------------------ // Keen.Request // ------------------------------ Keen.Request = function(){ this.data = {}; this.configure.apply(this, argu...
JavaScript
lib/query.js
alexkwolfe/KeenClient-Node
mit
3,325
135
codeparrot/github-code
fb8da93367913d13f5c875a01542d03d6240e39fcf111bb89a61f26407cf57bc
import {Component, Input, Output, EventEmitter, OnChanges} from '@angular/core'; @Component({ selector:'pagination', template:` <nav *ngIf="items.length > pageSize"> <ul class="pagination"> <li [class.disabled]="currentPage == 1"> <a (click)="prev()" aria-label="Prev"> ...
TypeScript
src/app/pagination.component.ts
laine-k/Angular-CRUD
mit
1,572
62
codeparrot/github-code
5c12b8d106d15f7f9e0af3f9cc2a0bfb6fdfe44a7d40a7f6d81638e357381700
# encoding: UTF-8 require 'foreman_api' module ForemanProvision class BaseResource # @param [Hash] params # @return [Hash] def create(params) @logger.debug("Performing \"#{__method__}\" for #{self.class.to_s} \"#{params[:name]}\" with params #{@_params}") result = {} begin res...
Ruby
lib/foreman_provision/base_resource.rb
FILIADATAGmbH/foreman_provision
mit
2,958
126
codeparrot/github-code
ab35a1693762c9e4a1e07bc8e03fb5d8a64b343f6848f7dce0f20d567b8ed5dc
const { schema } = require('./common') const stringWithLength = require('@bugsnag/core/lib/validators/string-with-length') const ALLOWED_IN_RENDERER = [ // a list of config keys that are allowed to be supplied to the renderer client // this must be kept in sync with the typescript "AllowedRendererConfig" type 'o...
JavaScript
packages/electron/src/config/renderer.js
bugsnag/bugsnag-js
mit
2,325
68
codeparrot/github-code
fad9ee9864ae9eba4096ffa6d204c5594380151c77701a84a0e45250efc08952
# == Schema Information # # Table name: billing.invoice_documents # # id :integer not null, primary key # invoice_id :integer not null # data :binary # filename :string not null # pdf_data :binary # csv_data :binary # xls_data :binary # class Billing::InvoiceDoc...
Ruby
app/models/billing/invoice_document.rb
sashker/yeti-web
mit
1,712
70
codeparrot/github-code
58b569793410b6fcffd9533e126a2cc0dce4b62aa82f0867a517a52f1e3e48bb
import { BufferGeometry, Float32BufferAttribute, Geometry, Vector3 } from "../../../build/three.module.js"; /** * Simplification Geometry Modifier * - based on code and technique * - by Stan Melax in 1998 * - Progressive Mesh type Polygon Reduction Algorithm * - http://www.melax.com/polychop/ */ va...
JavaScript
examples/jsm/modifiers/SimplifyModifier.js
fraguada/three.js
mit
9,702
501
codeparrot/github-code
4b790709bd3f4d21ceb83b2e37511af41e0b5ad5260f08edb4c25759f6069e38
function calculateRisk() { var selectSymbol= document.getElementById("selectSymbol").value; var enterPrice = parseFloat(document.getElementById("enterPrice").value); var stopLose = parseFloat(document.getElementById("stopPrice").value); var volume = parseFloat(document.getElementById("volume").val...
JavaScript
web/static/js/calculaterisk.js
yaakov300/ForexApp
mit
3,251
102
codeparrot/github-code
0533c44896e670d90122e298fc0325925730580a44aa610ba1ed1c830c5532c7
#include "ofApp.h" //-------------------------------------------------------------- void ofApp::setup(){ numberOfSavedFrames = 0; numberOfSavedPoints = 0; //This is how you would load that very same file if (xmlPts.loadFile("kinectPoints_ella1.xml")) { cout << "Fichero abierto" << endl; xmlPts.pushTa...
C++
src/ofApp.cpp
Kike-Ramirez/pointPlayer
mit
3,229
164
codeparrot/github-code
e22c8f73739489e00bfda454cf78fcad19ea98b3f013f67dfce9afc2c03105c0
package lowe.mike.strimko.model; import static lowe.mike.strimko.model.Constants.NO_NUMBER; import static lowe.mike.strimko.model.Constants.NO_STREAM_INDEX; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import lowe.mike.strimko.model.Grid.Gri...
Java
src/test/java/lowe/mike/strimko/model/GridBuilderTests.java
vanillaSlice/Strimko
mit
5,094
165
codeparrot/github-code
21ebe58a513989a1291c7fc5944ed02135dd5b9eec291be15a3b1805c0970d11
using System; using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; using System.Windows; using JetBrains.Annotations; using SIM.Instances; using SIM.Tool.Base; using Sitecore.Diagnostics.Base; namespace SIM.Tool.Windows.MainWindowComponents.Buttons { [UsedImplicitly] public cla...
C#
src/SIM.Tool.Windows/MainWindowComponents/Buttons/AttachDebuggerButton.cs
Sitecore/Sitecore-Instance-Manager
mit
1,392
46
codeparrot/github-code
af682f0895628a651420d765a5c1e0181e6a4ed6ec13775a2382b1318a79b7cc
<!DOCTYPE html><html><head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=Edge"> <meta name="description"> <meta name="keywords" content="static content generator,static site generator,static site,HTML,web development,.NET,C#,Razor,Markdown,YAML"> <meta n...
HTML
docs/api/OpenTl.Schema.Storage/TFileGif/index.html
OpenTl/OpenTl.Schema
mit
13,094
343
codeparrot/github-code
2d00a959b1cbb72838db0ad61c6de5122b65cde871546aba3bd90113f04b97aa
<!DOCTYPE html><html><head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=Edge"> <meta name="description"> <meta name="keywords" content="static content generator,static site generator,static site,HTML,web development,.NET,C#,Razor,Markdown,YAML"> <meta n...
HTML
docs/api/OpenTl.Schema/TInputBotInlineResult/7BDDF450.html
OpenTl/OpenTl.Schema
mit
12,221
293
codeparrot/github-code
784f003922b736624b3d90451682a86a72923f47943b71ed844c057cc61d8f12
class InvitationCodesController < ApplicationController skip_before_action :verify_authenticity_token before_action :set_code, only: %i(show update destroy) def index render json: InvitationCode.all, status: :OK && return end def show render(json: @code.as_json(only: %i(id email used)), status: 200)...
Ruby
app/controllers/invitation_codes_controller.rb
jkruse14/miles-board
mit
1,013
43
codeparrot/github-code
0669357ce112a06964efe7a67ccb5b45613457632eae74d54680df4ccf52b344
/* eslint-env mocha */ /* eslint-disable no-unused-expressions, no-underscore-dangle, import/no-duplicates */ import { expect } from 'chai'; import proxyquire from 'proxyquire'; import configureStore from 'redux-mock-store'; import mockEsmodule from '../../../../test/mockEsmodule'; const proxyquireStrict = proxyquire...
JavaScript
src/routes/team/team/index.test.js
labzero/lunch
mit
1,820
76
codeparrot/github-code
a4195cdf8b3edd86a6c34f9923996d42074107c5fcd895b39cb9b56bec28015a
require 'uri' require 'rack' module QRCody class Response def initialize(image, env) @image, @env = image, env end def to_response response = begin if !(request.head? || request.get?) [405, method_not_allowed_headers, ["method not allowed"]] elsif etag_matches? ...
Ruby
models/response.rb
bjedrocha/qrcody
mit
1,730
81
codeparrot/github-code