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
58b9e5e89c868fd6c925e3525551b7ba8af499f9d088b436b47a3fa4f11b3be1
# Goal 1 bread = 4 pb = 3 jelly = 10 sandwich = 0 while bread >= 2 and pb >= 1 and jelly >= 1: sandwich = sandwich + 1 print "I am making sandwich number {0}".format(sandwich) bread = bread - 2 pb = pb - 1 jelly = jelly - 1 print "All done! I made {0} sandwich(es)".format(sandwich) #...
Python
playtime/lesson2_pbj.py
suellenf/hearmecode
mit
958
36
codeparrot/github-code
ebe333f22aef16a5029d02c9d39957e4c04ed5edc25768df28cce9f03e5f111e
package com.dataspawn.twitterstreamer; /** * Created by griffins on 6/20/15. */ import com.mongodb.ServerAddress; import java.util.*; public class RequestProcessor { NanoHTTPD.IHTTPSession mSession; public RequestProcessor(NanoHTTPD.IHTTPSession session) { mSession = session; } public M...
Java
src/main/java/com/dataspawn/twitterstreamer/RequestProcessor.java
dataspawn/tweeterstreamer
mit
5,078
156
codeparrot/github-code
38450f33a002261854594090254fd7e12402ad800f2d93f3851b11be01afa3c5
import React from 'react'; import store from 'app/store'; import RaisedButton from 'material-ui/RaisedButton'; import TextField from 'material-ui/TextField'; import Divider from 'material-ui/Divider'; import CluckList from 'app/components/cluck-list'; export default class CluckApp extends React.Component { construct...
JavaScript
public/app/components/cluck-app.js
rankida/cluck
mit
1,202
44
codeparrot/github-code
22593675a048c641c7d50e0520f25b4dd2d12aa72ed7ce4c3749c33adc5b9b56
/** * Copyright 2012-2020, Plotly, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; var scatterHover = require('../scatter/hover'); var fillText = require('../../lib').fillText; module.exports = ...
JavaScript
src/traces/scattercarpet/hover.js
aburato/plotly.js
mit
3,024
90
codeparrot/github-code
9fafd7a3a7d90a469d6ef45a10f87b56ae1a1d424a553187c263537bf3c5d0e0
package org.openapitools.model; import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import org.openapitools.model.ExtensionClassImpl; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateT...
Java
clients/spring/generated/src/main/java/org/openapitools/model/ExtensionClassContainerImpl1map.java
cliffano/swaggy-jenkins
mit
5,382
133
codeparrot/github-code
e1ac9fd8faa9acdcdc2cb4321a2e6065a0cec35ae9058160bfe089f567003d34
#ifndef ONB_H_ #define ONB_H_ #include <glm/glm.hpp> class ONB { public: // The default constructor creates a "standard" ONB. ONB( void ); // Set up an ONB from an normalized input vector 'v' that will be assumed to be aligned to // the 'v' (up) vector of the ONB to be created. void setFromV( const glm::vec3 &...
C
onb.h
xiconaldo/ray-tracer
mit
1,174
47
codeparrot/github-code
863a17f65e8958645743bdca1444af6d031800e8f4421fd2f0996c56f5e4a23c
/** * Partition * * Write code to partition a linked list around a value x, * such that all nodes less than x come before all nodes greater than or equal to x * If x is contained within the list, the values of x only need to be after the elements less than x. * The partition element x can appear anywhere in the "...
JavaScript
src/exercises/cracking_the_coding_interview/linkedlists/Partition.js
pbodalia/algorithms-js
mit
3,034
112
codeparrot/github-code
27feb07385f4264427fafc61f5c9e96cf0bb2d042430098a814b7b2599e54eba
namespace Skeleton.Web.Hosting { using System; using Autofac; using ExceptionsHandling; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Routing; using Serializatio...
C#
src/Infrastructure/Web.Hosting/WebApiBaseStartup.cs
litichevskiydv/WebInfrastructure
mit
3,474
94
codeparrot/github-code
e76770c98f9adb6fccc696f77a0bbd719128726c0b86fb31f38335b8769f6f4b
#include <stdafx.h> #include <sstream> #include <JsonConverter.h> #include <JsonObject.h> #include <JsonWorker.h> #include <Stage.h> #include <JsonTreeVisitor.h> const std::wstring CJsonConverter::JSON_OBJECT_NAME_ANGLE = L"Angle"; const std::wstring CJsonConverter::JSON_OBJECT_NAME_BOTTOM = L"Bottom"; const std::wst...
C++
PowerSpace/Json/JsonConverter.cpp
team-PowerSpace/PowerSpace
mit
6,785
129
codeparrot/github-code
baf5918d05e353e6907322678cda05ad080a8117975b21f263016d560509259c
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>../libs/three/src/extras/geometries/PlaneGeometry.js</title> <link rel="stylesheet" href="http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css"> <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css"> <...
HTML
wp-vlib/js/VLib/docu/out/files/.._libs_three_src_extras_geometries_PlaneGeometry.js.html
ndyGit/vPlot
mit
8,213
251
codeparrot/github-code
a02dc88e910d886345b1e92457cb79656264e78038621941fc3ed356d96fae4a
<html> <head> <title>StormEngineC</title> <meta charset=utf-8 /> <script src="../../StormEngineC/StormEngineC.class.js"></script> <style> body{ background:#66ACA4; color:#FFF; } </style> </head> <body> <canvas id="stormCanvas" width="512" height="512"></canvas> <div id="ggg"></...
HTML
demos/circuit/index.html
stormcolor/stormenginec
mit
4,531
117
codeparrot/github-code
e42341576db211ce4a56d805a3321d003f49493a7ff5fdc7cbb0154c059e2bf8
// Copyright 2014 The Gogs Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package models import ( "bytes" "errors" "fmt" "html/template" "io/ioutil" "os" "os/exec" "path" "path/filepath" "regexp" "sort" "strings" "time...
GO
models/repo.go
pecastro/gogs
mit
49,430
1,746
codeparrot/github-code
140cb4ca16df0f5276525f22e48a570e429b12f08bc63f5fe915dd970c50ec49
package io.github.selchapp.api.model; import javax.persistence.Column; import javax.persistence.Embeddable; import com.fasterxml.jackson.annotation.JsonIgnore; @Embeddable public class GPRSPosition { @Column(nullable = true) private double lat; @Column(nullable = true) private double lng; pub...
Java
src/main/java/io/github/selchapp/api/model/GPRSPosition.java
SelchApp/SelchBackend
mit
616
39
codeparrot/github-code
47edd9d5f96466bf26c16d064beb87dac58dd93341ad9268212aa227b5ad7ac9
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt import frappe import time from frappe import _, msgprint, is_whitelisted from frappe.utils import flt, cstr, now, get_datetime_str, file_lock, date_diff from frappe.model.base_document import BaseDocument, get_controller...
Python
frappe/model/document.py
mhbu50/frappe
mit
43,429
1,387
codeparrot/github-code
2149d48ad60e0c1a9aae341b282ec81a3ab5fb4b7dd47f68d0f843873a088be4
package pl.grzeslowski.jsupla.protocoljava.api; import pl.grzeslowski.jsupla.JSuplaContext; import pl.grzeslowski.jsupla.exceptions.ServiceNotFoundException; import pl.grzeslowski.jsupla.protocoljava.api.channels.decoders.ChannelTypeDecoder; import pl.grzeslowski.jsupla.protocoljava.api.channels.decoders.ColorTypeChan...
Java
protocol-java/src/main/java/pl/grzeslowski/jsupla/protocoljava/api/ProtocolJavaContext.java
magx2/jSupla
mit
32,293
448
codeparrot/github-code
6d012bae24aaf050413856c83002d2987eb98d2ab603a1110e9eb221355627d0
'use strict'; var yeoman = require('yeoman-generator'); var fs = require('fs'); var path = require('path'); module.exports = yeoman.generators.Base.extend({ initializing: function () { var base_path = this.config.get('path'); var fileList = { foundation: getScssFileList(path.join(base_path, 'foundati...
JavaScript
generators/import/index.js
rhythm191/generator-flocss
mit
1,448
53
codeparrot/github-code
d5681b9939762beaca5acb3d94ddab9e015faa70929a4f29effd6d365027d372
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 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 "irc.h" #include "net.h" #include "strlcpy.h" #include "base58.h" using ...
C++
src/irc.cpp
BitNote/bitnote
mit
10,992
406
codeparrot/github-code
9afa1cf7a1e27d5319c9caac0ea5f0b77357dfdfad1d785320ada586996bfaf1
import { Injector, ProviderClass } from './Injector' import { Injectable, isInjectable, isFunction, isServiceName, ServiceClass, serviceNameRegex } from './utils' export class Module { private name: string private dependencies: Module[] private services: { [name: string]: ProviderClass } private configHooks: I...
TypeScript
src/Module.ts
jerome-quere/radis
mit
5,377
180
codeparrot/github-code
82dea5e5c0486d3809fa2dbb6f46b9e8f4dadecefae2ecc4af83d5e7afd052f1
'use strict'; // eslint 2.9.0 function e(opts) { return v('error', opts); } function w(opts) { return v('warn', opts); } function off() { return v('off'); } function v(level, opts) { if (!opts) { opts = []; } return [level].concat(opts); } module.exports = { root: true, pa...
JavaScript
.eslintrc.js
golyshevd/unique-id
mit
25,419
395
codeparrot/github-code
eb42256feab8776f74b094863d31f352a01d8d23c0361ba6182f7298884df921
using System.Collections.Generic; using SlimDX.Direct3D10; namespace DirectCanvas.Rendering.Sprites { static class SpriteRendererBlendStateHelper { private static void SetDefaults(ref BlendStateDescription blendDesc) { for (uint i = 0; i < 8; i++) { blen...
C#
DirectCanvas/DirectCanvas/Rendering/Sprites/SpriteRendererBlendStateHelper.cs
treytomes/DirectCanvas
mit
11,980
271
codeparrot/github-code
9ea11568e9c85199cbb9de8fd85bbec788ea5afb74f964ce4c081978d7704e47
'use strict'; const utils = require('../utils/utils'); const emberUtils = require('../utils/ember'); //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ const ERROR_MESSAGE = "Don't specif...
JavaScript
lib/rules/no-unnecessary-service-injection-argument.js
netguru/eslint-plugin-ember
mit
1,268
47
codeparrot/github-code
0b5cd2e101a4ca34206f633e2b4a66ad5c24780455ab790c7555290b615757ac
<?php namespace Roots\Sage\Setup; if (!defined('ABSPATH')) { exit; // Exit if accessed directly } use Roots\Sage\Assets; /** * Theme setup */ function setup() { // Enable features from Soil when plugin is activated // https://roots.io/plugins/soil/ add_theme_support('soil-clean-up'); add_theme_support(...
PHP
lib/setup.php
frontalspy/Foundation-6.3-WordPress-Theme-Ajax
mit
3,818
129
codeparrot/github-code
44e1caeda08fb5440ac121f84d45dccc75d73febccbd37dcbd4f29a3d831bfe3
package minicon import "container/ring" // // Keep a bunch of strings (eg. a user command buffer.) // type History struct { r *ring.Ring } // // Records a stich in time. // type HistoryMarker *ring.Ring // // Create a new history buffer with the passed capacity. // func NewHistory(capacity int) *History { return ...
GO
minicon/history.go
ionous/sashimi
mit
1,670
80
codeparrot/github-code
49e42d10198cfd0bf0ca2178d3514c674dae73e956073bee0b3f72108ab83787
#! /usr/bin/python """Linked list Representation and implementation. """ # -*- coding: utf-8 -*- ## ------ Imports ------ ## ## ------ Imports ------ ## __author__ = "Siva Cn (cnsiva.in@gmail.com)" __website__ = "http://www.cnsiva.com" class Node: """Referential Structure used to create new nodes""" def ...
Python
src/utils/chains.py
SivaCn/Bigdata.model
mit
2,013
87
codeparrot/github-code
bda55adb90046fd2e189dae7b64f071dcadaf066fcfffd996db6e78b55a5cfa9
<?php // PONGSOCKET TWEET ARCHIVE // DB class // By Andy Graulund // <electricnet@gmail.com> class DB { public $res = null; public $type = ""; public $on = false; public $conn = false; public $mysqli = false; private $config = null; public function __construct($type, $config){ ...
PHP
inc/class.db.php
graulund/tweetnest
mit
4,455
138
codeparrot/github-code
a06afd9ba3bc66a6fde561b0eddb037f18741d2ecd8ac354e70c74a8f7c80caa
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the...
Java
mobile_app/platforms/android/src/org/crosswalk/engine/XWalkWebViewEngine.java
Finalgalaxy/vistriker-FE
mit
13,944
371
codeparrot/github-code
9eb5081d6b93cd98115e3c9d293dc409b7e3b66845cf90cd9a8383d312528eec
require 'boris/profiler_core' module Boris; module Profilers class CiscoIOSCore include ProfilerCore attr_reader :version_data def self.connection_type Boris::SSHConnector end def version_data @version_data ||= @connector.values_at('show version | include (Version|ROM|uptime|CP...
Ruby
lib/boris/profilers/cisco_ios_core.rb
alkalinecoffee/boris
mit
4,341
138
codeparrot/github-code
1506a116cef92bbe705e7e80bece0cbd15464493dad8c9c652900765bd3e692d
module HasEmails module Extensions #:nodoc: # Adds support for queueing emails so that they can be procssed in the # background. Emails are stored in the database using the Email ActiveRecord # model. # # == Queueing mail # # Once a mailer action and template are defined, you can queue ...
Ruby
lib/has_emails/extensions/action_mailer.rb
pluginaweek/has_emails
mit
4,289
118
codeparrot/github-code
1b861c5720b0d26fd555a7020b68463a9a51c52cf08c9b75d4dc7ea539948ba8
#region Foreign-License /* Copyright (c) 1997 Sun Microsystems, Inc. Copyright (c) 2012 Sky Morey See the file "license.terms" for information on usage and redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. */ #endregion using System.Text; using System.IO; namespace Tcl.Lang { /// <...
C#
src/Tcl.net/Lang+Commands/GetsCmd.cs
BclEx/GpuStructs
mit
2,869
89
codeparrot/github-code
fbfdda7dddc28ae321f9706194a9f8e15e27e95d53e39330914a9939c74183fe
package net.minecraft.entity.passive; import com.google.common.base.Predicate; import java.util.Iterator; import java.util.List; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityAgeable; import net.minecraft.entity.Ent...
Java
minecraft/net/minecraft/entity/passive/EntityHorse.java
Hexeption/Youtube-Hacked-Client-1.8
mit
58,113
1,874
codeparrot/github-code
10894dd3a33b7a2f8460c97a5732a4c25e29be875d149f00884c0d7d24df1a52
/* EXTREME BLOCKS - Copyright (C) 2010 by Oscar D. Olarte * * (c) RPR-GDevelopment - 2010 * * Written by Oscar Olarte * * This source code is released under the The GNU * * General Public License (GPL). Please refer to th...
C++
Tetris/fblocks.cpp
OscarRPR/extreme-blocks
mit
1,817
89
codeparrot/github-code
5cb7bed6621f37c575eb096b6074df40e62ad24e26176b46d96a65edb8729d28
import { Color, ShaderChunk, ShaderLib, UniformsUtils } from "../../../build/three.module.js"; /** * ------------------------------------------------------------------------------------------ * Subsurface Scattering shader * Based on GDC 2011 – Approximating Translucency for a Fast, Cheap and Convincing Subsurfa...
JavaScript
examples/jsm/shaders/SubsurfaceScatteringShader.js
fraguada/three.js
mit
2,924
88
codeparrot/github-code
ce23c62d8c5d9bcbed34aae9e5935a9d41f62b8279324243697ed1ffc5847d71
#ifndef HALE_SET_H #define HALE_SET_H #if HALE_INCLUDES #include "hale_stack_memory.h" #endif namespace hale { // Keeps data in format: // (u8 key_length) (u8 key[]) (u8 0) (u8 data_length) (u8 data[])? // The zero is added to be compatible with c-strings. // NOTE: Set is only able to keep data of max le...
C
src/hale/hale_set.h
martincohen/Hale
mit
1,319
50
codeparrot/github-code
8aa104848558e24adf3374ef406ffefac4caffcc99d9780ce5f9215e5ffc17ac
/* * The MIT License * * Copyright 2014 Kamnev Georgiy (nt.gocha@gmail.com). * * Данная лицензия разрешает, безвозмездно, лицам, получившим копию данного программного * обеспечения и сопутствующей документации (в дальнейшем именуемыми "Программное Обеспечение"), * использовать Программное Обеспечение без огра...
Java
src/main/java/xyz/cofe/lang2/vm/PythMethod.java
gochaorg/lang2
mit
2,226
60
codeparrot/github-code
adb4e189beeb6c18f031392476eb18764e0b65635ee781ff0e513b6cfb0f345f
///@@author A0138474X package seedu.address.logic.commands; import java.util.List; import java.util.logging.Logger; import seedu.address.commons.core.LogsCenter; import seedu.address.commons.core.Messages; import seedu.address.commons.exceptions.IllegalValueException; import seedu.address.logic.commands.exceptions.Co...
Java
src/main/java/seedu/address/logic/commands/EditCommand.java
CS2103JAN2017-W10-B1/main
mit
13,288
302
codeparrot/github-code
80822a27577b180f8251985fb840284367d3a02e0df2cc19c367a65e9823371e
var mongoose = require('mongoose'); var uriUtil = require('mongodb-uri'); /* * // Pulled from https://gist.github.com/mongolab-org/9959376#file-mongoose-connection-options-js * Mongoose by default sets the auto_reconnect option to true. * We recommend setting socket options at both the server and replica set level....
JavaScript
config.js
akeogh/text-based-story
mit
1,314
36
codeparrot/github-code
61c733cb7c21e68e59c791f646f90a0f3573f82961b2c81cd67ccbed279cf050
using System; using NetRuntimeSystem = System; using System.ComponentModel; using NetOffice.Attributes; namespace NetOffice.OutlookApi { /// <summary> /// DispatchInterface _ToOrFromRuleCondition /// SupportByVersion Outlook, 12,14,15,16 /// </summary> [SupportByVersion("Outlook", 12,14,15,16)] [EntityType(Ent...
C#
Source/Outlook/DispatchInterfaces/_ToOrFromRuleCondition.cs
NetOfficeFw/NetOffice
mit
7,102
224
codeparrot/github-code
bcaa527e2fa2772a75c9316af01bfd088ec07547e5c82640f79d0af12dc39115
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="NavigationFrame.Android.cs" company="MADE Apps"> // Copyright (c) MADE Apps. // </copyright> // <summary> // Defines a frame for navigating and displaying page content. // </su...
C#
src/MADE.App.Views.Navigation/NavigationFrame.Android.cs
MADE-Apps/MADE-App-Components
mit
9,309
261
codeparrot/github-code
d9819abb1ad258d15f37da6f6a60714081685321bc53e072c6958fc05e4dc1e4
//----------------------------------------------------------------------------- // // Copyright (c) Microsoft. All rights reserved. // This code is licensed under the Microsoft Public License. // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY // IMPLIED WARRANTI...
C#
Afterthought.Amender/Microsoft.CCI/PeReader/CoreTypes.cs
ApocalypticOctopus/ReactiveAfterthought
mit
15,751
207
codeparrot/github-code
a4e4be04520767d59764c1b464aff557fdecd0652c7cb085e201e06f23ac3f9a
/* * st-association.c * * Copyright (c) 2008 Vincent Geddes * * 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
src/st-association.c
vgeddes/panda-smalltalk
mit
1,895
58
codeparrot/github-code
a0420fd8b12e3eda892add2bba02550f9e523a503ad6f32882f1ce6d4d123087
////////////////////////////////////////////////////////////////////////////////// // // Author: Sase // Email: sase@stilsoft.net // // This software may be modified and distributed under the terms // of the MIT license. See the LICENSE file for details. // /////////////////////////////////////////////////////////////...
C#
CasparCG.AmcpClient/Commands/Thumbnail/Common/ThumbnailFileInfo.cs
StilSoft/CasparCG.AmcpClient
mit
2,319
74
codeparrot/github-code
f7042f0f3e0a5b5c6b5019388a0fa23380a879454b9ad4626f41725e104967c5
<TS language="fa_IR" version="2.0"> <context> <name>AddressBookPage</name> <message> <source>Double-click to edit address or label</source> <translation>برای ویرایش حساب و یا برچسب دوبار کلیک نمایید</translation> </message> <message> <source>Create a new address</source> ...
TypeScript
src/qt/locale/aricoin_fa_IR.ts
aricoin/Aricoin
mit
32,723
1,033
codeparrot/github-code
f27ce2ec006b4739160213a0ae0da7c54355fa9fe7c1f0b8efc6e69d5ada61f0
# Copyright (c) 2018-2021, Manfred Moitzi # License: MIT License from typing import ( TYPE_CHECKING, Tuple, Iterable, List, cast, Optional, ) import math from ezdxf.math import Vec3, Vec2, ConstructionRay, UCS from ezdxf.render.arrows import ARROWS, connection_point from ezdxf.entities.dimstyleo...
Python
src/ezdxf/render/dim_linear.py
mozman/ezdxf
mit
24,110
658
codeparrot/github-code
eb88915d529bfb51f714a0f4f555c38a95aedb77b27b72969dc4ed64979d0ae5
"use strict"; class TsReader { constructor(buffer, position) { this.buffer = buffer; this.position = position || 0; } readBitsRaw(length) { if (this.position + length > this.buffer.length << 3) { this.position += length; return 0; } let valu...
JavaScript
lib/reader.js
rndomhack/node-aribts
mit
2,214
104
codeparrot/github-code
998fee99bd2dfcf497d2f384acd1e5c3ad60033f646fd3963ca2db5c4054a1ac
import React, { Component } from 'react'; import classnames from 'classnames'; import api from '../../utils/api-interface'; import StripeCheckout from 'react-stripe-checkout'; class UserPaymentBlock extends Component { constructor(props) { super(props); this.state = { errorMessage: '', paymentInProgress: f...
JavaScript
public/containers/CourseList/UserPaymentBlock.js
ninjiangstar/hackSChedule
mit
3,135
121
codeparrot/github-code
d9025458d92367bf6de77dc4824479ae4beb4666a90ce015a811477cc53cff77
using MFaaP.MFWSClient; using System; using System.Collections.Generic; using System.Text; using Common.ExtensionMethods; namespace RESTAPI.ExtensionMethods { public static class PluginInfoExtensionMethods { private static string GetValueOrNull(this Dictionary<string, string> namedValues, string name) { try ...
C#
Samples/OAuth/RESTAPI/ExtensionMethods/PluginInfoExtensionMethods.cs
M-Files/MFilesSamplesAndLibraries
mit
5,565
157
codeparrot/github-code
8e47048f53ed63dec32ada01a331650aa469eb24384c7fb66773cb50ce46d40e
package controller; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import javax.swing.JButton; import javax.swing.JTextArea; import model.Message; import model.ViewConstraints; import view.MessageBoard; /** * Controls all ...
Java
Client/src/main/java/controller/MessageBoardController.java
ablenesi/ELTEProjectToolsTeam09
mit
2,269
84
codeparrot/github-code
5269502d3d3008cb41b35eab27afbc30d05b5cca92b442e5b23108beea728ceb
var BVH = { REVISION:'0.1a'}; BVH.TO_RAD = Math.PI / 180; window.URL = window.URL || window.webkitURL; BVH.Reader = function(){ this.debug = true; this.type = ""; this.data = null; this.root = null; this.numFrames = 0; this.secsPerFrame = 0; this.play = false; this.channels = null; this.lines = ""; this.s...
JavaScript
js/Bvh.js
lo-th/olympe
mit
12,378
426
codeparrot/github-code
c77115fe5b510b5516ab389207256013650c79826b06eb658ebd14f3674aceda
using CharacterGen.Characters; using CharacterGen.Randomizers.Abilities; using CharacterGen.Randomizers.Alignments; using CharacterGen.Randomizers.CharacterClasses; using CharacterGen.Randomizers.Races; using DnDGen.Core.Generators; using DnDGen.Core.Selectors.Collections; using EncounterGen.Common; using EncounterGen...
C#
EncounterGen.Domain/Generators/EncounterCharacterGenerator.cs
DnDGen/EncounterGen
mit
6,236
149
codeparrot/github-code
1341b3060ca38e928a826c0ff6bd9d48a319284ae2b9bd20f264239cb01db450
using System; using Assimp; using Assimp.Configs; using OpenTK; using System.Linq; using System.Collections.Generic; namespace SharpAsset.Pipeline { public class SkeletonPipeline: Pipeline { public static readonly SkeletonPipeline singleton=new SkeletonPipeline(); public Scene scene; private Dictionary<string...
C#
Sharp/SharpAsset/SharpAsset.Pipeline/SkeletonPipeline.cs
BreyerW/Sharp.Engine
mit
2,945
108
codeparrot/github-code
77b58e57b993a16b652aa5e278def84da9aadd9b72402ea0665538999c16fe14
#!/usr/bin/env node 'use strict'; if (process.version < 'v4.2.1') { console.log('请将Node更新至4.2.1及以上版本,可以使用nvm在本地安装并管理多个Node版本。'); process.exit(1); } var main = require('../main'); var Args = require('../lib/util/args'); var splitChars = /[,;,;]/; // run command for single id var run = function (name, event) { ...
JavaScript
bin/nei.js
genify/nei
mit
2,338
88
codeparrot/github-code
c8725290872b8130cb896225e045075a47612cfc6dd003a3c67390116b6bdf8e
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _250 { class Program { static void Main(string[] args) { X x = new X(); Console.WriteLine(); Console.ReadLine(); } } ...
C#
SRMs/SRM159/DIV2/250/Program.cs
Oscarbralo/TopBlogCoder
mit
950
38
codeparrot/github-code
3fe8d933209c2ebb54fcbd27c1b46c6842d8d545874bc97edaa65dc62a01384a
/* * Providers provided by Angular */ import * as browser from 'angular2/platform/browser'; import * as ngCore from 'angular2/core'; import {ROUTER_PROVIDERS, ROUTER_DIRECTIVES} from 'angular2/router'; import {FORM_PROVIDERS} from 'angular2/common'; import {HTTP_PROVIDERS} from 'angular2/http'; // Import mo...
TypeScript
src/main.ts
kubaszumiato/DotNetVideos
mit
2,852
115
codeparrot/github-code
7d775e4a2c58c25f02e7f946b31c6e696c6707515c0c99a933515c551f7b078e
import graphAttack as ga import numpy as np import pickle """Control script""" def run(simulationIndex, X, Y=None): """Run the model""" print("Training with:", simulationIndex) seriesLength, nFeatures = X.shape # ------ it is important that the exampleLength is the same as # ------ the number if ...
Python
controlTrainRNN.py
jgolebiowski/graphAttack
mit
5,411
124
codeparrot/github-code
2d12642fe0d97f58d37dc02b4db423798005ed321dd3110d38c4e69ef4d3f2f4
import { extend } from '../core/core.js'; import { now } from '../core/time.js'; import { path } from '../core/path.js'; import { URI } from '../core/uri.js'; import { math } from '../math/math.js'; /** * Callback used by {@link Http#get}, {@link Http#post}, {@link Http#put}, {@link Http#del}, and * {@link Http#req...
JavaScript
src/net/http.js
MicroWorldwide/PlayCanvas
mit
26,667
588
codeparrot/github-code
e3759187b24e702a8d5279bab2a1dc140d381e6c1282ab815cd7f47705ab7da0
#pragma once #ifndef VULKANVERTEXINPUT_H #define VULKANVERTEXINPUT_H #include "Rendering/RHI/RHIVertexInput.h" #include "Rendering/Vulkan/VulkanCommon.h" class VulkanDevice; class VulkanVertexInput : public RHIVertexInput { public: VulkanVertexInput(VulkanDevice* device) : _vulkanDevice(device) {} virtual ~Vulkan...
C
include/Rendering/Vulkan/VulkanVertexInput.h
BenKZSSS/Cubicer
mit
767
30
codeparrot/github-code
10f277336b4c7da6ffa68422cb859f88eca041af03c73569088830e3e055923a
/****************************************************************************/ /*! \file leds.c \brief Funktionen zur Steuerung der LED's. Die Port-Pin's zu den LED's werden so manipuliert, dass sie die daran\n angeschlossenen LED's mit Strom versorgen oder eben nicht. Dazu muessen die\n ents...
C
Robots/Robot Project/ASURO.xctemplate/lib/leds.c
kije/XRobots
mit
5,002
170
codeparrot/github-code
bbad5669a97d31ad009f22f21ad572ff99ae520d2240aa69e41f459c2459aa79
module Geokit module Geocoders # Provides geocoding based upon an IP address. The underlying web service is geoplugin.net class RipeGeocoder < BaseIpGeocoder self.secure = false # supports HTTPS, but Net::HTTPS doesn't like the server private def self.do_geocode(ip, _=nil) process...
Ruby
lib/geokit/geocoders/ripe.rb
geokit/geokit
mit
1,120
44
codeparrot/github-code
7253e083bb92de5c3e1a9e1860a084e1ccde56503e17357f7a355ee7d9426d66
<?php class Departments extends CI_Controller { public function __construct() { parent::__construct(); //check hei or ro $this->session; $utype = $this->session->userdata('usertype'); if($utype=='Encoder'){ redirect('login'); } $this->load->model('departments_model'); $this->data = array( ...
PHP
application/controllers/departments.php
elvincasem/crm_ch
mit
3,843
139
codeparrot/github-code
a5356cbfb300f5473c123d728ce7e239c603e36774bb56b355ff21a85e4912aa
// I2C driver for HMC5883L 3-axis digital compass // Datasheet: https://cdn-shop.adafruit.com/datasheets/HMC5883L_3-Axis_Digital_Compass_IC.pdf package com.github.mthu.hmc5883l; import android.support.annotation.IntDef; import android.util.Log; import com.google.android.things.pio.I2cDevice; import com.google.androi...
Java
hmc5883l/app/src/main/java/com/github/mthu/hmc5883l/Hmc5883l.java
m-thu/android-things
mit
11,918
318
codeparrot/github-code
6acca85446197a717590a1c71ed1191d95256486cc5787cb1b86440486d0d842
/* ---------------------------------------------------------------------------------- * Author: Grant Storey & Dillon Reisman * Written: 8/15/16 * Last Updated: 8/15/16 * Description: Contains a map between locale codes and the corresponding * "Sponsored" text, as well as a default list if the locale cannot be * ...
JavaScript
locale_info.js
akira02/Kemono_Adblocker
mit
15,821
239
codeparrot/github-code
ca3e8ffa853eb4f38b7f1034112e55f61d2a4800b853468d34c4aa7ef6df32cc
// Copyright (c) 2012 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include <stdio.h> #include "leveldb/dumpfile.h" #include "leveldb/env.h" #include "leveldb/stat...
C++
src/leveldb/db/leveldb_main.cc
realzzt/BitCoin2013
mit
1,631
82
codeparrot/github-code
2ef3f23f0af98938405cc98e67de81171d595f3fd4c58ba5d6601ddc9a5a80d4
const { Observable } = require('rxjs/Observable'); const { isFSA } = require('flux-standard-action'); const fetch = require('node-fetch'); function toObservable(anything) { if ( typeof anything === 'object' && typeof anything.then === 'function' ) { return Observable.fromPromise(anything); } else if ...
JavaScript
source/helpers.js
eldarshamukhamedov/xen-service
mit
1,563
66
codeparrot/github-code
aedc60b3f8e77f18df3389b8c851a694885c188c3b5a879bef055b9d7fb445c3
/* * Copyright 2015 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, soft...
Java
testing/droolsjbpm-integration-master/kie-remote/kie-remote-client/src/main/java/org/kie/remote/client/jaxb/JaxbWrapper.java
rokn/Count_Words_2015
mit
19,457
644
codeparrot/github-code
2193ae6842b7bfb4793338d33e7e3cddb5bba0844cf75aa906fc62a07086fca8
#!bash # # bash completion support for symfony2 console # # Copyright (C) 2010 Matthieu Bontemps <matthieu@knplabs.com> # Distributed under the GNU General Public License, version 2.0. _console() { local cur prev opts cmd COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" ...
Shell
Resources/Shells/symfony2-completion.bash
KnpLabs/KnpConsoleAutocompleteBundle
mit
1,277
49
codeparrot/github-code
79f452a035ebffe746b7513289725e80aec42691528709f26e398fab3cc48ca6
import store from '../store'; import PokerAPI from '../utils/poker-api'; import { SET_PICKED_CARD, USER_LOGGED_OUT, USER_NAME_CHANGED, USER_SAVED, } from './types'; const s4 = () => Math.floor((1 + Math.random()) * 0x10000) .toString(16) .substring(1); export const generateGUID = () => `${s4() + s4()}-${s4()}-...
JavaScript
src/actions/user.js
alimek/scrum-poker-react
mit
2,160
79
codeparrot/github-code
7c09a6efe2a50ad61c03130cd50fd04592986d81799df80a8ad573326a060a03
import os from lxml import etree class device: def __init__(self,ipadress,name): self.ipadress=str(ipadress) self.name=str(name) self.status="off" def turn_on(self): self.status="on" def turn_off(self): self.status="off" def getstatus(devices): ips=[] for ins...
Python
python/scanlibrary.py
RoboWoodhouse/RoboButler
mit
2,231
59
codeparrot/github-code
305f1149956f3bebe9ad18fde7ee57a4c140774c6a7c8587c5feb1488d098005
#include "Model.h" Model::Model(std::string path) { this->loadModel(path); } void Model::Draw(Shader shader) { for (GLuint i = 0; i < this->meshes.size(); i++) this->meshes[i].Draw(shader); } void Model::loadModel(string path) { // Read file via ASSIMP Assimp::Importer importer; const aiScene* scene = importe...
C++
Source3/Model.cpp
wobbier/source3-engine
mit
5,170
129
codeparrot/github-code
967df9d4673133574e9ad718c288a9fe5c8ed3b846dd71e0bbcd76d9ab445b18
<div class="row"> <div class="col-md-4"> <a href="<?= site_url('berita/add'); ?>" class="btn btn-primary"><span class="glyphicon glyphicon-plus-sign"></span> Tambah</a> </div> <div class="col-md-4"><?= (isset($_SESSION))? $this->session->flashdata('msg') : ''; ?></div> <div class="col-md-4"> <form method="get" ...
PHP
application/views/berita/berita.php
rahmat1996/wise
mit
2,538
87
codeparrot/github-code
75cd918262287fed19180769039d8b470e1dc72f91a2844fb0ba75c99b171503
/* * Copyright (c) 2016 airbug Inc. http://airbug.com * * bugcore may be freely distributed under the MIT license. */ //------------------------------------------------------------------------------- // Annotations //------------------------------------------------------------------------------- //@TestFile //@...
JavaScript
libraries/bugcore/js/test/data/SetTests.js
airbug/bugcore
mit
12,022
342
codeparrot/github-code
99abd839fcdf846f27118b2a14db37c1ffe6b895b27af6a02fae0c7f0af2aa5b
//@ A status is an exclusive, set-like container whose doubly-linked members form a ring. 'Object'.subclass(I => { "use strict"; I.have({ //@{string} descriptive status name statusName: null, //@{Std.Status.$._.Link?} first member link of this status firstLink: null, //@{integer} number of membe...
JavaScript
Std.Core/cls/Std/Status.js
open-mainframe-architecture/oma-runtime
mit
6,071
190
codeparrot/github-code
e9febd6b2608505e2841b8b2e0d3dc068faf3602f1adb8bee61d6e4c19f4fa0c
var fs = require('fs'); var util = require('util'); var mixin = require('./util').mixin; var EventEmitter = require('events').EventEmitter; /** * Hash containing regular expressions (or strings convertible to RegExps) * to use for scanning log lines. All properties are optional, and will * default to regular expre...
JavaScript
Parser.js
kfranqueiro/node-irssi-log-parser
mit
10,663
385
codeparrot/github-code
98e9d680c4c8a2d3a682d635f780d67e1c03132941951094263cdd169d38a647
package uk.joshiejack.penguinlib.client.gui; import uk.joshiejack.penguinlib.util.helpers.generic.StringHelper; import net.minecraft.client.gui.FontRenderer; import net.minecraft.util.text.TextFormatting; import javax.annotation.Nullable; import java.util.Arrays; import java.util.List; public class Chatter { pri...
Java
src/main/java/uk/joshiejack/penguinlib/client/gui/Chatter.java
joshiejack/Harvest-Festival
mit
7,402
208
codeparrot/github-code
32b89a67dc94c5760348f44e612c3ed9e145a604cca862e4232d1d19d4088bec
package com.swfarm.biz.product.web; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.lang.StringUtils; import org.springframework.validation.BindException; import or...
Java
pms/src/main/java/com/swfarm/biz/product/web/AddSingleImageController.java
zhangqiang110/my4j
mit
2,032
64
codeparrot/github-code
647f894738f09c9d7292059ea75d675cbda4d040170394e6180fd96c9777d088
// AFHTTPSessionManager.h // Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including...
C
OHHTTPStubs/Pods/AFNetworking/AFNetworking/AFHTTPSessionManager.h
tarbrain/OHHTTPStubs
mit
15,180
250
codeparrot/github-code
909ca3fda2d068e6f960156fbb0b9d65927ba5cb1cc6abdaa171d71353aba64f
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'> <head> <title>app/helpers/tweets_helper.rb - C0 code coverage information</title> <style type='text/...
HTML
marketing/samples/twitter4rails.post-0_2_4/coverage/app-helpers-tweets_helper_rb.html
mbbx6spp/twitter4r
mit
13,706
634
codeparrot/github-code
b62b11605334cd8d45cb1f562b64bc675a5437736a5df2e0565363d90bfb3bd2
/** @file Geometry.cpp * * @brief Basic functionality for geometric objects * * Copyright 2012-2013, Stewart Hall * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @author Stewart Hall (www.stewartghall.com) * @date 12/30/2012 * @copyright Copyright...
C++
ShockShapes/Geometry.cpp
thestew42/ShockShapes
mit
24,687
899
codeparrot/github-code
4f530fe32c026fd68c17aa2111de6fd756cd03b425f00d33ee7515eaa6e4aa76
package xyz.upperlevel.uppercore.update; import org.bukkit.plugin.Plugin; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import java.nio.charset.StandardCharsets; public class SpigotUpdateChecker extends UpdateCheck...
Java
src/main/java/xyz/upperlevel/uppercore/update/SpigotUpdateChecker.java
upperlevel/uppercore
mit
1,179
35
codeparrot/github-code
035066b80fcb04b38383ff7ab3004586d31ad553ab2c079e08fbcf64f6ed17b8
package simple.ast; /** * Created by yangqifan on 2017/8/18. */ public class VariableExprAST extends ExprAST { String id; ExprAST init; public VariableExprAST(String id, ExprAST init){ this.id = id; this.init = init; } public String getId() { return id; } publi...
Java
src/java/main/simple/ast/VariableExprAST.java
qifanyang/compiler_java
mit
508
32
codeparrot/github-code
01e58c4d9ecb6944dbd80c93fa1fef9b9789bf7884b701234b5341cada08138e
import express from 'express'; import path from 'path'; import open from 'open'; import webpack from 'webpack'; import config from '../webpack.config.dev'; /* eslint-disable no-console */ const port = 3000; const app = express(); const compiler = webpack(config); app.use(require('webpack-dev-middleware')(c...
JavaScript
buildScripts/srcServer.js
Selich/personal-dev-env
mit
942
38
codeparrot/github-code
0879e36b3d9aad078a75cb5d03ba3d2bc51c427df8da0bcc741d57dbccb889e7
// Type: Highsoft.Web.Mvc.Stocks.OhlcSeriesPointEvents using System.Collections; using Newtonsoft.Json; namespace Highsoft.Web.Mvc.Stocks { public class OhlcSeriesPointEvents : BaseObject { public OhlcSeriesPointEvents() { this.Click = this.Click_DefaultValue = ""; th...
C#
Highsoft.Web.Mvc/src/Highsoft.Web.Mvc/Stocks/OhlcSeriesPointEvents.cs
pmrozek/highcharts
mit
3,699
106
codeparrot/github-code
a612bd647a440b392528d9b9f127d1fcd4481dbb5036044038fd5e4889ecb138
"use strict"; /** * * ---------------------------------------------------------------------------- * stat.js * ---------------------------------------------------------------------------- * * This file is part of browser Project. * * For the full copyright and license information, please view the LICENSE * fi...
JavaScript
test/stat.js
miguelramos/node-media-manager
mit
2,837
83
codeparrot/github-code
654042ddd806b9456c68ed81c5485ef2fe0ec71cbabbd7673450a1095bc40025
(function () { 'use strict'; angular .module('blocks.logger') .factory('logger', logger); logger.$inject = ['$log', 'toastr']; /* @ngInject */ function logger($log, toastr) { var service = { showToasts: true, error: error, info: info, ...
JavaScript
src/client/app/blocks/logger/logger.js
fplgusmao/semanticCitiesAnalytics
mit
1,144
48
codeparrot/github-code
f3b084d5ab5f748ad963be2a01391bdbf8578d21ccfa489f329e401422af4579
# -*- coding: utf-8 -*- import os from locust.main import load_locustfile def create_settings( from_environment=False, locustfile=None, classes=None, host=None, num_users=None, spawn_rate=None, reset_stats=False, run_time="3m", loglevel="INFO", ): """ Returns a settings o...
Python
invokust/settings.py
FutureSharks/invokust
mit
3,137
99
codeparrot/github-code
7e7f905cd9cd008bae45d0c7068df73d3142888ca3ebebb52f654c1a6da7d962
<meta charset="utf-8"> <title>{% if page.title %}{{ page.title }} &#8211; {% endif %}{{ site.title }}</title> {% if page.excerpt %}<meta name="description" content="{{ page.excerpt | strip_html }}">{% endif %} <meta name="keywords" content="{{ page.tags | join: ', ' }}"> {% if page.author %} {% assign author = site.d...
HTML
_includes/_head.html
arbrown/arbrown.github.io
mit
3,796
64
codeparrot/github-code
8f9696d4fe5d95ee2447fd60b4bb0ad8bfde1f738449672668ba656771a1c66c
require 'net/protocol' ## # Meta programming Net class for async HTTP and FTP connection class Net::BufferedIO # Wait till io finishes # @param [Symbol] interest def wait_io(interest) await(Promise.new do |resolve| io = @io.to_io EventLoop.register(io, interest) do EventLoop.deregister(io...
Ruby
lib/midori-contrib/net.rb
dsh0416/midori-contrib
mit
1,202
43
codeparrot/github-code
6830f350dfdef8ec1b167dedf0f1a2d7b028b3d893dc445b12261b4103dff2aa
<?php namespace Concrete\Attribute\ImageFile; use Loader; use File; use Concrete\Core\Backup\ContentExporter; use Concrete\Core\Backup\ContentImporter; use \Concrete\Core\Attribute\Controller as AttributeTypeController; class Controller extends AttributeTypeController { protected $searchIndexFieldDefinition = arr...
PHP
concrete/attributes/image_file/controller.php
christiandmiles/cloud9-concrete5
mit
4,425
149
codeparrot/github-code
7f5932c8d7ee91876b3d567fe356ef4428382150652fe245db8f63f420955a12
// UVa 10070 - Leap Year or Not Leap Year and ... package main import ( "fmt" "os" ) func leapYear(year int) bool { switch { case year%4 != 0: return false case year%400 == 0: return true default: return year%100 != 0 } } func huluculuYear(year int) bool { return year%15 == 0 } func bulukuluYear(year ...
GO
10070/10070.go
codingsince1985/UVa
mit
1,076
56
codeparrot/github-code
21e4d4f5797a8bf9704ea56403ee7b343c158d0de2860651f605a900ca06e312
//MIT, 2015-2017, ParserApprentice namespace Parser.CodeDom { public class CodeTypeReference { CodeTypeReference elementTypeRef = null; /// <summary> /// 0 = unknown, 1= asm typeinfo,2 =code type decl , 3= code named item /// </summary> byte createFrom; byte...
C#
ParserKit.CSharpCodeModel/1_CodeDom/CodeTypeReferences.cs
ParserApprentice/CsLambdaDslParser
mit
7,663
283
codeparrot/github-code
4652a8957367a18912c861b18201f656e83764eb704266c20b09c5b5deb1982f
//shadow2d.cpp /* * the shadow2d class impl * (C) 2005 olegabr. All rights reserved. */ #include "shadow2d.h" //#include "filtered_shadow2d.h" #include <iomanip> #include <sstream> #include <algorithm> #include <numeric> #include <cmath> #include <cassert> #include <iostream> using std::cout; using std::endl; #inclu...
C++
libtomo3d/src/shadow2d.cpp
olegabr/tomo3d
mit
7,466
286
codeparrot/github-code
e00ae7384786299d9e40ac4a896a20939522062bc0d0373609d0caf6003c8e79
angular.module('sample', [ 'auth0', 'ngRoute', 'auth0UserExport.main', 'auth0UserExport.home', 'auth0UserExport.login', 'auth0UserExport.users', 'auth0UserExport.users.table', 'auth0UserExport.users.configure', 'angular-storage', 'angular-j...
JavaScript
public/js/app.js
mostekcm/auth0UserExport
mit
2,984
82
codeparrot/github-code
9e78df6d6ceb78cfa29251c936647419f6a88c33eba3c7af02b79ec408bd33c5
//====================================================================== //File: Main.cpp //Author: Matt Struble //====================================================================== #include <iostream> #include <Windows.h> #include <gl\glut.h> #include "GlutTime.h" #include "Game.h" #include <time.h> //============...
C++
RigidBodies/PhysicsProject/Main.cpp
mattstruble/PhysicSimulations
mit
4,671
175
codeparrot/github-code
33502d5007820e9656eaacec35d4b60873965f3b73a392343f232964887b4f33
TARGET_DIR := target GTEST_DIR := googletest USER_DIR := .. BUILD_DIR := build SRC_DIR := unittest CXX := g++ CXXFLAGS += -g -Wall -Wextra -pthread -std=c++11 CPPFLAGS += -isystem $(GTEST_DIR)/include INCLUDE := -I../include GTEST_HEADERS = $(GTEST_DIR)/include/gtest/*.h \ $(GTEST_DIR)/include/gtest/i...
Makefile
test/Makefile
buptlxb/toy-yacc
mit
2,910
82
codeparrot/github-code
bf8008dbaef1a7b48ac3b54cc061ce71070d8864f8d43facc8c6e6bbc6561927
// Copyright © 2016 NAME HERE <EMAIL ADDRESS> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law ...
GO
cmd/brokers_list.go
eddyzags/kafkactl
mit
1,446
55
codeparrot/github-code
c434e77afb7bfc7a86445acba0b81e4a22626604877be4ff4bf9006bd0dedff9
# -*- coding: utf-8 -*- miquire :core, 'plugin' require 'gtk2' =begin rdoc プラグインに、簡単に設定ファイルを定義する機能を提供する。 以下の例は、このクラスを利用してプラグインの設定画面を定義する例。 Plugin.create(:test) do settings("設定") do boolean "チェックする", :test_check end end settingsの中身は、 Plugin::Settings のインスタンスの中で実行される。 つまり、 Plugin::Settings のインスタンスメソ...
Ruby
core/plugin/settings/builder.rb
osak/mikutterd
mit
9,202
302
codeparrot/github-code
da17185586f2449604dc9feee47c1d83d39ecaaacd2faff4bfcc689dfae8138a
<!doctype html> <!--[if IE 8 ]><html class="ie ie8 no-js" lang="en"><![endif]--> <!--[if IE 9 ]><html class="ie ie9 no-js" lang="en"><![endif]--> <!--[if gt IE 9]><!--><html class="no-js" lang="en-us"><!--<![endif]--> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name=...
HTML
_site/sandbox/suggestion-box/index.html
quattromani/scaffold-gulp
mit
15,677
470
codeparrot/github-code
f00a2a443efd9c0bb01b712b1ab20888e629d20030a1f80e8ca590dd6f85d7c6
package final_cdio_11.java.data.dao.view; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import final_cdio_11.java.data.Connector; import final_cdio_11.java.data.DALException; import final_cdio_11.java.data.dto.view.VPharm...
Java
11_CDIO_FINAL/src/final_cdio_11/java/data/dao/view/SQLPharmacistRecipeDAO.java
trolund/11_CDIO_FINAL
mit
3,098
80
codeparrot/github-code
630e58a8c75c75b1ef4c9d13b5885b10288d4d39876db4e42acebcca0e49ab8d
<html> <head> <title>HotSausage Javascript Testbed</title> <style type="text/css"> .spec { margin: 5px; } .passed { background-color: lightgreen; } .failed { background-color: pink; } .resultMessage { white-space: pre; } .stackTrace { white-s...
HTML
test/testbed.html
cemeyer2/hotsausage
mit
2,207
95
codeparrot/github-code
22fb20843deb470fc5279c8e9f50bb265e1c8505db39bb2c34ee149cad5ce956
package controllers; import org.codehaus.jackson.JsonNode; import org.codehaus.jackson.map.ObjectMapper; import play.mvc.Controller; import play.mvc.Result; import com.saurshaz.poc.play.models.CustomObject; public class Application extends Controller { private static CustomObject obj=null; static{ obj = new Cu...
Java
app/controllers/Application.java
saurshaz/shopnplay
mit
677
31
codeparrot/github-code
9cfc832738199cb93c76b42ae1ba5d35a0c80e2d3e5118e08f45cfb1cc66c139
require 'yaml' class Rake::Builder class LocalConfig VERSIONS = ['1.0', '1.1'] attr_accessor :include_paths attr_accessor :compilation_options def initialize(file_name) @file_name = file_name @include_paths = [] @compilation_options = [] end def load ...
Ruby
lib/rake/builder/local_config.rb
joeyates/rake-builder
mit
1,026
45
codeparrot/github-code