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
07b73df9e9cf5d892bb2666378d5b418b794205075527f44e1149c2149b48e12
package com.crossoverJie.sbcuser; import com.alibaba.fastjson.JSON; import com.crossoverJie.order.feign.api.OrderServiceClient; import com.crossoverJie.order.vo.req.OrderNoReqVO; import com.crossoverJie.order.vo.res.OrderNoResVO; import com.crossoverJie.sbcorder.common.res.BaseResponse; import org.junit.Test; import o...
Java
sbc-user/user/src/test/java/com/crossoverJie/sbcuser/SbcUserApplicationTests.java
crossoverJie/springboot-cloud
mit
907
32
codeparrot/github-code
f5e89185c89cc2f7a8eb9d507d9cecbaf30a80e99e21ed6c21168bc1ca0042d4
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class users_control extends CI_Controller{ public function __construct() { parent::__construct(); //Codeigniter : Write Less Do More } public function register() { $data['title'] = 'Sign up'; $this->form_validation->set_rules('name', ...
PHP
application/controllers/Users_control.php
Faizaan85/GitOnSys
mit
3,000
110
codeparrot/github-code
43e27f25da71eb412e6cf35d50b345e8b17c5c651fffaeaffb8795b08cc3c9ed
package br.ufsc.bridge.res.dab.write.builder.medicoesobservacoes.avaliacao; import java.util.Date; import lombok.Getter; import br.ufsc.bridge.res.dab.write.builder.base.ArquetypeWrapper; import br.ufsc.bridge.res.dab.write.builder.base.ParentArquetypeWrapper; import br.ufsc.bridge.res.util.RDateUtil; @Getter publi...
Java
src/main/java/br/ufsc/bridge/res/dab/write/builder/medicoesobservacoes/avaliacao/AlturaComprimentoBuilder.java
laboratoriobridge/res-api
mit
1,733
52
codeparrot/github-code
c2e5e4298b3489074d0bd4ca3de261e107098bdf9d21a00e88144587cdee6cd8
// I am well aware this could be so very much tidier, // we are going fo basic functionality first. // will tidy up later. var boilerplate = function() { this.popup = function(html) { $('#popup').html(html); // add X var close = '<img id="close" src="libs/icons/close.png"></img>'; $('#popup').append...
JavaScript
libs/boilerplate/js/boilerplate.js
krisrandall/boilerplate
mit
2,582
94
codeparrot/github-code
e4a2b9f50a4f266026d3e5e302065287cc2e6224b7c0f84593bc997171735e19
/* * This file is part of the MicroPython project, http://micropython.org/ * * Development of the code in this file was sponsored by Microbric Pty Ltd * and Mnemote Pty Ltd * * The MIT License (MIT) * * Copyright (c) 2016, 2017 Nick Moore @mnemote * * Based on esp8266/modnetwork.c which is Copyright (c) 2015 ...
C
esp32/modnetwork.c
SHA2017-badge/micropython-esp32
mit
21,601
564
codeparrot/github-code
e8275023afcb394458b9890394e7e8ca2990cde023551917f1aeb73da6992a05
import React from 'react'; import { render as mount } from 'enzyme'; import { Provider as ContextProvider } from '../common/context'; import Message from './Message'; describe('Message', () => { function render(message, context) { // need the spans otherwise the document has 0 html elements in it. return mo...
JavaScript
src/message/Message.spec.js
Tankenstein/retranslate
mit
2,811
73
codeparrot/github-code
6ab0ba38cae6916f992f7d5b90e9373b2b86ccc9070c6e420be5eaab487d35e1
using System; using System.Collections.Generic; using System.Linq; // ReSharper disable once CheckNamespace namespace Player { #region classes class Point { public int X { get; set; } public int Y { get; set; } } class Drone { public Drone(int zoneCount, int droneId) { TargetZones = new List<TargetZo...
C#
GameOfDrones/program.cs
ReddwarfCro/CodinChallenges
mit
10,409
439
codeparrot/github-code
da1c0e33328a833f836f6adc1d496ec88b22b46d1f5ea60ba74423b5673ddefb
--- title: "Make tests on Android projects I" date: 2012-05-01, 21:45 layout: post categories: [Android, Java, Development] published: true comments: true --- <p> Hi all!</p> <p> As you might know if you follow my blog I'm working at Schibsted, and one of the projects we are developing is an Android application to acc...
HTML
_posts/2012-05-01-android-testing.html
i02sopop/blog
mit
3,887
96
codeparrot/github-code
78e4aade60d033412a706402e012b5f6051ce0a44f39dd6f2f0e9164e2f6ff99
//go:build !linux // +build !linux package vsock import ( "fmt" "net" "os" "runtime" "syscall" "time" ) // errUnimplemented is returned by all functions on platforms that // cannot make use of VM sockets. var errUnimplemented = fmt.Errorf("vsock: not implemented on %s", runtime.GOOS) func fileListener(_ *os.F...
GO
vsock_others.go
mdlayher/vsock
mit
1,744
46
codeparrot/github-code
4eb847016f1eb25bbc5c79ea1ec9056655c11fcf987e92e395dacefb12002797
define(function (require) { 'use strict'; /** * Module dependencies */ var defineComponent = require('flight/lib/component'); var tweetItems = require('component/tweet_items'); var templates = require('templates'); var _ = require('underscore'); /** * Module exports */ return defineComp...
JavaScript
app/js/component/search_column.js
passy/tweetdock
mit
2,120
91
codeparrot/github-code
fd2f4a84f794d2e9f4fb6f54211b9e8e33fb1411384a8b7d7ac0ec26834b8410
// Copyright (c) 2009-2015 The Bitcoin Core developers // Copyright (c) 2014-2017 The Innova Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "base58.h" #include "chain.h" #include "rpcserver.h" #include ...
C++
src/wallet/rpcdump.cpp
innovacoin/innova
mit
24,919
648
codeparrot/github-code
404237999ca65d219b1ebcca899430ab5d29cbd7a4ae5022fc9a5a067a64fd06
#include <hx/CFFIPrimePatch.h> //#include <hx/CFFIPrime.h> #include <system/CFFIPointer.h> #include <system/Mutex.h> #include <utils/Bytes.h> #include "OpenGL.h" #include "OpenGLBindings.h" #include <string> #include <vector> #ifdef NEED_EXTENSIONS #define DEFINE_EXTENSION #include "OpenGLExtensions.h" #undef DEFINE_E...
C++
project/src/graphics/opengl/OpenGLBindings.cpp
fbricker/lime
mit
40,129
1,926
codeparrot/github-code
432ea43d33639f2ab7f48f68854d323a56adca5bacf0dd9bf75fbbb49931660f
<?php /** * Displays a place hierachy * * phpGedView: Genealogy Viewer * Copyright (C) 2002 to 2010 PGV Development Team. All rights reserved. * * 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 Soft...
PHP
PhpGedView/modules/googlemap/placehierarchy.php
fweber1/Annies-Ancestors
mit
24,554
702
codeparrot/github-code
eaab81a5af62ec861535e9675d52c9fe40a1628c860be99068413ec28bf9f548
#region Copyright (C) 2013 EPiServer AB /* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dis...
C#
EPiServer.ComposerMigration.Import/ExportLinkResolver.cs
episerver/ComposerMigration
mit
2,132
56
codeparrot/github-code
20c38be750fcca1c2d81fbc7e5b3dc04fa58344a223673a679119336f750ad15
"""Creates beautiful visualizations of the publication database.""" import datetime import sqlite3 as sql import numpy as np from astropy import log from matplotlib import pyplot as plt import matplotlib.patheffects as path_effects import matplotlib as mpl from matplotlib import style import seaborn as sns from kpub...
Python
publication-stats/publications-per-year-k2.py
barentsen/exoplanet-charts
mit
3,121
108
codeparrot/github-code
01bc2cafa829d58815e5b861047b4d5ed344ca39c471e2fac95f29570c103305
#include <pololu/orangutan.h> #include <stdio.h> // for printf() /* * pushbuttons2: for the Orangutan LV, SV, SVP, X2, and 3pi robot. * * This example uses the OrangutanPushbuttons library to detect user input * from the pushbuttons. Each button press and release triggers an event * (the buzzer plays a n...
C
examples_templates/pushbuttons2/test.c
pololu/libpololu-avr
mit
1,990
68
codeparrot/github-code
5faa98106d971bebf650b18b103254bba64dae5b06d3903fba345a446c3bb28b
<!doctype html> <!-- Microdata markup added by Google Structured Data Markup Helper. --> <!--[if lt IE 7 ]><html lang="en" class="no-js ie6"> <![endif]--> <!--[if IE 7 ]><html lang="en" class="no-js ie7"> <![endif]--> <!--[if IE 8 ]><html lang="en" class="no-js ie8"> <![endif]--> <!--[if IE 9 ]><html lang="en" cla...
HTML
Website/category/mocha/index.html
jchannon/Sandra.Snow.BarbatoTemplate
mit
5,783
143
codeparrot/github-code
228c1c1e43aa825f62de218a3cc5b2492a2d6f6a84af68cd083b3858dd4494da
package org.datavaultplatform.worker.tasks; import java.io.File; import java.lang.reflect.Constructor; import java.nio.file.Path; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.datavaultplatform.common.event.Error; import org.datavaultplatform.common.even...
Java
datavault-worker/src/main/java/org/datavaultplatform/worker/tasks/Delete.java
DataVault/datavault
mit
8,550
189
codeparrot/github-code
3ed9e7c56cf00ecb63ad2f0249dc3057654c19870f426f3fcd93d2871ebf5ef3
package app.security; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.authority.SimpleGrantedAuthority; import org.springframework.security.core.userdetails.UserDetails; import app.users.User; import java.util.Collection; import java.util.List; import java.util.stre...
Java
src/main/java/app/security/CustomUserDetails.java
BahodirBoydedayev/conferenceApp
mit
1,328
56
codeparrot/github-code
94d2dd518820993be82369c5302f471294945fe751d09f0513a59643be4e3e37
<?php declare(strict_types=1); namespace Talesweaver\Application\Command\Chapter\Publish; use Talesweaver\Application\Bus\CommandHandlerInterface; use Talesweaver\Application\Http\HtmlContent; use Talesweaver\Domain\ValueObject\LongText; final class CommandHandler implements CommandHandlerInterface { /** *...
PHP
src/Application/Command/Chapter/Publish/CommandHandler.php
szymach/talesweaver
mit
1,091
42
codeparrot/github-code
acf58930c50652023818cfae95ff6473b0caf723f9b6891eed3e4fdae4367e17
using Durwella.Measurements.Testing; using FluentAssertions; using Xunit; namespace Durwella.Measurements { public class UscSystemTest { // https://en.wikipedia.org/wiki/United_States_customary_units [Theory(DisplayName = "USCS:Consistent"), AutoMoqData] public void Consistent(UscSyst...
C#
Durwella.Measurements.Test/UscSystemTest.cs
Durwella/Durwella.Measurements
mit
2,630
80
codeparrot/github-code
7ed739a58067bce3e913c4dc09b449a96eb8c17f4b9b85c8ed0e60eb161f1588
import com.fasterxml.jackson.databind.ObjectMapper; import com.google.gson.Gson; import model.GameState; import model.TidesOfBattleResponse; import spark.ModelAndView; import spark.ResponseTransformer; import spark.template.freemarker.FreeMarkerEngine; import java.util.HashMap; import java.util.Map; import static spa...
Java
src/main/java/Main.java
dhenry/game-of-thrones-api
mit
3,213
88
codeparrot/github-code
68ea82c7caa2cb171687e987c86a51a4721edca82c6ae8a0f406401e1c20e1ff
// Copyright (c) 2012 DotNetAnywhere // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish...
C#
src/DNA/corlib/System/SByte.cs
ncave/dotnet-js
mit
2,842
96
codeparrot/github-code
118535a28fa532270b90733b7fa65587795f8297901dc15a5ab2738b4f92fe12
package utilities.frontendSimulator; import models.Assignment; import models.Drone; import play.Logger; import java.util.List; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; /** * Created by Benjamin on 14/04/2015. */ public class SchedulerSimulator implements Runnable { pr...
Java
app/utilities/frontendSimulator/SchedulerSimulator.java
ugent-cros/cros-core
mit
3,054
78
codeparrot/github-code
5a12487be885c6ea39e933cdb270a739a2c763c95566c9c517f2b9866639f57f
package rpc import ( "github.com/golang/glog" "github.com/oikomi/FishChatServer2/common/ecode" "github.com/oikomi/FishChatServer2/protocol/external" "github.com/oikomi/FishChatServer2/protocol/rpc" "github.com/oikomi/FishChatServer2/server/access/conf" "github.com/oikomi/FishChatServer2/server/access/global" sd...
GO
server/access/rpc/rpc_server.go
oikomi/FishChatServer2
mit
2,858
99
codeparrot/github-code
f55a2c2e28b9d9b3f85a533a14974298dfbaed8898e8abbee353743a105117a0
import logging from office365.sharepoint.helpers.utils import to_camel logger = logging.getLogger(__name__) class QueryStringBuilder: """class to map web-querystring dictionary to sharepoint-querystring""" date_operators = ['ge', 'gt', 'le', 'lt'] mapping_operator = { 'gte': 'ge', 'gt': ...
Python
office365/sharepoint/helpers/querystring_builder.py
vgrem/SharePointOnline-REST-Python-Client
mit
1,822
53
codeparrot/github-code
1150aa3bc92e61e5410e254d9c22b55c01484b358f59fe86526bc37ae76b805e
//********************************************************* // // 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 WARRANTIES OF...
C#
StreamAnalyticsDemo/TelcoGenerator/Program.cs
liupeirong/Azure
mit
9,976
236
codeparrot/github-code
2fcefc51320357f1d51126321774e8acf6abf4d1a3e6db64f46f6eb3899cdef5
<HTML><HEAD> <TITLE>Review for Trainspotting (1996)</TITLE> <LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css"> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0117951">Trainspotting (1996)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Christopher...
HTML
data science/machine_learning_for_the_web/chapter_4/movie/5732.html
xianjunzhengbackup/code
mit
4,493
74
codeparrot/github-code
620d160da6e6882e66a8af6550387505cdaba741275f25fcef0211bb3747b8df
<?php declare(strict_types=1); /* * This file is part of the TSantos Serializer package. * * (c) Tales Santos <tales.augusto.santos@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace TSantos\Serializer\CodeDeco...
PHP
src/CodeDecorator/HydrationDecorator.php
tsantos84/serializer
mit
3,602
120
codeparrot/github-code
15b208595d7b1fa787c9f348d4e083e2abc495c20f0cb6613704ba60c27794d5
define('jqueryui/tabs', ['jquery','jqueryui/core','jqueryui/widget'], function (jQuery) { /* * jQuery UI Tabs 1.8.16 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Tabs * * Depends: ...
JavaScript
public/libs/jquery-ui-require/jqueryui/tabs.js
ticup/SynerJ
mit
21,339
761
codeparrot/github-code
bfcf9a3f99fe983b140b0f00f5b8553146e8f1940dfedc8fdcc679f8791ca1eb
namespace InheritanceAndPolymorphism { using System.Collections.Generic; public class Course { public Course(string name) { this.Name = name; this.TeacherName = null; this.Students = new List<string>(); } public Course(string courseName,...
C#
07. HighQualityClassesHomework/Inheritance-and-Polymorphism/Course.cs
vassildinev/High-Quality-Code
mit
896
45
codeparrot/github-code
2b8146d6aa2751c4aa4a40ad3d09bef957ba6974427d7bdc9873526521604d58
declare const module: { hot: any }; import * as Raven from "raven-js"; const createRavenMiddleware = require("raven-for-redux"); import thunkMiddleware from "redux-thunk"; import * as createLogger from "redux-logger"; import { createStore, applyMiddleware } from "redux"; import rootReducer from "reducers"; import { ...
TypeScript
src/store/configureStore.ts
uppsaladatavetare/foobar-kiosk
mit
1,257
47
codeparrot/github-code
d08ae36def3a4046388914898578ae7be0de2b98a71b49855ce24e33f63ed827
from django.http import Http404, HttpResponse from django.template.context_processors import csrf from rest_framework.authentication import TokenAuthentication from rest_framework.parsers import JSONParser from rest_framework.permissions import DjangoModelPermissions from rest_framework.views import APIView from .model...
Python
falmer/frontend/views.py
sussexstudent/falmer
mit
1,727
48
codeparrot/github-code
6c0680d303fe35c1962629ef171dd0e4bff5c48da70821c6e4017b572f6a9468
package cmcc.iot.onenet.javasdk.api.dtu; import java.util.HashMap; import java.util.Map; import org.apache.http.HttpResponse; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import cmcc.iot.onenet.javasdk.api.AbstractAPI; import cmcc.iot.onenet.javasdk.exception.OnenetApiException; import cmcc.iot.onenet.ja...
Java
javaSDK/src/main/java/cmcc/iot/onenet/javasdk/api/dtu/ModifyDtuParser.java
cm-heclouds/JAVA-HTTP-SDK
mit
2,376
75
codeparrot/github-code
2e39ae9ffb495700e3b5c15a4da0e84649fba7cc8a37af395f495b882d6b0b25
// // txnet777.c // crypto777 // // Created by James 2015 // Copyright (c) 2015 jl777. All rights reserved. // //alice: "i want to mix" (public) //bob: "i'm in with this destination - xxx" (private) //alice: "group 2 deposits and split again into xxx and yyy and try to guess where mine is ;)" (public) //bob: "i ap...
C
libjl777/plugins/common/txnet777.c
mezzovide/btcd
mit
52,708
1,060
codeparrot/github-code
ec3e3ae8d190762a135eab02cd047a5a1527837254352a5885b5e7d164340f6e
#!/usr/bin/env python # # Copyright 2008 the V8 project authors. All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # noti...
Python
src/node/tools/test.py
x684867/nemesis
mit
42,571
1,488
codeparrot/github-code
7ffc64459bcd2c2836056e65de3e8037336b97e03b22bdde0b4f0eb740710e3b
module Flickrie module Media class Tag # @!parse attr_reader \ # :id, :raw, :content, :machine_tag?, :author, :hash # @return [String] def id() @hash['id'] end # @return [String] def raw() @hash['raw'] end # @return [String] def content() @has...
Ruby
lib/flickrie/objects/media/tag.rb
janko-m/flickrie
mit
863
41
codeparrot/github-code
564fda2bfe4df8e77a9766dde0e7c41292b133f3eabea527f58247cfd25664f2
var game = new Phaser.Game(450, 350, Phaser.CANVAS, '', { preload: preload, create: create, update: update }); function preload(){ game.stage.backgroundColor='#000066'; game.load.image('correct','assets/correct.png'); game.load.image('incorrect','assets/incorrect.png'); game.load.spritesheet('greenbutt...
JavaScript
tutorials/this_or_that/unit2game_source.js.js
bpickard/c9_phaser
mit
23,778
660
codeparrot/github-code
b484de4ed44e278884ab579041998baceb511076e6e8f0e2bf34d7951343edef
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>&quot;paths/Content&quot; | ringcentral-ts API Reference</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link r...
HTML
docs/modules/_paths_content_.html
zengfenfei/ringcentral-ts
mit
8,501
170
codeparrot/github-code
0ef8025f4bf87e953acebf42c2ce7c123a2c279285ae56bba272732c691b6596
/* eslint-disable max-len */ declare global { namespace Kloudless.filePicker { function picker(options: ChooserOptions | SaverOptions): Picker; function dropzone(options: DropzoneOptions): Dropzone; function getGlobalOptions(): BuildOptions; function setGlobalOptions(buildOptions: Partial<BuildOptio...
TypeScript
src/loader/js/interface.d.ts
Kloudless/file-explorer
mit
11,363
350
codeparrot/github-code
c5b52aa571b4e47fa05c07d09a263d87f2d69f90b4ef12c5e6e4dc1603ff7d46
module RubyXL module WorkbookConvenienceMethods SHEET_NAME_TEMPLATE = 'Sheet%d' # Finds worksheet by its name or numerical index def [](ind) case ind when Integer then worksheets[ind] when String then worksheets.find { |ws| ws.sheet_name == ind } end end # Create new si...
Ruby
Portable/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/rubyXL-3.3.23/lib/rubyXL/convenience_methods.rb
lincoln131/rubyspanishxlsx
mit
31,554
1,046
codeparrot/github-code
01838d5f50cb2a5fc929f439c571a4116941c3f3d6927885ed8e89e904d459e2
module.exports = function(app) { var _env = app.get('env'); var _log = app.lib.logger; var _mongoose = app.core.mongo.mongoose; var _group = 'MODEL:oauth.authcodes'; var Schema = { authCode : {type: String, required: true, unique: true, alias: 'authCode'}, clientId : {...
JavaScript
model/oauth/authcodes.js
selcukfatihsevinc/app.io
mit
1,339
46
codeparrot/github-code
b66ddb2dd6ecd1f9840d658ac12b44f1bd88d2eaffb51a98ae041bc78577ba6f
/* The MIT License (MIT) Copyright (c) 2017 Adrian Paul Nutiu <nutiuadrianpaul@gmail.com> http://adrianpaulnutiu.me/ */ // ==UserScript== // @name kartwars.io Bot // @namespace https://github.com/kmataru/kartwars.io-bot/raw/pre-release/src/DracoolaArt.Bot.Kartwars/ // @version 0.7.475 // @description ...
JavaScript
src/DracoolaArt.Bot.Kartwars/bot.user.js
kmataru/kartwars.io-bot
mit
3,346
75
codeparrot/github-code
78be5a9b8901bf860bb6f3f9ec6291d5b3c0f4603f4450c02798b87a52a77b67
package main import ( "emersyx.net/emersyx/api" "github.com/BurntSushi/toml" goirc "github.com/fluffle/goirc/client" ) // The ircGateway struct defines the implementation of an IRC receptor and resource. The struct implements the // api.IRCGateway and api.Receptor interfaces. type ircGateway struct { api.Peripher...
GO
emirc/gateway.go
emersyx/emersyx_irc
mit
1,966
71
codeparrot/github-code
bace2fe3a02c37de8e0b97b5e1d1e408095ebfe267e745c4748a58b5eebea506
import { Component, OnInit } from '@angular/core' import { fromEvent as observableFromEvent } from 'rxjs' import { Router, RouterEvent, NavigationStart, NavigationEnd, NavigationCancel, NavigationError } from '@angular/router' import { ToastrService } from 'ngx-toastr' import { ConfigService } from '../../services/con...
TypeScript
src/modules/_common/components/main/main.component.ts
ChristosGeorgiou/Balance.WebApplication
mit
2,448
102
codeparrot/github-code
06ce50da9101edc69151d2dccdad1a91eee376b3475cb82a7ac8ce3b7bbacf9e
import Page from '../Page'; import './news.scss'; import RoomList from "../parts/RoomList"; export default class NewsPage extends Page { indexAction() { this.headerTitle = "新着・おすすめ"; var $switchPanel = $(` <div class="switch-panel"> <div class="switch-btn selected new"> <span class="t...
JavaScript
src/pages/news/NewsPage.js
nakamura-yuta-i7/ietopia-appli
mit
1,636
59
codeparrot/github-code
5b5431b5781b6247fd131c33e45ed53c4190f9c246a9c974d8d816debb97598a
package io.rong.messages; import io.rong.util.GsonUtil; /** * * 提示条(小灰条)通知消息。此类型消息没有 Push 通知。 * */ public class InfoNtfMessage extends BaseMessage { private String message = ""; private String extra = ""; private transient static final String TYPE = "RC:InfoNtf"; public InfoNtfMessage(String message, String...
Java
src/main/java/io/rong/messages/InfoNtfMessage.java
rongcloud/server-sdk-java
mit
1,018
64
codeparrot/github-code
ff395889fe03837f9b7812e3bf3529d0f028cf77c34ba40ceec8423ea71b7454
/* WebGL Renderer*/ var WebGLRenderer, __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor...
JavaScript
compiled/demos/renderer/WebGLRenderer.js
codio/tutorial_grunt_watch_coffee
mit
10,506
225
codeparrot/github-code
18a813c35493869fda55b44a3b58c738c8f4d14849e85329808a2fae24e8c96e
#!/bin/bash # + # Convenient shortcuts. # - alias ..='cd ..; pwd' # cd .. alias ...='cd ../..; pwd' # cd ../.. alias cdvw='cd "$VW_DIR"; pwd' # cd vw dir # one liners chcount () { "$VW_DIR/tools/chcount.py" "$@" | pr -4t ; } # character count cpo () { cp "$@" "$OLDPWD" ; } # copy to $OLDPWD findext() { find . -name "*...
Shell
base/ea.sh
evanvliet/vw
mit
2,813
99
codeparrot/github-code
8c09c95062c7d027c831a9674456a6fd7a4eba273344086c3fe9320eda76fab6
package com.appslandia.common.formatters; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import com.appslandia.common.base.FormatProvider; import com.appslandia.common.base.FormatProviderImpl; import com.appslandia.common.base.Language; public class BooleanFormatterTest { BooleanFormatter...
Java
src/test/java/com/appslandia/common/formatters/BooleanFormatterTest.java
haducloc/appslandia-common
mit
1,666
67
codeparrot/github-code
ebdf021fcc7486ad16bd4c44c3680f765ab2054d80fd904cb5e038bd1a01c3c7
import Vue from 'vue' import Router from 'vue-router' import Resource from'vue-resource' import { sync } from 'vuex-router-sync' Vue.use(Router) Vue.use(Resource) // components import App from './components/App.vue' import Login from './components/Login/Login.vue' import Dashboard from './components/Dashboard/Dashboa...
JavaScript
app/index.js
vianvio/babyMoveCounter
mit
1,081
56
codeparrot/github-code
ff4fc16dd028d34382df8b0259dfeae1f10819730e1656d9767b98e821c2ff23
/* * 2015/11/22 * Tony Guo * R04458006 * * HW4 * */ #ifndef _COMPRESSION_ #define _COMPRESSION_ #include <iostream> #include <fstream> #include <sstream> #include <algorithm> #include <string> #include <vector> #include <bitset> #include <map> #include <cmath> #include <memory> enum{ FULL = 0, FAST ...
C
hw4/compression.h
GCY/2015-NTU-Video-Coding-
mit
3,368
120
codeparrot/github-code
23c68ecf85bce714e846d9207ea77ce7538519977cfc97869396de85f712d514
using System.Collections.Generic; using System.Net; using Newtonsoft.Json; using Sequencing.WeatherApp.Models; namespace Sequencing.WeatherApp.Controllers.WeatherUnderground { /// <summary> /// LocationVerifier performs check whether user provided location string will be compatible with WeatherUnderground ser...
C#
Web/WeatherApp/Controllers/WeatherUnderground/LocationVerifier.cs
SequencingDOTcom/Weather-My-Way-RTP-App
mit
1,179
39
codeparrot/github-code
27552d74262819ed651648bf6a2816d217b92b41f60a5fbb77917169f0607d89
#!/usr/bin/env python import getopt import json import locale import os import re import sys from urllib import request, parse import platform import threading from .version import __version__ from .util import log, sogou_proxy_server, get_filename, unescape_html dry_run = False force = False player = None sogou_pro...
Python
src/you_get/common.py
kzganesan/you-get
mit
30,127
927
codeparrot/github-code
b26e6c319ccf5ee0cf90c6d70f6cf7c6b6f72e0a6d1ace2bba235faba56cbac3
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* Latitude/longitude spherical geodesy formulae & scripts (c) Chris Veness 2002-2015 */ /* - www.movable-type.co.uk/scripts/latlong.html MIT Licence */ /* - - - - - - - ...
JavaScript
src/js/latlon-spherical.js
jdpearce/snowthorn-flightvisualiser
mit
17,076
437
codeparrot/github-code
077f171c8b33d6bc53372192cf7ccbb7b7856e93da45424bdd84b0de3df32e88
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>search-trees: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.mi...
HTML
clean/Linux-x86_64-4.06.1-2.0.5/released/8.7.1+2/search-trees/8.8.0.html
coq-bench/coq-bench.github.io
mit
6,871
165
codeparrot/github-code
1a3650ba5d58e9ce55e046fd3ba9fa8b23405a76800b70b73edc61ee9bf30556
// Copyright (C) 2002-2011 Nikolaus Gebhardt // This file is part of the "Irrlicht Engine". // For conditions of distribution and use, see copyright notice in irrlicht.h #ifndef __I_OS_OPERATOR_H_INCLUDED__ #define __I_OS_OPERATOR_H_INCLUDED__ #include "IReferenceCounted.h" #include "irrString.h" namespace irr { //...
C
02_Library/Include/XMIrrlicht/IOSOperator.h
mcodegeeks/OpenKODE-Framework
mit
1,625
51
codeparrot/github-code
31cab2cb28508a29c3730a3185e6149796c80b341f57cb245443416b658cbbb3
/** * Dependencies * @type {exports} */ var fs = require('fs') , q = require('q') , _ = require('underscore') , path = require('path') , natural = require('natural') , nounInflector = new natural.NounInflector() , argv = require('optimist').argv , path = require('path') , generator = require('./model...
JavaScript
tools/json-schema-generator/index.js
bpanahij/restgoose
mit
1,586
72
codeparrot/github-code
130af12acd4df0abe5dd0e037bec86f85a4c789e534e3b9853150efb29bee3a3
'use strict' const path = require('path') const Generator = require('yeoman-generator') const chalk = require('chalk') const _ = require('lodash') _.templateSettings.interpolate = /<%=([\s\S]+?)%>/g module.exports = Generator.extend({ initializing: function () { this.props = {} }, paths: function () { t...
JavaScript
generators/update/index.js
iVantage/generator-ivh-react-component
mit
2,829
108
codeparrot/github-code
1a5b65415cdaa4922f153f4c37be2e07841ba5c0e3eb1575fe19e8d13f32ee84
package org.multibit.hd.ui.fest.use_cases.sidebar.tools.verify_network; import org.fest.swing.fixture.FrameFixture; import org.multibit.hd.ui.fest.use_cases.AbstractFestUseCase; import org.multibit.hd.ui.languages.MessageKey; import java.util.Map; /** * <p>Use case to provide the following to FEST testing:</p> * <...
Java
mbhd-swing/src/test/java/org/multibit/hd/ui/fest/use_cases/sidebar/tools/verify_network/ShowThenFinishVerifyNetworkUseCase.java
oscarguindzberg/multibit-hd
mit
1,328
54
codeparrot/github-code
b30bc7c687182915c06f2826f73b4dbb5e7e0d2fcf69799ffd6972e401c5c52f
<?php /* * This file is part of the HWIOAuthBundle package. * * (c) Hardware.Info <opensource@hardware.info> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace HWI\Bundle\OAuthBundle\OAuth\ResourceOwner; use HWI\Bundle\OA...
PHP
OAuth/ResourceOwner/OdnoklassnikiResourceOwner.php
dmatora/HWIOAuthBundle
mit
3,105
101
codeparrot/github-code
ec63e2eac220074031886a4ea7dd7e82a8fa1951b46b18a6a67ad0de08c5e5a3
'use strict' /* libraries */ var Sequelize = require('sequelize') /* own code */ var Attribute = require('./attribute') /** * Parse DEM entity and create Sequelize definition for the table itself. * @constructor */ function Entity() { this._parserAttr = new Attribute() } /** * Input JSON (DEM entity): { "i...
JavaScript
src/inc/generate/model/entity.js
flancer32/dbear
mit
1,327
55
codeparrot/github-code
cd08277bd3816b6824ee8ac33559a93d768ca2cccd1136fdaa9373675f328ff7
//https://code.google.com/p/nya-engine/ #pragma once //write_to_buf return used size or 0 if failed //to_data size should be allocated with enough size #include <vector> #include <string> #include <stddef.h> #include "math/vector.h" #include "math/quaternion.h" namespace nya_formats { struct nms {...
C
formats/nms.h
weimingtom/nya-engine
mit
5,487
238
codeparrot/github-code
a1e1b454185d4cf0e438cc82dd3772d604c55b481c71faeea6f3c787f4acd416
package org.csap.agent.model ; import java.lang.management.ManagementFactory ; import java.text.DecimalFormat ; import java.text.Format ; import java.text.SimpleDateFormat ; import java.util.ArrayList ; import java.util.Arrays ; import java.util.Date ; import java.util.Iterator ; import java.util.List ; import java.ut...
Java
csap-core-service/src/main/java/org/csap/agent/model/HealthManager.java
csap-platform/csap-core
mit
55,080
1,863
codeparrot/github-code
0fb5e29065f3846188181e111e0a33c456b0c6140cfd406a3571a7fc1d066bea
package dexcom import ( "log" "time" ) // ReadHistory returns records since the specified time. func (cgm *CGM) ReadHistory(pageType PageType, since time.Time) Records { first, last := cgm.ReadPageRange(pageType) if cgm.Error() != nil { return nil } var results Records proc := func(r Record) error { t := r...
GO
history.go
ecc1/dexcom
mit
1,774
82
codeparrot/github-code
59ddb4ee23934775698445fcc54160c4580d753966454b28748f3ba4d1cc5045
/** * Copyright 2016-present Tuan Le. * * Licensed under the MIT License. * You may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://opensource.org/licenses/mit-license.html * * Unless required by applicable law or agreed to in writing, software * d...
JavaScript
src/components/texts/subtitle-text.js
tuantle/hypertoxin
mit
15,513
420
codeparrot/github-code
2106b4f5ae3535431d25bb43805aba82c3ae927cc95b54c6b7388038d65e4c36
const pageIcon = require('./../lib/index'); const helpers = require('./helpers'); const fs = require('fs'); const chai = require('chai'); const path = require('path'); const url = require('url'); const expect = chai.expect; const {isIconValid, saveToFile} = helpers; const SITE_URLS = [ 'https://www.facebook.com/'...
JavaScript
test/test.js
jiahaog/page-icon
mit
2,773
96
codeparrot/github-code
14f2d9fc0e823d680f206022a46a09e716c393a223d15c0c6f8a838c5138ffc7
var async = require('async'), awsSDK = require('aws-sdk'), uuid = require('node-uuid'); function client() { return new awsSDK.DynamoDB().client; } function putItem(done) { var item = { TableName: "test.performance.ssl", Item: { id: { S: uuid.v1() } } }; client().putItem(it...
JavaScript
dynamodb/ssl-test.js
B2MSolutions/performance-tests
mit
1,308
64
codeparrot/github-code
2c3b25ea4021d13bc597a6bae213470108badc0f06b17e512e0c0b69ac858f10
/*---------------------------------------------------------------------------/ / FatFs Functional Configurations /---------------------------------------------------------------------------*/ #define FFCONF_DEF 86604 /* Revision ID */ /*---------------------------------------------------------------------------/ / F...
C
libraries/FatFs/inc/ffconf.h
uw-midsun/firmware
mit
11,505
289
codeparrot/github-code
4c92dc19ee94a60f4ba71c7b530b33e0dbac406c4d06af56148b5a4388c243a9
'use strict' require('should') const DummyTransport = require('chix-transport/dummy') const ProcessManager = require('chix-flow/src/process/manager') const RuntimeHandler = require('../lib/handler/runtime') const pkg = require('../package') const schemas = require('../schemas') // TODO: this just loads the definitio...
JavaScript
packages/chix-runtime/test/runtime.js
psichi/chix
mit
1,249
49
codeparrot/github-code
6f4d7a5bf11a0bad8ad2da05231b5bcf9a0002dd245c529196647140e063e0bc
import math import scipy.optimize as opt log = math.log exp = math.exp small = 1e-20 # unitless T0 = 1 # K Tcrit = 650 # K zero_C = 273.15 # K p0 = 1 # Pa atm = 101325 # Pa bar = 100000 ...
Python
src/thermo.py
estansifer/mape
mit
10,645
334
codeparrot/github-code
2ca93f77d8a9e75b8467951a1003a689abef61b382dd31dbed9a321d83fffc7d
using Crossroads.Data; using Crossroads.Web.Infrastructure.Caching; using System.Collections.Generic; using System.Linq; using System.Web.Mvc; namespace Crossroads.Web.Infrastructure.Populators { public class DropDownListPopulator : IDropDownListPopulator { private ICrossroadsData data; privat...
C#
SourceDbFirst/Crossroads/Crossroads.Web/Infrastructure/Populators/DropDownListPopulator.cs
nevena-angelova/Crossroads
mit
3,343
111
codeparrot/github-code
dcbb5382e77281d87d03ac2e265b085abdca347eb46526bbb818d9d2af883962
/*! PhotoSwipe Default UI - 4.1.2 - 2017-04-05 * http://photoswipe.com * Copyright (c) 2017 Dmitry Semenov; */ /** * * UI on top of main sliding area (caption, arrows, close button, etc.). * Built just using public methods/properties of PhotoSwipe. * */ (function (root, factory) { if (typeof define === 'function' &&...
JavaScript
js/photoswipe-ui-default.js
stuti1995/stuti1995.github.io
mit
21,634
862
codeparrot/github-code
40c52eb67fa0bb31015773f294b4465e0fc6e2a005fa16895883fb58843c8b3a
/** * Clase que permite trabajar con la plantilla del profesor. * * @param {String} id ID de la etiqueta HTML asociada. * @param {Boolean revisor ¿Sólo se buscarán revisores? * @returns {Profesor} */ function Profesor(id, revisor) { /** * Establece la etiqueta HTML asociada a esta plantil...
JavaScript
aplicacion/publico/js/campoFormulario/profesor.js
RompePC/gconves
mit
4,234
120
codeparrot/github-code
a87de70414eef5bbd00aeba471584168909fb06a8f02bd941794f11e4e05794d
# coding:ascii """ Example usage of DbC (design by contract) In this example we show you how to use pre- and post-condition checkers decorating the same function. """ import os import sys sys.path.insert(0, os.path.abspath('..')) import DbC DbC.ASSERTION_LEVEL = DbC.ASSERTION_ALL # in this example we bring `pre` an...
Python
examples/DbC_methods_with_both_pre_and_post.py
JazzyServices/jazzy
mit
1,944
71
codeparrot/github-code
731cded22b1d406a079e41164ad5f303e213eae057979119f84e32da19cf8586
// // Thread.cpp for Thread in /home/alexmog/projets/LibNet/src // // Made by Moghrabi Alexandre // Login <alexandre.moghrabi@epitech.eu> // // Started on Tue Nov 11 17:37:30 2014 Moghrabi Alexandre // Last update Sat Dec 6 06:17:23 2014 Moghrabi Alexandre // #include "mognetwork/OS.hh" #ifndef OS_WINDOWS #inc...
C++
src/UnixThread.cpp
AlexMog/LibNet
mit
1,704
66
codeparrot/github-code
a941090a80651290eea939818e2beed7c06f5eebff939ef11e74379bebe93fb0
package datastruct import ( "strings" "github.com/xyproto/algernon/lua/convert" "github.com/xyproto/gopher-lua" "github.com/xyproto/pinterface" ) // Identifier for the Hash class in Lua const lHashClass = "HASH" // Get the first argument, "self", and cast it from userdata to a hash map. func checkHash(L *lua.LS...
GO
lua/datastruct/hashmap.go
xyproto/algernon
mit
6,428
229
codeparrot/github-code
86a3adef18df001936d7b33ebed1f217a02d36d76cf6516ae95a34767a87d334
const c = require('ansi-colors') const glob = require('glob') const path = require('path') const terserVersion = require('terser/package.json').version const TerserWebpackPlugin = require('terser-webpack-plugin') const webpack = require('webpack') const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAn...
JavaScript
bundle-size/bundle.js
Semantic-Org/Semantic-UI-React
mit
2,992
139
codeparrot/github-code
1bc971932405825418860e89671f523def2ebdaedd8500b4fb7293377f65e66b
/* Copyright (c) 2013 Pauli Nieminen <suokkos@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, p...
C
globalmousearea.h
suokko/BridgeClock
mit
3,013
86
codeparrot/github-code
7acf8812b070f425f97b2128dc898677517c10732dcb30ed542edbcc2938e737
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
TypeScript
src/vs/base/parts/storage/node/storage.ts
microsoft/vscode
mit
15,175
454
codeparrot/github-code
760730f05b977150d413091589bc25787f1955a679ce9f7ba974fc8955c287cd
import { Component, OnInit } from '@angular/core'; import { IF_result } from '../shared/index'; import { ResourceService } from '../shared/api/resource.service'; /** * 环境声明 * @type {any} */ declare var $:any; /** * interface - 资源单 */ interface IF_resources { isLoader : boolean; isLast : boolean; page : num...
TypeScript
src/client/app/resources/resources.component.ts
deanQj/angular2-seed-bric
mit
6,219
275
codeparrot/github-code
5c3a5c0d3f75d6e70d68af9b1c2e8ac7c292e2ce2880d58006e9724616b4c7b6
using ICSharpCode.AvalonEdit; using ICSharpCode.AvalonEdit.CodeCompletion; using ICSharpCode.AvalonEdit.Document; using ICSharpCode.AvalonEdit.Editing; using ICSharpCode.AvalonEdit.Highlighting; using ICSharpCode.AvalonEdit.Rendering; using Monkeyspeak.Editor.Interfaces; using Monkeyspeak.Editor.Notifications; using M...
C#
Monkeyspeak Editor/Syntax/TriggerCompletionData.cs
captkirk88/monkeyspeak
mit
8,558
233
codeparrot/github-code
b8cd47497f8388946b1e2681473414aefbf1e209b8f61b2a8f45ce13fe443bcf
LearnosityAmd.define([ 'jquery-v1.10.2', 'underscore-v1.5.2', 'vendor/mathcore' ], function ($, _, mathcore) { 'use strict'; var padding = 10, defaults = { "is_math": true, "response_id": "custom-mathcore-response-<?php echo $session_id; ?>", "type": "cus...
JavaScript
www/casestudies/customquestions/custom_mathcore.js
danielyoun82/bootcamp2017
mit
3,034
103
codeparrot/github-code
c6a815d184f5baa11897538dc200ccce4cbaab603334e13c379149689643807b
<?php /* WebProfilerBundle:Profiler:results.html.twig */ class __TwigTemplate_94a439e003138b4a542857f514ded83e extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->blocks = array( 'panel' => array($this, 'block_panel'), ...
PHP
app/cache/dev/twig/94/a4/39e003138b4a542857f514ded83e.php
voicon/Symblog
mit
3,576
102
codeparrot/github-code
7ec95f2eb30da5aa535fb4ed9c642c4f5778a9dab1683e8fd074a5d2a44c9ed6
<!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"> <meta name="description" content=""> <meta name="author" content=""> <link rel="shortcut icon" href="<?php e...
PHP
application/views/Home.php
rintumr/Project
mit
8,048
223
codeparrot/github-code
7705002b8ba5f48ae9c3e4e216a6e2b666c27c364f7b858477a8c3374de00e2a
#include "signverifymessagedialog.h" #include "ui_signverifymessagedialog.h" #include "addressbookpage.h" #include "base58.h" #include "guiutil.h" #include "init.h" #include "main.h" #include "optionsmodel.h" #include "walletmodel.h" #include "wallet.h" #include <string> #include <vector> #include <QClipboard> Sign...
C++
src/qt/signverifymessagedialog.cpp
trankienhuy/mecoin
mit
8,784
275
codeparrot/github-code
5b5129259fbb80e56f59267812729afba3824688b7460dc84dc970dcf1483518
namespace Diadoc.Api.DataXml { /// <remarks/> [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class OtherIssuer { private string po...
C#
src/DataXml/CommonXmlNodes.cs
halex2005/diadocsdk-csharp
mit
20,194
705
codeparrot/github-code
6397014c1e7f06b651530dc7884699026c32f5c8c02df51f4e9d14b433b24a52
/* eslint-disable no-cond-assign, no-param-reassign */ import voidElements from "void-elements"; function isVoidElement(tag) { const tagName = tag.match(/<([^\s>]+)/); return Boolean(tagName) && voidElements[tagName[1].toLowerCase()] === true; } export default { strip(str) { return str.replace(/(<([^>]+)>)/...
JavaScript
src/html.js
Zhouzi/TheaterJS
mit
1,251
57
codeparrot/github-code
9b3105ff119b388b5aaa30cf60f5ddd448d9a2bc6f5185402327b71ecb301f00
module Naturally # An entity which can be compared to other like elements for # sorting. It's an object representing # a value which implements the {Comparable} interface. class Segment include Comparable def initialize(v) @val = v end def <=>(other) to_array <=> other.to_array ...
Ruby
lib/naturally/segment.rb
Skalar/naturally
mit
1,098
42
codeparrot/github-code
5f6a857387fd4e4e587357c339da27ff859edc75b4fc9c349ef7a0aa83a1d2d2
var superagent = require('superagent') var env = process.env /** * put_doc * initialize with the couchdb to save to * * expects that the url, port, username, password are in environment * variables. If not, add these to the options object. * * var cuser = env.COUCHDB_USER ; * var cpass = env.COUCHDB_PASS ; ...
JavaScript
lib/put_doc.js
jmarca/couchdb_put_doc
mit
3,419
116
codeparrot/github-code
cb8b7d205818d903548e94a46d9dcc77d277cc684e6fa4c4d77d87e77b6d86b8
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <title>イノベーション エンジニアブログ</title> <meta name="HandheldFriendly" content="True"> <meta name="MobileOptimized" content="320"> <meta name="apple-mobile-web-app-capable" content="yes"> ...
HTML
tag/E-C-M-A-Script2015/index.html
innovation-jp/innovation-jp.github.io
mit
11,365
272
codeparrot/github-code
c1b8961db34c485996083ac3ca2b64dc651793d37ff4a8f8391cdf2618e721ba
require 'active_support/notifications' module SystemMetrics class NestedEvent < ActiveSupport::Notifications::Event attr_reader :action, :category def self.arrange(events, options={}) events.sort! { |a, b| a.end <=> b.end } unless options[:presort] == false while event = events.shift if...
Ruby
lib/system_metrics/nested_event.rb
kunklejr/system-metrics
mit
1,388
65
codeparrot/github-code
a8120f0436b60f6b86faef5e789783a8cddc65329d5990871205ab9081462147
using System.Collections.Generic; using Pathoschild.Stardew.Common.Utilities; namespace ContentPatcher.Framework.Tokens.ValueProviders { /// <summary>A value provider whose values are set manually in code.</summary> internal class ManualValueProvider : BaseValueProvider { /********* ** Fiel...
C#
ContentPatcher/Framework/Tokens/ValueProviders/ManualValueProvider.cs
Pathoschild/StardewMods
mit
3,967
109
codeparrot/github-code
d43ce252492061fe4d0f56aff5050f6c6f0311395a69a4851100c6163a764547
import { BreezeEnum} from './enum'; /** EntityAction is an 'Enum' containing all of the valid actions that can occur to an 'Entity'. */ export class EntityAction extends BreezeEnum { /** Entity was attached via an AttachEntity call. */ static Attach = new EntityAction( { _isAttach: true }); /** Entity was...
TypeScript
src/entity-action.ts
breeze-sandbox/breeze-next
mit
2,249
64
codeparrot/github-code
17c2930ac1cee518de36e8204847f4b32a2f723ba1c66ffbfa923a85a1f37691
(function() { // Creating application var app = {}; var parseData = function(data) { var result = {}; // TODO: Get better performance here var years = _.groupBy(data, 'year'); for (var key in years) { result[key] = _.groupBy(years[key], 'cartodb_id'); } return result; }; var M...
JavaScript
src/world-svg-layers/main.js
Vizzuality/sandbox
mit
5,201
200
codeparrot/github-code
dcbbb4d5530bf21bc4ff012184e33044a1fa94d5da39cd52dc38a987ffdd5d9f
require "vsafe/config" require "vsafe/charge_source" require "vsafe/response" require "vsafe/responses/get_session_tags" require "vsafe/responses/charge_authorize" require "vsafe/responses/charge_confirm" require "vsafe/responses/reverse_payment" require "vsafe/responses/charge_account_to_temporary_token" require "vsaf...
Ruby
lib/vsafe/client.rb
listia/vsafe-ruby
mit
2,745
95
codeparrot/github-code
658b6d8e6b62c00b3c94bf0ab48c70c73281ce3bbb5f07bd038ee070dc85f4e9
/* * Copyright 2017 Rowun Giles - http://github.com/rowungiles */ #ifndef helpers #define helpers #include <string> #include <vector> namespace HeckelDiffHelpers { static auto components_seperated_by_delimiter(const std::string string, const char delimiter) { uint32_t i = 0; std::string tmp;...
C++
src/include/helpers.hpp
rowungiles/heckel_diff
mit
717
39
codeparrot/github-code
a7babce9140af0a07b84c8317120acaf4271b916c975f26720822d91ac053d41
using System; using System.Globalization; using System.Text; using System.Text.RegularExpressions; using System.Windows; using System.Windows.Media; using System.Xml; using System.Xml.Schema; using SharpLib.Texter.Utils; namespace SharpLib.Texter.Highlighting.Xshd { internal sealed class V1Loader { #...
C#
Source/SharpLib.Texter/Source/Highlighting/Xshd/V1Loader.cs
kav-it/SharpLib
mit
15,087
411
codeparrot/github-code
ec72328bbe6c733a1f9edab35c2f7bd1b6ff98f628c956f4bd21d3dcd6b6dc03
<# MIT License Copyright (c) 2017 fvanroie Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, ...
PowerShell
Public/Legacy/Reset-OPNsenseConfig.ps1
fvanroie/PS_OPNsense
mit
5,026
125
codeparrot/github-code
71750a2d1ab13970fb0434a2159f7262b34a35ef5fbf60136d39ce6f46d1000b
echo off set RHAP_JARS_DIR=C:/ProgramData/IBM/Rational/Rhapsody/8.1.1/Share\LangJava\lib set FRAMEWORK_NONE_JARS=C:/ProgramData/IBM/Rational/Rhapsody/8.1.1/Share\LangJava\lib\oxf.jar;C:/ProgramData/IBM/Rational/Rhapsody/8.1.1/Share\LangJava\lib\anim.jar;C:/ProgramData/IBM/Rational/Rhapsody/8.1.1/Share\LangJava\lib\ani...
Batchfile
code_rhapsody/Attentat/DefaultComponent/DefaultConfig/DefaultComponent.bat
Etiene/nuitdelinfo
mit
5,771
110
codeparrot/github-code