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
46f2ecb3f51e3c05ab35fdb2f9b0577cf76a9821f6bf1ca251614ee01ddcb6f4
using System; using System.Collections.Concurrent; using System.Linq; using System.Threading.Tasks; using Discord; using Discord.WebSocket; using NadekoBot.Common.ModuleBehaviors; using NadekoBot.Modules.Games.Common; using NadekoBot.Core.Services; using NadekoBot.Core.Services.Impl; using NLog; using NadekoBot.Core.S...
C#
NadekoBot.Core/Modules/Games/Services/PollService.cs
gfrewqpoiu/NadekoBot
mit
4,168
133
codeparrot/github-code
9083bae18478815d8bb641cb92912ed3c8fe4330e72798b81df13ec9a17f87e3
#!/usr/bin/env python3.6 import os, argparse, subprocess, tempfile, shutil, exifread, re from datetime import datetime def main(): parser = argparse.ArgumentParser() parser.add_argument("project") args = parser.parse_args() home = os.path.join(os.path.expanduser("~"), "Videos", "Mine", "WIP") des...
Python
video_production/stitch-timelapse.py
samhutchins/tools
mit
2,855
103
codeparrot/github-code
1ff775bfcdd4ee86ebbe58fc2a34a0cab512abd54ef3c4a4df6e006dc4b1ab9b
package XmlUtils; import org.w3c.dom.Document; import org.w3c.dom.Element; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import javax.xml.transform.Transformer; import javax.xml.transform.TransformerException; import j...
Java
Java/mavenTestProject/src/main/java/XmlUtils/StationeryGenerator.java
Shpilevskiy/Lab_works
mit
4,593
123
codeparrot/github-code
1ac04fcabdb80bb55fa454caf442d8f0a4f82c0160a80329571dc0af15df4ad2
# frozen_string_literal: true # test_via: ../backtrace.rb module GraphQL class Backtrace # A class for turning a context into a human-readable table or array class Table MIN_COL_WIDTH = 4 MAX_COL_WIDTH = 100 HEADERS = [ "Loc", "Field", "Object", "Arguments", ...
Ruby
lib/graphql/backtrace/table.rb
xuorig/graphql-ruby
mit
3,479
121
codeparrot/github-code
78b3241219140ed043d55bfb7b0351501ffdf07f46444525ebe7219c24529426
#!/usr/bin/env python import sys, logging, getpass, subprocess, os, json # List of Heroku App ids to update _heroku_app_ids = None _HEROKU_APP_IDS_ENV_KEY = "HEROKU_APP_IDS" def get_heroku_app_ids(): global _heroku_app_ids # Lazy load if _heroku_app_ids is None: env = os.environ.get(_HEROKU_APP_ID...
Python
hooks/heroku-auto-ssl/hook.py
AdmitHub/heroku-auto-ssl
mit
8,401
238
codeparrot/github-code
b09e12870831fcf8c9a192d6ac3c344bd1ffc9d1dfdf7c61796825c87b5f4645
using System.Collections.ObjectModel; using MagicLockScreen_Helper; using MagicLockScreen_Helper.Models; using MagicLockScreen_Service_NationalGeographicService.Resources; using MagicLockScreen_Service_NationalGeographicService.UI.Views; using NoteOne_Core; using NoteOne_Core.Command; using NoteOne_Core.Common; using ...
C#
src/MagicLockScreen.Service.NationalGeographicService/Models/NationalGeographicServiceChannelModel.cs
Jarrey/MagicLockScreen
mit
2,495
67
codeparrot/github-code
bd76c5c37e7e2602ae27a30c085c5568993286c7b035616ee377600e30c84526
/********************************************************************** File : Utility.cpp Project : Bach Betatron Library Purpose : Source file for the Betatron utility library. Revisions: Original definition by Lawrence Gunn. 2012/02/10 Added to Bach Betatron library by Lawrence Gu...
C++
Study/Betatron/Src/Common/Utility.cpp
NexusLogica/Bach
mit
5,276
169
codeparrot/github-code
14e98a554e54f47432d303329ef1d09d3de67e32d5b4edcbfb1d3ebb9e47835d
import { Component, OnInit, OnDestroy } from '@angular/core'; import { Router } from '@angular/router'; import { EmitterService } from '../service/emitter.service'; @Component({ selector: 'app-home', templateUrl: 'app/home/home.component.html', styleUrls: ['app/home/home.compone...
TypeScript
app/home/home.component.ts
royalarjun001/lplanner
mit
1,324
43
codeparrot/github-code
2f13e6da7553e4692416ab20339674545b2402f7886a9dfb3e3bd272950cd802
import imageio import pylib as py # ============================================================================== # = param = # ============================================================================== py.arg('--save_path', default='pics/cele...
Python
make_gif.py
LynnHo/DCGAN-LSGAN-WGAN-WGAN-GP-Tensorflow
mit
1,392
39
codeparrot/github-code
1ea76e0d3e08402574eaeb1804a3dc7b933b762835d49cd05c7be609de0d40ff
// Copyright (c) 2016-2017 Vadim Macagon // MIT License, see LICENSE file for full terms. import * as mobx from 'mobx'; import { ComponentModel } from './component-model'; import { WidgetPath } from '../../display-server'; export class ToolbarModel extends ComponentModel { @mobx.observable items: Array<ComponentM...
TypeScript
app/src/renderer/components/toolbar-model.ts
debugworkbench/hydragon
mit
947
40
codeparrot/github-code
b17f6eca8709a442cd51b3b4e54b771167c9f7880c1f355eaa96689a14c217fc
<?php namespace Initially\Rpc\Protocol; use Initially\Rpc\Protocol\ClientInvoker; use Initially\Rpc\Protocol\ServerInvoker; class Protocol { /** * @param object $target * @return ServerInvoker */ public function export($target) { $invoker = new ServerInvoker($target); retur...
PHP
src/Initially/Rpc/Protocol/Protocol.php
chenwenzhang/initially-rpc
mit
543
30
codeparrot/github-code
c6d53de9b388e378d8d996bd3a3608e86eeca61dd0a02dfb9956c0b80968a3de
// Eloquent JavaScript // Run this file in your terminal using `node my_solution.js`. Make sure it works before moving on! // Program Structure // Write your own variable and do something to it. var wuddup = 1; wuddup = wuddup +1; // Complete one of the exercises: Looping a Triangle, FizzBuzz, or Chess Board var t...
JavaScript
week-7/eloquent.js
scottychou/phase-0
mit
735
36
codeparrot/github-code
61fdbc1b27e447ce1481346f638643e8663ec1c3b9fb5d5451cf13147ce59c95
export function lazyload(x) { let onscroll =throttle(function() { let imgs = document.querySelectorAll('img'); let i = Array.prototype.filter.call(imgs,(ele)=>{ return ele.className == "lazyload"; }) i.forEach((element) => { if(count(element)){ ...
JavaScript
script/lazyload.js
CodeYHJ/music
mit
1,223
42
codeparrot/github-code
d6e9c4df6d5e7b164172bf5b3e43456fdde906bce27dc96fe471949febd7de26
using System; using System.Runtime; using System.Threading; namespace Anne.Foundation { public class NoGcBlock : IDisposable { private static int _depth; public NoGcBlock() { try { GC.TryStartNoGCRegion(32 * 1024 * 1024); } ...
C#
Anne.Foundation/NoGcBlock.cs
YoshihiroIto/Anne
mit
668
32
codeparrot/github-code
db005d30ed7937bc7310d5616b21c71313da41845babe62fbb5ac6c855695700
--- layout: post title: "PRESS RELEASE: Mayor's LCIF Fund invests in Stockflare" date: 2015-08-04 08:01:03 categories: blog author: Shane Leonard image: http://i.imgur.com/UBfeslw.gif --- # Press release – for immediate publication ## Stockflare is the first FinTech startup to gain an investment pledge from the Lo...
Markdown
_posts/2015-08-04-fintech-mayors.markdown
Stockflare/blog
mit
4,839
43
codeparrot/github-code
fbe91d8a52eb78fa6d8c136686f590c1c859790be1b14a6bf64c61f1d19b49e3
package protocol import ( "bytes" "encoding/binary" "errors" "io" ) var ( errBufTooLong = errors.New("treedb/protocol.HandshakeRequest: buf too long") errTooManyVersions = errors.New("treedb/protocol.HandshakeRequest: too many versions") ) type HandshakeRequest struct { Versions []uint32 } type Handshak...
GO
protocol/handshake.go
kezhuw/treedb
mit
1,295
65
codeparrot/github-code
fd94b420f3ea8983fd23b8b4c8f5138627b4c4d1e5341b5161cdbfd17803a7a8
# -*- coding: utf-8 -*- """ Optimization algorithms for OT """ # Author: Remi Flamary <remi.flamary@unice.fr> # Titouan Vayer <titouan.vayer@irisa.fr> # # License: MIT License import numpy as np from scipy.optimize.linesearch import scalar_search_armijo from .lp import emd from .bregman import sinkhorn # The...
Python
ot/optim.py
rflamary/POT
mit
12,805
443
codeparrot/github-code
9cf5c0058df79594d85995fea0f85c7aa30abb23776f1670dda2872c6de2c921
const generators = require('yeoman-generator'); module.exports = generators.Base.extend({ constructor: function() { generators.Base.apply(this, arguments); }, prompting: function() { var prompts = [ { type: 'input', name: 'projectName', message: 'Your project name', ...
JavaScript
generators/app/index.js
zhaozhiming/generator-modation
mit
2,701
108
codeparrot/github-code
2b09816fe67304968fac5280438cd045092eb9f1ff6dff533a33d1108ef3f92c
#pragma once #include "taichi/lang_util.h" #include "taichi/util/line_appender.h" #include "taichi/ir/snode.h" TLANG_NAMESPACE_BEGIN class CCProgramImpl; namespace cccp { class CCLayout; class CCLayoutGen { // Generate corresponding C Source Code for Taichi Structures public: CCLayoutGen(CCProgramImpl *cc_prog...
C
taichi/backends/cc/struct_cc.h
yuanming-hu/taichi
mit
844
40
codeparrot/github-code
ab43f8409d3f16c27bb1e151ae562491acb56a07893bb6ec72a34baae1c15615
package DocsExamples.Programming_with_documents.Working_with_document; import DocsExamples.DocsExamplesBase; import com.aspose.words.*; import org.testng.annotations.Test; import java.text.MessageFormat; @Test public class WorkingWithWebExtension extends DocsExamplesBase { @Test public void usingWebExtension...
Java
Examples/DocsExamples/Java/src/main/java/DocsExamples/Programming_with_documents/Working_with_document/WorkingWithWebExtension.java
aspose-words/Aspose.Words-for-Java
mit
2,026
49
codeparrot/github-code
525cd702a1fd82de9cac4d34b75078db0e0ca5b264194198c573d6f3c42394c2
const expect = require("chai").expect; const it = require("mocha").it; const describe = require("mocha").describe; const forePath = process.argv.length === 4 ? process.argv[3] : "src/forejs"; console.log("Testing file: '" + forePath + "'"); const fore = require(require("path").join("../", forePath)); function delay(r...
JavaScript
test/forejs-test.js
Hackbrett3X/forejs
mit
27,472
1,117
codeparrot/github-code
105fbbf9db9e38aad66f0599131be375d41c70b31a57d318c1b02f0e2ed92624
import { Component } from '@angular/core'; import {Router} from '@angular/router'; import {Hero} from './hero'; import { HeroService } from './hero.service'; import { OnInit } from '@angular/core'; @Component({ moduleId: module.id, selector: 'my-heroes', templateUrl: 'heroes.component.html', styleUr...
TypeScript
app/heroes.component.ts
kingr/angular2-weather-app
mit
1,312
65
codeparrot/github-code
ae20f2e67bcfcdfb7075c5d3a2b0232812a37d19eb346c55daf9031ee8606a74
#include<cstdio> #include<cstring> #include<cstdlib> #include<cctype> #include<cmath> #include<iostream> #include<algorithm> #include<vector> #include<set> #include<map> #include<queue> #include<stack> #include<cassert> typedef long long ll; typedef unsigned long long ull; using namespace std; const int MAXN=1E6+10;...
C++
BZOJ/2792.cpp
Zhang-RQ/OI_DataBase
mit
1,215
70
codeparrot/github-code
9cb0c30efcdf64bcb0499a786d9e7a74bc07d1cdacc3e2aa1cbf3bdf0845a326
<?php /* EcommerceBundle:Default:panier/layout/validation.html.twig */ class __TwigTemplate_23b94b5c69ab531af69646c74887e6d2ec8fa562e5a13b92077383e34f87473e extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); // line 1 $this->parent =...
PHP
var/cache/dev/twig/4c/4ca71b45bd2240acbaaa0a98248ec6b066f4fc19e43b116724b6012d20cdc6aa.php
owalid/Ecommerce
mit
21,551
395
codeparrot/github-code
0db5c531202f7b6fd419ea26b1adb2199c77d653f51565e8b595b2b006407b53
<?php /** * This file is part of the TEKKL core package * * (c) Alexander Bachmann <email.bachmann@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tekkl\Bundle\AccountBundle\Controller; use FOS\RestBundle\Co...
PHP
engine/Tekkl/Bundle/AccountBundle/Controller/SettingsController.php
Tekkl/tekkl-core
mit
2,567
84
codeparrot/github-code
0d9cf0ab800c8a0a688790e634e48bd022d1d5a1a5066534945683c6711778f9
/// <binding Clean='clean' /> var gulp = require("gulp"), rimraf = require("rimraf"), fs = require("fs"); eval("var project = " + fs.readFileSync("./project.json")); var paths = { bower: "./bower_components/", lib: "./" + project.webroot + "/lib/" }; gulp.task("clean", function (cb) { rimraf(paths....
JavaScript
bower-gulp-sample-1/gulpfile.js
nerdstrap/Stir-Trek-2015
mit
989
33
codeparrot/github-code
0de861bb989366eeadf6f45effa4ec6cd0db7b2533b803a62cc3a83731c77e7c
package com.example.helper.activity; import com.example.helper.activity.lifecycle.IActivityLifecycle; /** * * @author ufuchs * * @param <E> */ public class ActivityGuard<E> { //////////////////////////////////////////////////////////////////////////// // fields //////////////////////////////////////////////...
Java
src/com/example/helper/activity/ActivityGuard.java
z35/FK5.251-starter
mit
997
43
codeparrot/github-code
b81a724cbf1626d2dfe3a8fdf0a0cbd61bba656deac997b3bc38f2591a20ea94
var highland = require('highland'); var lodash = require('lodash'); var vinylFile = require('vinyl-file'); var path = require('path'); function createDependenciesChangedStream(opts, di) { var dest = opts.dest; var matcher = opts.matcher; var pathResolver = opts.pathResolver; var comparator = opts.comparator; ...
JavaScript
lib/deps_changed_stream.js
Kuniwak/gulp-dependencies-changed
mit
4,958
189
codeparrot/github-code
821279d869032a76037813f77534c313c2e8a525bba3c0f804ab4ec401f16531
package name.euleule.processing; import processing.core.PApplet; import processing.core.PVector; import java.util.Date; public class FunWithAgents extends PApplet { int MAX_ITERATIONS = 10000; int iterations = 0; // A4 // int WIDTH = 3508; // int HEIGHT = 2480; // A0 int WIDTH = 11858; ...
Java
src/name/euleule/processing/FunWithAgents.java
euleule/processing-sketches
mit
2,774
122
codeparrot/github-code
696b55246f0b2a18ebcf7e141063e6ae49e0c5272f307a34994a9a12e12f0ab2
package org.jsoup.integration; import org.jsoup.Connection; import org.jsoup.HttpStatusException; import org.jsoup.Jsoup; import org.jsoup.UnsupportedMimeTypeException; import org.jsoup.helper.StringUtil; import org.jsoup.helper.W3CDom; import org.jsoup.nodes.Document; import org.jsoup.nodes.FormElement; import org.js...
Java
src/test/java/org/jsoup/integration/UrlConnectTest.java
Enoro/jsoup
mit
22,239
543
codeparrot/github-code
620932a19de107d62540771083c85f57a07ecea32328a0cf76b5db322d8204ec
(function() { var configureRequest, request; request = require('request'); configureRequest = function(requestOptions, callback) { var userAgent, _base; requestOptions.proxy = false; requestOptions.strictSSL = false; userAgent = "VPNHT/" + (require('../package.json').version); if (requestOpt...
JavaScript
lib/request.js
VPNht/desktop-cli
mit
2,516
73
codeparrot/github-code
640f70da99d8692d0cdac5c509c9087d38c382ea64b069df8b0116474d6be202
// Copyright (c) 2017 Andrey Gayvoronsky <plandem@gmail.com> // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package ml import ( "encoding/xml" "github.com/plandem/ooxml/ml" "github.com/plandem/xlsx/internal/ml/primitives" ) //DirectStyleID is helper alias t...
GO
internal/ml/style_sheet.go
plandem/xlsx
mit
8,346
189
codeparrot/github-code
794e07fa0ec0a3ed37794585a89441b888c2f589dc5f525d426df51806771b68
package accesslog import ( "context" "fmt" "net" "net/http" "net/url" "os" "path/filepath" "sync" "sync/atomic" "time" "github.com/containous/flaeg/parse" "github.com/containous/traefik/old/log" "github.com/containous/traefik/old/types" "github.com/sirupsen/logrus" ) type key string const ( // DataTa...
GO
old/middlewares/accesslog/logger.go
aantono/traefik
mit
8,488
335
codeparrot/github-code
210e9d876d8b5d18ed3fe7abaa2b71efc542c1625f4f9f332c9e7cf6d7b7ab50
from __future__ import division import os import sys from copy import deepcopy from collections import Counter from nltk.tag import CRFTagger THIS_DIR = os.path.dirname(os.path.realpath(__file__)) sys.path.append(THIS_DIR + "/../..") from deep_disfluency.feature_extraction.feature_utils import\ load_data_from_dis...
Python
deep_disfluency/feature_extraction/POS_tagging.py
dsg-bielefeld/deep_disfluency
mit
9,003
233
codeparrot/github-code
cb20c0d627da5349c48d4dd83cb871bbf3386475feebe6fd4801c38462a898cb
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Core.Repositories.Offchain; using MongoDB.Bson; using MongoDB.Bson.Serialization.Attributes; using MongoDB.Driver; using MongoRepositories.Mongo; namespace MongoRepositories.Offchain { public ...
C#
src/MongoRepositories/Offchain/CommitmentBroadcastRepository.cs
LykkeCity/bitcoinservice
mit
3,301
85
codeparrot/github-code
797e61932b318a9123742c37d00ef7cbf6b88b2629cfbdfa81d43e7f90e4a91f
//#define TRACE_SERIALIZATION using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Net; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.Serialization; using System.Text; using Orleans.CodeGeneration; using Orleans....
C#
src/Orleans.Core/Serialization/BinaryTokenStreamReader.cs
ibondy/orleans
mit
41,657
995
codeparrot/github-code
429bc159e38d8265680dddc5b449ab80711ac87a897fdae0f7c9225e2ce2582b
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Octokit; namespace CreateOrUpdateGitHubFile { class Program { static void Main(string[] args) { Task.Run(async () => { var ghClient ...
C#
2017/CreateOrUpdateGitHubFile/CreateOrUpdateGitHubFile/Program.cs
Code-Inside/Samples
mit
1,627
47
codeparrot/github-code
310ebaabfd762c16e7751acca6c8282e061522042b414728988c7247ce9f103a
#include "recordingformats.hpp" #include <QBuffer> #include <QDateTime> #include <QDebug> #include <QDir> #include <QFile> #include <QStandardPaths> #include <QTimer> #include <formats.hpp> #include <notifications.hpp> #include <platformbackend.hpp> #include <settings.hpp> #include <time.h> #include <unistd.h> #inclu...
C++
recording/recordingformats.cpp
ArsenArsen/KShare
mit
3,036
102
codeparrot/github-code
782e45b86c3257458bfaa1f9de9db8f705b492f744ad35de868d3c02154015cd
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat...
JavaScript
app/assets/javascripts/application.js
tdg5/gearo_worship
mit
1,466
50
codeparrot/github-code
63b6999de13a1fa225a84212e5028f567be43ce3bed2885c7a67f823dcda3792
(function() { var app = angular.module('myApp'); app.controller('rerCtrl', ["$scope", "$http", "$interval", "myConfig", function ($scope, $http, $interval, $config) { var vm = this; vm.trains = []; function update() { if ($config.rer....
JavaScript
client/app/scripts/rer.js
nicoschmitt/pi-home-dashboard
mit
1,463
46
codeparrot/github-code
27cd7d782342cbd8cc188a5dd9be00a6278d2b7c54d5931b9fdc0cb638bbf8e7
@extends('admin.layouts.admin-master') @section('title') {{-- this page title --}} {!!(isset($title)) ? $title : 'Upload Image Page'!!} @stop @section('styles') <link href="https://cdnjs.cloudflare.com/ajax/libs/dropzone/4.2.0/dropzone.css" rel="stylesheet"> <link href="https://cdnjs.cloudflare.com/ajax/libs/...
PHP
src/resources/views/admin/articles/upload.blade.php
meccado/article-admin
mit
4,134
107
codeparrot/github-code
3d869b0764dd912af1e7700278d4b2ec63f03ce1728194fc5498ac4a189feb42
// Copyright (c) 2011-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "sendcoinsentry.h" #include "ui_sendcoinsentry.h" #include "guiutil.h" #include "bitcoinunits.h" #include "addressbo...
C++
src/qt/sendcoinsentry.cpp
Tutakamimearitomomei/Kongcoin
mit
4,616
186
codeparrot/github-code
792e3ab2bed3769e94d3b54a0d38dcd206478fe201cc32e13f3335ec32447255
const webpack = require('webpack'); const path = require('path'); const phaserModulePath = path.join(__dirname, '/node_modules/phaser-ce/'); const phaserPath = path.join(phaserModulePath, 'build/custom/phaser-split.js'); const pixiPath = path.join(phaserModulePath, 'build/custom/pixi.js'); const p2Path = path.join(pha...
JavaScript
webpack.production.config.js
klusaktomasz/HamerTheGame
mit
1,532
57
codeparrot/github-code
5722517ec43af34b1a6f670dd9b7c67bfcdb429cb9303ddc8621ce0d5860fb38
package org.codehaus.xfire.service; import java.util.Collections; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import javax.xml.namespace.QName; /** * Represents the base class for containers of <code>MessagePartInfo</code> objects. * * @author <a href="mailt...
Java
xfire-core/src/main/org/codehaus/xfire/service/MessagePartContainer.java
eduardodaluz/xfire
mit
3,164
126
codeparrot/github-code
4d8f92e998f5acc6cf8afd56f17416e0d4f02cbdb6b5f28aa645a61796f562d3
<?php if (!(defined("IN_IA"))) { exit("Access Denied"); } class Comment_EweiShopV2Page extends MobileLoginPage { public function __construct() { parent::__construct(); $trade = m('common')->getSysset('trade'); if (!(empty($trade['closecomment']))) { $this->message('不允许评论!', '', 'error'); } } publi...
PHP
addons/ewei_shopv2/plugin/pc/core/mobile/order/comment.php
Broomspun/shanque
mit
3,629
95
codeparrot/github-code
b5c27934bd907753432bb770439012907179f6edf8a286828a199da97a9777b2
$(function() { var $inputs = $('form input[required], form textarea[required], select[required]'); var displayFieldError = function($elem) { var $fieldRow = $elem.closest('.form-row'); var $fieldError = $fieldRow.find('.field-error'); if (!$fieldError.length) { ...
JavaScript
form.js
MrLipinsky/kancelaria
mit
4,130
109
codeparrot/github-code
9a7211390719b0af15bd4f2c805faf5acd54c7a74dc625c00ace8555b0456d92
/** * The MIT License (MIT) * * Copyright (c) 2014 <mickael.jeanroy@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 r...
Java
src/main/java/com/github/mjeanroy/springmvc/uadetector/factories/BrowserFactoryBean.java
mjeanroy/springmvc-uadetector
mit
2,359
68
codeparrot/github-code
3e5c9be18dfc7f803ee79b0e69fbbdac10855ce5c1ff9b5ee4af15281faa4d6a
'use strict'; app.controller('OrganizerTasksCtrl', function OrganizerTasksCtrl ($scope, organizerData, auth, $filter, $modal, $localStorage) { $scope.showEditTaskForm = function (taskId) { $modal.open({ templateUrl: 'views/edit-task.html', controller: 'EditOrganizerTasksCtrl',...
JavaScript
Source/Organizer.Client/app/controllers/OrganizerTasksCtrl.js
Xzq70r4/Organizer
mit
2,650
95
codeparrot/github-code
78f366e562d2f05a6e98998d90578995989de7c93a56cb64750064d10697b696
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using Microsoft.MixedReality.Toolkit.Utilities.Gltf; using System.Collections.Generic; using System.IO; using System.Xml; using UnityEditor; using UnityEditor.Build; using UnityEditor.Build.Reporting; using UnityEngine; namespace Microsoft.Mi...
C#
Assets/MRTK/Core/Utilities/BuildAndDeploy/MixedRealityBuildPreferences.cs
DDReaper/MixedRealityToolkit-Unity
mit
9,446
206
codeparrot/github-code
a2b27fb5d16a2584aeb9ed3aec3cee290d911830e76d4465419819542e838c4c
/* * Copyright 2017 Jose A. Garcia Sanchez * * 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...
Java
src/main/java/org/jag/plmxml/service/CategoriesImpl.java
JAGSSoftware/plmxmldoc
mit
2,377
67
codeparrot/github-code
5d9c40a09db57aee1a2d84ece7d09adeaba5a63eae7ea76ec9b410020c70a416
package com.ghstudios.android.data.classes; /* * Class for Armor * * Note: Subclass of Item */ public class Armor extends Equipment { public static int ARMOR_TYPE_BLADEMASTER = 0; public static int ARMOR_TYPE_GUNNER = 1; public static int ARMOR_TYPE_BOTH = 0; public static int GENDER_MALE = 0; public static...
Java
app/src/main/java/com/ghstudios/android/data/classes/Armor.java
jaysonthepirate/MHGenDatabase
mit
3,222
165
codeparrot/github-code
49d04273d1727ce247f38e01118c293708f0eaf1351294029047970e25250bfd
import {BaseIfc} from "./BaseIfc" import {IfcGloballyUniqueId} from "./IfcGloballyUniqueId.g" import {IfcOwnerHistory} from "./IfcOwnerHistory.g" import {IfcLabel} from "./IfcLabel.g" import {IfcText} from "./IfcText.g" import {IfcRelAssigns} from "./IfcRelAssigns.g" import {IfcRelNests} from "./IfcRelNests.g" import ...
TypeScript
lang/typescript/src/IfcDiscreteAccessoryType.g.ts
ikeough/IFC-gen
mit
2,009
46
codeparrot/github-code
abeaa6bf8446bc17fd7644c30e44399274a2e2d23984d8fed807ca341dd6b857
import numpy as np from scipy.stats import sem import scipy.constants as const from uncertainties import ufloat import uncertainties.unumpy as unp from uncertainties.unumpy import (nominal_values as noms, std_devs as stds) import matplotlib.pyplot as plt from scipy.optimize import curve_fit from PIL import Image import...
Python
Fortgeschrittenenpraktikum/Protokolle/V27_Zeeman-Effekt/Python/blau_s.py
smjhnits/Praktikum_TU_D_16-17
mit
2,863
101
codeparrot/github-code
6d86f1480df48b541f40d27310bdcd9c9adca2eaba77e0e8829c9d11f1a94bb8
// // processor-priv.h // #ifndef rv_processor_priv_1_9_h #define rv_processor_priv_1_9_h namespace riscv { /* machine status */ template <typename UX> union status { struct { UX val; } xu; struct { UX uie : 1; /* 0 User mode Interrupt Enable */ UX sie : 1; /* 1 Supervisor mode Interrupt Ena...
C
src/emu/processor-priv-1.9.h
rv8-io/rv8
mit
38,063
1,023
codeparrot/github-code
a2d493804f7dca5de649d3f064f219a777a65e4f1ba6ce784885db1a4e157402
NOTSET = {}; Helpers = {}; /** * With `this` as a reactiveObj, applys a given mutator on a key path. */ Helpers.applyMutator = function (mutator, options, keyPath/*, arguments*/) { options = options || {}; var self = this; var node = Tracker.nonreactive(function () { return self.get(keyPath, NOTSET); })...
JavaScript
package/helpers.js
xamfoo/reactive-obj
mit
1,275
46
codeparrot/github-code
549ced40479a499b021f1930a6999b08dd438ec6c1066618d4fbf9babf541d96
# coding: latin-1 import sys import os default_path = r"C:\Program Files\gp423win32\gnuplot\bin\pgnuplot.exe" default_temp_dir = "tempgnuplot" imagenumber = 0 def execute_script_gnuplot (scr) : global default_temp_dir global imagenumber global default_path if not os.path.exists (default_tem...
Python
_todo/programme/graphplot.py
sdpython/teachpyx
mit
2,480
87
codeparrot/github-code
d6f8e4a05ace6cb54163b4a1ec71b8b97806132d8cc7b8664f550edb72cbf1a7
''' Created on Mar 21, 2013 @author: fniksic ''' from data import CoverabilityInstance, Transition, Interval from mister.ast import Constraint from mister.data import ReachabilityInstance def build_problem_instance(program_node): ''' Process node of the form Program(variables, rules, initial, target, invaria...
Python
src/mister/builder.py
fniksic/mister
mit
5,072
138
codeparrot/github-code
f1d4c588f00f58c23b69cf8463a21cac84c00008302e6336cec6587aeaa4204f
#!/usr/bin/env python #coding:utf8 class Solution(object): def permuteUnique(self, nums): length = len(nums) if length == 0: return [[]] rlists = [[nums[0]]] for i in range(1, length): tlists = [] for L in rlists: v = nums[i] ...
Python
leetcode/permutations/permutation2.py
matrix65537/lab
mit
785
35
codeparrot/github-code
4f0480ac44edbeb1a8a539eb712f7dada3507ab956fc9c8cdc16dd914cdfe1f2
<?php namespace Backend\Core\Engine; /* * This file is part of Fork CMS. * * For the full copyright and license information, please view the license * file that was distributed with this source code. */ use SpoonFilter; use Symfony\Component\Filesystem\Filesystem; use Backend\Core\Language\Language as BackendLa...
PHP
src/Backend/Core/Engine/FormImage.php
dmoerman/forkcms
mit
5,113
156
codeparrot/github-code
5c4ff0281fb4f55cdfbc89fff7202fea405ad96581d89c7cdc6ad23fd2489be0
require 'ey-core/cli/subcommand' require 'ey-core/cli/helpers/log_streaming' module Ey module Core module Cli class Deploy < Subcommand include Ey::Core::Cli::Helpers::LogStreaming title "deploy" summary "Deploy your application" option :environment, short: "e", ...
Ruby
lib/ey-core/cli/deploy.rb
engineyard/core-client-rb
mit
4,461
124
codeparrot/github-code
f06428d37f51dca595962320df56c59397cc336c7ebbdab5541b290563132421
<?php namespace Oro\Bundle\CronBundle\Command; use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Input\InputOption; use JMS\JobQueueBundle\Entity\Job; use Oro\Bundl...
PHP
src/Oro/Bundle/CronBundle/Command/CronCommand.php
ramunasd/platform
mit
6,169
214
codeparrot/github-code
a9e2831f0d065a74676e6c240ab7977bdd1549789e0dd56c8aaa8b29d57c8a9e
(function() { 'use strict'; angular .module('govhack2015') .controller('MapController', MapController); /** @ngInject */ function MapController($http, $modal) { var vm = this; vm.zoom = 4; vm.center = { lat: -34.4516, lng: 150.4445 }; vm.locations = []; vm.data = ...
JavaScript
src/app/map/map.controller.js
j0rdsta/govhack2015
mit
1,875
76
codeparrot/github-code
1b357e44b8c492ee5711af0da789f2e2a0c903c2335a2666d62775083a521aa0
package info.devartem.funnycommands.lexer import org.parboiled.errors.{ErrorUtils, ParsingException} import org.parboiled.scala._ import org.parboiled.scala.parserunners.ReportingParseRunner import org.parboiled.scala.rules.Rule1 import scala.util.Try /** * Defined rules for lexer */ object CommandLexer extends P...
Scala
src/main/scala/info/devartem/funnycommands/lexer/CommandLexer.scala
dev-tim/funny-commands
mit
1,646
60
codeparrot/github-code
855669c32fe97a73c7714a74caa2054bfa6c789b67c78fdf197c34226c046ae8
<?php declare(strict_types=1); /* * This file is part of the humbug/php-scoper package. * * Copyright (c) 2017 Théo FIDRY <theo.fidry@gmail.com>, * Pádraic Brady <padraic.brady@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed ...
PHP
specs/func-arrow/namespace-with-use-stmt.php
webmozart/php-scoper
mit
2,735
140
codeparrot/github-code
d082f4f519c99daba9bf4190d236bd51019b2204e9a864d5cb03f729aba15296
package jacobi.core.spatial.sort; import java.util.AbstractList; import java.util.List; import java.util.stream.IntStream; import org.junit.Assert; import org.junit.Test; import jacobi.core.spatial.sort.HilbertSort3D.BasisType; import jacobi.core.util.IntStack; public class HilbertSort3DTest { @Tes...
Java
src/test/java/jacobi/core/spatial/sort/HilbertSort3DTest.java
ykechan/jacobi
mit
7,126
203
codeparrot/github-code
661de5c85270ba162145af1087ee7f1720fea8a21ecc4f41599aa7ff7e259740
package org.traxnet.shadingzen.rendertask; import android.content.Context; import android.opengl.GLES20; import android.util.Log; import org.traxnet.shadingzen.core.Engine; import org.traxnet.shadingzen.core.RenderService; import org.traxnet.shadingzen.math.BBox; import org.traxnet.shadingzen.math.Matrix4; import org....
Java
library/src/main/java/org/traxnet/shadingzen/rendertask/RenderBBoxTask.java
TraxNet/ShadingZen
mit
7,931
258
codeparrot/github-code
bd29e381a10ff58adb122bb5a581de70b0a2c06b7508c068f28474dd7f1d7d5a
#include <stdio.h> #include "pdftypes.h" #include "pdfread.h" #include "pdffilter.h" #include "pdfdoc.h" #include "pdfdevice.h" #include "pdfhelper.h" static void pdf_dev_text_doc_begin(pdf_device *dev, pdf_info *info) { } static void pdf_dev_text_doc_end(pdf_device *dev) { } static void pdf_dev_text_page_begin(pdf_de...
C
src/pdfdevicetxt.c
bluegum/PegDF
mit
1,776
84
codeparrot/github-code
993a359501e63166f25c0bbe58dc2004d067d64fc70b1715d59c42b1a69f83cb
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Try Splat</title> <style type="text/css"> html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; } body { background-color: white; color: black; } canvas { display: block; margin: auto; paddi...
HTML
try/index.html
SplatJS/SplatJS
mit
2,325
107
codeparrot/github-code
e117a2e902ed417054da8de59f6abfe9db9c01ea33b177d35918bb63ee679dc6
var fs = require('fs') , path = require('path') , _ = require("lodash") , Q = require("q") var PLUGIN_NAME = 'BOWMAN-SCANNER'; /** * TRANSFORM */ // Default regex to allow for single and double quotes var RE_RESOURCE = /(?:url\(["']?(.*?)['"]?\)|src=["'](.*?)['"]|src=([^\s\>]+)(?:\>|\s)|href=["'](.*?)['"]|hr...
JavaScript
plugins/scanner.js
derekrjones/bowman
mit
2,423
99
codeparrot/github-code
9c8ebed145f447a11bfa846c8038c3cb07cd0d1d4c217361961121b6faaad8b8
var fs = require("fs"); var gulp = require('gulp'); var uglify = require('gulp-uglify'); var rename = require('gulp-rename'); var fecs = require('fecs-files'); var browserSync = require('browser-sync'); var watchify = require('watchify'); var browserify = require('browserify'); var gutil = require('gulp-util'); var sou...
JavaScript
gulpfile.js
jiachitor/iSlider-H5
mit
3,459
134
codeparrot/github-code
74e437bf06680430615f83dea3826045e5b95033c287cea6b5acb7dde3b44eb2
<HTML> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> <link rel="stylesheet" type="text/css" href="StyleSheets/general.css"> <!-- page that required userId and password. we check if the user already logged in ,if so , we take the userId and the p...
HTML
grades_filtered/83-216-01/FinalGradeInfo.html
yonixw/yonixw.github.io
mit
5,226
203
codeparrot/github-code
a4e69536801c99c10564bcbe0234e2cbf21c68f7d5c44fa39d451f2bf56228d6
// Copyright (c) 2012 Titanium I.T. LLC. All rights reserved. See LICENSE.txt for details. /*global desc, task, jake, fail, complete, directory*/ "use strict"; var lint = require("./build/util/lint_runner.js"); var nodeunit = require("./build/util/nodeunit_runner.js"); var karma = require("./build/util/karma_runner.j...
JavaScript
Jakefile.js
jamesshore/lab1_grunt_shootout
mit
2,504
102
codeparrot/github-code
72ffc4b92aa6e50ca69ec4355e17d9c554d63b04e5e05e9e7c6987fb4077f7dd
// @flow import React from 'react' import { connect } from 'react-redux' import { Image, View, StatusBar } from 'react-native' import { Container, Content, Spinner, H1, Text, Icon, Button } from 'native-base' import type { TMovieDetails } from '../utils/types' type Props = { details: TMovieDetails, navigation: Obj...
JavaScript
Project 03 - TopMovies/src/containers/Details.js
DCKT/30DaysofReactNative
mit
3,722
126
codeparrot/github-code
f8aef3f560cc33a1fead41082d03e3a35706799552a608cab4149bd7f739c09a
namespace Firebase.Database.Offline { using System; using Newtonsoft.Json; /// <summary> /// Represents an object stored in offline storage. /// </summary> public class OfflineEntry { private object dataInstance; /// <summary> /// Initializes a new instance of the...
C#
src/Firebase/Offline/OfflineEntry.cs
step-up-labs/firebase-database-dotnet
mit
3,980
120
codeparrot/github-code
5630851542356fd0fa5448c211662a44dbce94569cc5c400c471126c3f01cb73
#include "pch.h" #include "Test.h" static std::string g_log; void PrintImpl(const char *format, ...) { const int MaxBuf = 4096; char buf[MaxBuf]; va_list args; va_start(args, format); vsprintf(buf, format, args); g_log += buf; #ifdef _WIN32 ::OutputDebugStringA(buf); #endif printf("%s...
C++
Source/Test/Test.cpp
unity3d-jp/AlembicImporter
mit
1,492
89
codeparrot/github-code
1b44c67d941656455a402f41ca82f672f4eb8742e448e995016800d7e7528cca
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; namespace Internal.TypeSystem { public sealed partial class MethodForInstantiatedType : MethodDes...
C#
src/Common/src/TypeSystem/Common/MethodForInstantiatedType.cs
kyulee1/corert
mit
3,785
136
codeparrot/github-code
2e9d00dfb343b6b9b12288f9b1f8f21aeafe8e65257bafeb5cdf3e6e776342df
///////////////////////////////////////////////////////////////////// // Copyright (c) Autodesk, Inc. All rights reserved // Written by Philippe Leefsma 2016 - ADN/Developer Technical Services // // Permission to use, copy, modify, and distribute this software in // object code form for any purpose and without fee is h...
JavaScript
server/www/js/joystick.js
leefsmp/bb8
mit
7,249
302
codeparrot/github-code
b5472f815754eb889e75c1f1cac211a29d1e366472f69b06c46bbdf3ec4bb0e2
using UnityEngine; using System.Collections; using System.Collections.Generic; public class Bomb : MonoBehaviour { [SerializeField] private SpriteRenderer sr = null; [SerializeField] List<Sprite> poopSprites = new List<Sprite> (); [SerializeField] List<Sprite> explosionSprites = new List<Sprite> (); [SerializeFi...
C#
Assets/Scripts/GamePlay/Bomb.cs
GameWorthy/ChompRabbit
mit
2,239
87
codeparrot/github-code
883a0e33e17b8e5ff8f67f4b804969c7d16c6a110a839f9b38cf3a19c51e77f5
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Linq; using CpsDbHelper.Examples.Models; using CpsDbHelper.Extensions; using CpsDbHelper.Utils; namespace CpsDbHelper.Examples { public class UsingNonReader { private re...
C#
project/CpsDbHelper/Examples/UsingNonReader.cs
evitself/cpsdbhelper
mit
1,897
57
codeparrot/github-code
ace8ab2c4d42e8ae67b8949e7045659516b35a3f73efbffcaec8c97f8e33fb67
<?php class Controller { public $db = null; function __construct() { $this->dbConnect(); // Allow from any origin if (isset($_SERVER['HTTP_ORIGIN'])) { header("Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}"); header('Access-Control-Allow-Credentials: true'); ...
PHP
libs/controller.php
socoory/b_test
mit
1,786
68
codeparrot/github-code
c022e45261116d18d4903c65e5ad4e22579dbd00d417ac42cfafcb68ee625da8
// Global variables var css_settings = ['hide_left', 'no_margin_left', 'two_columns', 'hide_sidebar', 'hide_page_info']; var js_settings = ['remove_outbound_posts', 'remove_unrelated_posts']; //----------------------------------------------------------------------------- // Activate only on facebook pages chrome...
JavaScript
script/background.js
haitr/chrome-ext-fb-util
mit
1,624
45
codeparrot/github-code
f1d500780d843ccf9e8c953278789b1a8ddd41d33cb2010e4e533a9fbdacbe5b
package com.codedisaster.steamworks; import java.nio.ByteBuffer; @SuppressWarnings({ "unused", "UnusedReturnValue" }) public class SteamMatchmaking extends SteamInterface { public enum LobbyType { Private, FriendsOnly, Public, Invisible, PrivateUnique } public enum LobbyComparison { EqualToOrLessThan...
Java
java-wrapper/src/main/java/com/codedisaster/steamworks/SteamMatchmaking.java
code-disaster/steamworks4j
mit
10,423
337
codeparrot/github-code
c7db0da1560d8cd523f192ed200e60703d0fb9c7b9c0dc43193bda9d797829c4
# Copyright (c) 2012 Eric D Helms # # MIT License # # 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,...
Ruby
lib/runcible/base.rb
parthaa/runcible
mit
5,805
173
codeparrot/github-code
2aed717db7095125f0d0675522b1b968b866543a97c3c1f2a1d62d9c5039e136
#!/usr/bin/env python3 '''Conway's Game of Life in a Curses Terminal Window ''' import curses import time from GameOfLife import NumpyWorld from GameOfLife import Patterns from curses import ( COLOR_BLACK, COLOR_BLUE, COLOR_CYAN, COLOR_GREEN, COLOR_MAGENTA, COLOR_RED, COLOR...
Python
contrib/NCGameOfLife.py
JnyJny/GameOfLife
mit
5,897
219
codeparrot/github-code
bddb8259c0c76814c315d95236cdfcb19705f00dc1849251be61cb0eb1582bf4
using Microsoft.Win32; using NLog; using nUtils.Network; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Runtime.InteropServices; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; // h...
C#
TimeNazi/TimeNaziApplicationContext.cs
notisrac/TimeNazi
mit
29,709
725
codeparrot/github-code
45e0d57c0cee29b61284cc1fccd0c851234b0811fbd687340edc0fd3202f0cef
using System; using System.Threading; using System.Threading.Tasks; namespace WeakRefUtils { public class WeakCache<T> where T : class { private readonly object CreateLock; private readonly LazyThreadSafetyMode Mode; private readonly WeakReference _Value; public WeakCache() : ...
C#
WeakCache.cs
DSTLC-VSIN/WeakRefUtils
mit
3,309
101
codeparrot/github-code
3e7ee7a2414719326b84fc9c14835a8932fe0ae9941e80db1008acb26c8cd4da
""" Django CAS 2.0 authentication middleware """ from django.conf import settings from django.contrib import auth from django.contrib.auth.views import login, logout from django.core.exceptions import PermissionDenied from django.http import HttpResponseRedirect from django_cas.exceptions import CasTicketException fro...
Python
django_cas/middleware.py
childe/esproxy
mit
2,415
59
codeparrot/github-code
80be5037879df714817c4ade2e9ce32a3d68ecf7aa6b7363d4d484f2375aa3a3
/*--------------------------------------------------------------------------------------------- * 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/test/common/stream.test.ts
Krzysztof-Cieslak/vscode
mit
12,835
473
codeparrot/github-code
8161ad8b82fc5383dcfadb712787171edb6a950bae16fb79b2620081e349dd9f
/* * ***** BEGIN LICENSE BLOCK ***** * Zimbra Collaboration Suite Server * Copyright (C) 2010 Zimbra, Inc. * * The contents of this file are subject to the Zimbra Public License * Version 1.3 ("License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at ...
Java
ZimbraServer/src/java-test/com/zimbra/cs/util/JMSessionTest.java
nico01f/z-pec
mit
3,861
104
codeparrot/github-code
91de265a0c0c758cf5166a37b551b63f2ed64edb4ca34f57562c9491e67dfff4
{% for post in paginator.posts %} <article class="post-card {{ page.class }}{% unless post.cover or post.isbn %} no-image{% endunless %}"> {% if post.cover %} <a class="post-card-image-link" href="{{ site.baseurl }}{{ post.url | remove_first: '/' }}"> <div class="post-card-image"...
HTML
_includes/post-card.html
jihunroh/jihunroh.github.io
mit
1,726
34
codeparrot/github-code
93a2bb4ca7f4562fa62c28f41d5ba2e2bb8991e9bcf55dd80ed0ceadbe499fdb
module Starwars # Custom error class for rescuing from all Starwars errors class Error < StandardError class << self # Return a hash of error classes # @return [Hash] # @example get the total number of pages # Starwars::Error.errors # @api public def errors @errors ...
Ruby
lib/starwars/error.rb
moski/starwars
mit
1,959
64
codeparrot/github-code
d70636802ba34ca30a2df2e7abe4a7015cee4a62f20d9f9f5bf1d4e269eb408a
<?php namespace Anacona16\Bundle\ImageCropBundle\Controller; use Anacona16\Bundle\ImageCropBundle\Form\Type\CropSettingFormType; use Anacona16\Bundle\ImageCropBundle\Form\Type\ScalingSettingFormType; use Anacona16\Bundle\ImageCropBundle\Form\Type\StyleSelectionFormType; use Anacona16\Bundle\ImageCropBundle\Util\Class...
PHP
Controller/DefaultController.php
anacona16/ImageCropBundle
mit
10,091
285
codeparrot/github-code
2fec3e11afe44fa50316876bd41bb225b5fb891f2e01d59274129c6c6e6b5b7c
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class login extends CI_Controller { public function __construct() { parent::__construct(); } public function index() { $data['title']="Login"; $this->load->view('header',$data); $this->load->view('login',$data); $this->load->view('...
PHP
application/controllers/Login.php
shorifulislam00/sms
mit
2,076
83
codeparrot/github-code
9348006aad2d8fd678c7d04cbc59a02ee57ee64382fc470ee8a835db4ed24fad
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>애드온에서 document_srl 구하기 &#8211; 프로그래밍 놀이</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="애드온에서 document_srl을 구하기 위해서는 호출 시점이...
HTML
_site/xpressengine/2012/08/14/애드온에서_document_srl_구하기/index.html
jdssem/dev
mit
7,414
155
codeparrot/github-code
f4aafe24d3a6a74a20bf7d1b20fce1c912658ddef418268a162ea902bceb2265
<!DOCTYPE html><html><head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>[問卦] 有沒有超任最經典的遊戲是什麼的八卦? - 看板 Gossiping - 批踢踢實業坊</title> <meta name="robots" content="all"> <meta name="keywords" content="Ptt BBS 批踢踢"> <meta name="description" content=" 超任曾經是遊戲界的霸主,有很多經典遊戲的第一代都在超任,要不然就...
HTML
result/M.1419155832.A.540.html
iultimatez/PTTScraper
mit
19,881
191
codeparrot/github-code
701808a677f10b6e287de203c7ed528734e8f459b25447c5133a7d167a7f23b7
import * as express from "express"; import {WebServerConfig} from "./web-server-config"; import * as http from "http"; import * as Rx from "rx"; import * as endpoints from "../api/endpoints"; import {ServerSession, ClientSession} from "./../sessions/session-model"; import * as headers from "./header-and-cookie-names"; ...
TypeScript
web-server/web-server.tsx
corps/nama
mit
6,926
181
codeparrot/github-code
87f35e706df06a3ada55546a251788985d303876e77d4e5c61c58ac29f948f0f
//-------------------------------------------------------------------// // OtherInstanceNotificationThread.h interface // //-------------------------------------------------------------------// // This class wraps the functionality of our notification code. // We will notify the app if another instance has been ...
C
c++/Win32/MFC/OtherInstanceNotificationThread.h
moodboom/Reusable
mit
3,392
111
codeparrot/github-code
90e2a058d67c87f69c154f49c50203dc8e1fbc4526db91380e70778d97e643a3
package com.onelogin.saml2.util; import java.io.InputStream; import java.net.URL; import java.util.Locale; import javax.xml.XMLConstants; import javax.xml.validation.Schema; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.w3c.dom.bootstrap.DOMImplementationRegistry; import org.w3c.dom.ls.DOMImple...
Java
core/src/main/java/com/onelogin/saml2/util/SchemaFactory.java
onelogin/java-saml
mit
4,248
109
codeparrot/github-code
b63592bae7ef35c9c0a6580bebe364b73660c81134a3a66d77bc7a349dbec884
<!doctype html> <html lang="en"> <head> <title>Leaflet Korean Provider Demo</title> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <!-- Leaflet style. REQUIRED! --> <link rel="stylesheet" href="h...
HTML
assets/Leaflet.KoreanTmsProviders/examples/indexVWorld.html
code-for-ep/play-ep
mit
3,507
91
codeparrot/github-code
797515fad6bbd126adab7ae02983f6ed16bdb53fa25ceda33382941f01930d9f
require 'yaml' module Keel::GCloud module Kubernetes # # A class to represent a Kubernetes ReplicationController. # It is a simplified view of what Kubernetes returns with only # the necessary information required to perform the operations needed. # class ReplicationController < PodManager ...
Ruby
lib/keel/gcloud/kubernetes/replication_controller.rb
o19s/keel
mit
1,731
58
codeparrot/github-code