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 |
|---|---|---|---|---|---|---|---|---|
9aae90df7cdf1994104833a67e6d253b2f68e9f6c92a7facbe22eefbb683ee50 | /*******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2015 Neustar Inc.
*
* 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 th... | C++ | src/c++/src/epp/core/command/EppCommandInfoDomain.cpp | neustar/registrar_epp04toolkit | mit | 2,259 | 67 | codeparrot/github-code |
667dc0bdc91c83d3fbb0de9afd358d9ed38bdd75ae5ec3e0c71855cae583eecc | ///<reference path="./move.ts" />
module GobangOnline {
export enum Color { Empty, Black, White };
export function getOpponentColor(color: Color): Color {
return color == Color.Black ? Color.White : Color.Black;
}
export function buildSquareMatrix(size:number, defaultValue:any) {
var matrix = [];
... | TypeScript | board.ts | go717franciswang/gobang | mit | 4,943 | 196 | codeparrot/github-code |
d60615386c8bf7984b71b12b4c30f1aadd06caf0d83502be86933154b92585d9 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <climits>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <iostream>
#include <limits>
#include <list>
#inc... | C++ | Codeforces/544/C.cpp | zzh8829/CompetitiveProgramming | mit | 1,315 | 72 | codeparrot/github-code |
345d69e159215f78fc7281a044ce17911ba6dc0eb206c5af48ada5f641203692 | # -*- coding: utf-8 -*-
from .record import (
Metadata,
Record,
)
__all__ = ['Parser']
class Parser:
def __init__(self, store):
self.store = store
def parse_record(self, metadata, line):
factors = line.split('|')
if len(factors) < 7:
return
registry, cc... | Python | ip2country/parser.py | yosida95/ip2country | mit | 1,079 | 46 | codeparrot/github-code |
0473bc430d8e957e731fb68bc678b979d259366ad7f5cc3755ae00dcdc975072 | <?php
namespace Wallabag\CoreBundle\Event\Subscriber;
use Doctrine\Bundle\DoctrineBundle\Registry;
use Doctrine\Common\EventSubscriber;
use Doctrine\ORM\Event\LifecycleEventArgs;
use Wallabag\CoreBundle\Entity\Entry;
/**
* SQLite doesn't care about cascading remove, so we need to manually remove associated stuf for... | PHP | src/Wallabag/CoreBundle/Event/Subscriber/SQLiteCascadeDeleteSubscriber.php | wallabag/wallabag | mit | 1,862 | 65 | codeparrot/github-code |
9b833eb77cfb92b13697ddd8d03d47c97e86b75e1cb3497265faea8c03b6bebc | export const sampleIds = ["bass", "snare", "cymbal", "hihat"];
import { Direction, SliderOptions } from "../../../lib/slider/Slider";
export function RowConfig(rowIndex: number): Array<number> {
switch (rowIndex) {
case 0: //bass
return [0, 10];
case 1: //snare
return [4, 12]... | TypeScript | src/app/modules/drum_machine/DrumMachine_Config.ts | dakom/sodium-typescript-playground | mit | 1,205 | 48 | codeparrot/github-code |
a9660e38d46189a79c7290f709e58bc275de46a793ab9de792103f9f60200013 | // getPostsParameters gives an object containing the appropriate find and options arguments for the subscriptions's Posts.find()
getPostsParameters = function (terms) {
var maxLimit = 200;
// console.log(terms)
// note: using jquery's extend() with "deep" parameter set to true instead of shallow _.ext... | JavaScript | lib/parameters.js | haribabuthilakar/fh | mit | 2,548 | 80 | codeparrot/github-code |
33280e57fe9b7de7ebd5818de0260b8385442d5ea22716c61f1b765118dc7178 | #include <boost\math\special_functions.hpp>
#include "common.h"
#include "cusolverOperations.h"
namespace matCUDA
{
template< typename TElement>
cusolverStatus_t cusolverOperations<TElement>::ls( Array<TElement> *A, Array<TElement> *x, Array<TElement> *C )
{
cusolverDnHandle_t handle;
CUSOLVER_CALL( cusolverD... | C++ | matCUDA lib/src/cusolverOperations.cpp | leomiquelutti/matCUDA | mit | 37,887 | 870 | codeparrot/github-code |
93f6faee397744783ab2b2c44e00a3abacdc9971ae9649981d392d9d58e5f623 | 'use strict';
const fs = require('fs');
const Q = require('q');
const exec = require('child_process').exec;
const searchpaths = ["/bin/xset"];
class XSetDriver {
constructor(props) {
this.name = "Backlight Control";
this.devicePath = "xset";
this.description = "Screensaver control via Xwi... | JavaScript | nodejs/drivers/output/screensaver/xset.js | flyingeinstein/tread-station | mit | 3,736 | 147 | codeparrot/github-code |
3f986e261d022a4a2a348eac2e67d6e2b22f90f539aca7f06e110d140b76f76b | <?php
/* FOSUserBundle:Registration:register.html.twig */
class __TwigTemplate_b2e8a5a7d2f16905904154af2ea8a628b3260186e3b1e28bf7f63c56eb0b951d extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
try {
$this->par... | PHP | app/cache/dev/twig/b2/e8/a5a7d2f16905904154af2ea8a628b3260186e3b1e28bf7f63c56eb0b951d.php | kkuga/sfweb | mit | 1,481 | 57 | codeparrot/github-code |
b06b46c5648b7dc3a415538667547b1dd223468552d169f5ece47023794e192d | #include <bits/stdc++.h>
using namespace std;
#ifndef int64
#define int64 long long
#endif
int main() {
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
#endif
int64 h1, h2, a, b;
cin >> h1 >> h2 >> a >> b;
h1 += a * 8;
if (a <= b && h1 < h2) {
puts("-1");
} else if (h1 >= h2) ... | C++ | codeforces.ru/contest652/a.cpp | bolatov/contests | mit | 514 | 30 | codeparrot/github-code |
914c1f3d86683cca553746bfa6080004c20b2becd8de2182a260d5f2286d5d09 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis;
using System.Collections.Immutable;
using System.T... | C# | src/AnalyzeThis/ReadonlyField/ReadonlyFieldRule.cs | tastott/AnalyzeThis | mit | 7,555 | 182 | codeparrot/github-code |
7e1d54a10028e6b5355af3ddb91847787a8cf3358d438b3d5f80c6cc285f00bc | /*
* The MIT License (MIT)
*
* Copyright (c) 2015 Curt Binder
*
* 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, ... | Java | app/src/main/java/info/curtbinder/reefangel/phone/MainActivity.java | curtbinder/AndroidStatus | mit | 17,315 | 472 | codeparrot/github-code |
ca8b15dee18ff49682086d4d55e7ceaf83f0be50ed0c4cfc7db015e5bd4d4813 | using CoreTweet;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TweetArea.NETFramework.Core.Structures
{
public class MediaInfo
{
public string OriginalURL { get; internal set; }
}
public class Tweet
{
... | C# | source/TweetAreas/TweetArea.NETFramework.Core/Structures/Tweet.cs | joy1192/TweetAreas | mit | 837 | 36 | codeparrot/github-code |
cc3eb47a324f6a483b42fb1cd7e19471ea1ae03c6292050dc9815bdc338fde53 | /*
* Copyright 2016 Joyent, Inc., All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, mod... | JavaScript | lib/keypair.js | joyent/node-smartdc-auth | mit | 7,717 | 266 | codeparrot/github-code |
67b811f6d06ead70bbceeb25adde864c213d506a7823b54767b2c6542a5d7edf | package org.workcraft.plugins.policy.commands;
import org.workcraft.commands.AbstractConversionCommand;
import org.workcraft.plugins.petri.Petri;
import org.workcraft.plugins.petri.VisualPetri;
import org.workcraft.plugins.policy.Policy;
import org.workcraft.plugins.policy.PolicyDescriptor;
import org.workcraft.plugin... | Java | workcraft/PolicyPlugin/src/org/workcraft/plugins/policy/commands/PetriToPolicyConversionCommand.java | tuura/workcraft | mit | 1,471 | 41 | codeparrot/github-code |
d601f3a61dd27db8d39cb5bcfb88f965fc9a0350528bfdf56b84eede525efa20 | // Copyright 2013-2015, The Rust-GNOME Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <http://opensource.org/licenses/MIT>
#![allow(non_camel_case_types)]
extern crate libc;
use libc::{c_void, c_int, c_uint, c_... | Rust | glib-sys/src/lib.rs | nicokoch/glib | mit | 32,860 | 512 | codeparrot/github-code |
894663d976e172b2ac9a518a5920b5d1dec74533a9a1c3d6a33c73150bdb7776 | /*
* Copyright 2017 Thomas Sterrenburg
*
* Licensed under the MIT License (the License); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at https://opensource.org/licenses/MIT
*/
#include <stdio.h>
#include <curl/curl.h>
#include <string.h>
#include "fin... | C | src/main.c | thomas-sterrenburg/fingerprinting-poc | mit | 9,349 | 311 | codeparrot/github-code |
ab196a801aab433a808eeaa5c268b7c7173d6a8fe2f74737ff21c78b33ef1372 | var express = require('express');
var userRouter = express.Router();
var passport = require('passport');
var Model = require('../models/user');
var authenticate = require('./auth');
/* GET all the users */
exports.getAll = function(req, res, next) {
Model.Users.forge()
.fetch({ columns: ['_id', 'username', '... | JavaScript | src/server/routes/userController.js | TheKiqGit/TimeTracker | mit | 2,707 | 114 | codeparrot/github-code |
af3cc3af54cd84488742b82712f95f14e6e555a5abd91e4addf2d81223777231 | !=====================================================================!
!
!=====================================================================!
! http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/util/Hashtable.java#Hashtable
module hashtable_class
use iso_fortran_env, only : dp =... | FORTRAN | hashtable_class.f90 | komahanb/collections | mit | 2,402 | 85 | codeparrot/github-code |
a5d867290617c2da8901cab60181ce0c21cb5dd6d508676e28721a6ed71356ae | package main
import (
"github.com/emicklei/go-restful"
"io"
"net/http"
)
// This example shows how to create a (Route) Filter that performs Basic Authentication on the Http request.
//
// GET http://localhost:8080/secret
// and use admin,admin for the credentials
func main() {
ws := new(restful.WebSe... | GO | Godeps/_workspace/src/github.com/emicklei/go-restful/examples/restful-basic-authentication.go | spacexnice/ctlplane | mit | 1,025 | 36 | codeparrot/github-code |
daaca9a84aa395a5750ce0f55155e2ff30d09daec61c10bfd26dbbaeccd79865 | <?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
* Auditore
*
* @author sanik90
* @copyright Copyright (c) 2017 sanik90
* @license https://github.com/sanik90/auditore/blob/master/LICENSE.txt
* @link https://github.com/sanik90/auditore
*/
/**
* Class Custom_Fields
*/
class Custom... | PHP | application/modules/custom_fields/controllers/Custom_fields.php | sanik90/auditore | mit | 2,385 | 86 | codeparrot/github-code |
d496431d7f5dc4b762469d52bfff926dd6bd1bfc047d64bcc03c1bda07ec28e7 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Nucleo.Services
{
public class WebStaticInstanceManager : IStaticInstanceManager
{
private HttpContextBase _context = null;
#region " Properties "
private HttpContextBase Context
{
get
{
if (_conte... | C# | src_wip/Nucleo.ApplicationServices.Web/Services/WebStaticInstanceManager.cs | brianmains/Nucleo.NET | mit | 4,775 | 177 | codeparrot/github-code |
b48dc2222397b519e2a27722a0f7a714ef9a0e093972ebfbc3edc7155f57bc79 | <?php
/*
* This file is part of BardisCMS.
*
* (c) George Bardis <george@bardis.info>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace BardisCMS\ContentBlockBundle\Admin;
use BardisCMS\ContentBlockBundle\Admin\Form\EventListener\AddCo... | PHP | src/BardisCMS/ContentBlockBundle/Admin/ContentBlockAdmin.php | bardius/BardisCMS | mit | 5,957 | 120 | codeparrot/github-code |
3005657f1f22bce7af6780888370a7c92958efa1bdaf656d397a775cb068f1b8 | import { formValueSelector, getFormValues } from 'redux-form';
import { createSelector } from 'reselect';
import { BookingProps } from '@waldur/booking/types';
import { getOfferingComponentsFilter } from '@waldur/marketplace/common/registry';
import { OfferingComponent } from '@waldur/marketplace/types';
import { Root... | TypeScript | src/marketplace/offerings/store/selectors.ts | opennode/waldur-homeport | mit | 3,938 | 124 | codeparrot/github-code |
83c732fc7de94ac215de5898deb3df87f817166ff48e8e1e149a009ff0534461 | namespace SharpCompress.Common.Zip.Headers
{
using System;
using System.Runtime.CompilerServices;
internal class ExtraData
{
[CompilerGenerated]
private byte[] _DataBytes_k__BackingField;
[CompilerGenerated]
private ushort _Length_k__BackingField;
[CompilerGenera... | C# | SharpCompressForUnity3D/SharpCompress/Common/Zip/Headers/ExtraData.cs | RainsSoft/sharpcompress | mit | 1,330 | 59 | codeparrot/github-code |
79f73442aa09f296c457caf51faf3b98ee99e72e103fa02883ceee4ee3de73e0 | # encoding: utf-8
require "aws-sdk"
# require "aws_ec2_config"
class Amazon::SesAdapter < Amazon::AwsAdapter
def verify_email_identity(email_address)
Rails.logger.debug "do verify_email_identity params=#{email_address}"
create_client.verify_email_identity({email_address: email_address})
end
def delet... | Ruby | app/adapters/amazon/ses_adapter.rb | yasuhisa1984/jins_common_rails | mit | 2,878 | 99 | codeparrot/github-code |
ed1bb7adf6f26740dce2c663f332836fa69fe72ccabdd95e3f62e980aecc80b5 | /**
* The MIT License
*
* Copyright (C) 2012 KK.Kon
*
* 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, mo... | Java | src/main/java/org/jenkinsci/plugins/job_strongauth_simple/JobStrongAuthSimpleBuilder.java | kkkon/job-strongauth-simple-plugin | mit | 31,334 | 952 | codeparrot/github-code |
8d17b8106ee8ece097df3d25590672ad480497c25b63746f4cd12b6f7d3ca230 | /*
* The MIT License
*
* Copyright 2016 Matthias.
*
* 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... | Java | src/main/java/de/lutana/easyflickrbackup/ImageSizes.java | lutana-de/easyflickrbackup | mit | 2,063 | 64 | codeparrot/github-code |
1612b2333ce43bf2804dfea2b18d66ad233d81860cd0e0f0797a1923145d8ec0 | /**
* Copyright (c) 2011 Prashant Dighe
*
* 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 | test/src/java/custom/com/example/demo/model/impl/RegisteredDriverImpl.java | pdd/mongoj | mit | 2,066 | 79 | codeparrot/github-code |
b95a16bede2be812785525d107b9125ebd5e0343d4ece31536f4763800f21478 | using System;
using System.Linq;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Text;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using SData.Internal;
namespace SData.Compiler
{
internal static class CSEX
{
internal static readonly string[] SchemaNames... | C# | Src/SData.Compiler/CSEX.cs | knat/SData | mit | 22,227 | 489 | codeparrot/github-code |
ac61f896b8d09345046f37fd8b6f6d1663fb3d0d2db03edfee341da12a136eb3 | #include <bits/stdc++.h>
using namespace std;
void solve() {
string s; cin >> s;
reverse(s.begin(), s.end());
vector<string> pre = {"dream", "dreamer", "erase", "eraser"};
for (auto& x: pre) {
reverse(x.begin(), x.end());
}
int i = 0, n = s.size();
while (i < n) {
if (s.su... | C++ | atcoder/arc065c.cpp | sogapalag/problems | mit | 706 | 34 | codeparrot/github-code |
ab7273e44538cb35f1395274455a87d707855fc04925db029a9e13165998b094 | <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Ask My Doctors | Pasien</title>
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
<!-- Bootstrap 3.3.2 -->
<link href="<?php echo base_url('assets/admin/css/boots... | PHP | application/views/admin/pertanyaan.php | meliafitriawati/askmydoctors | mit | 8,869 | 170 | codeparrot/github-code |
b17ed0a9fa2a4564abc45e7c40067a95c6257fd3c5183d0f915d73e2345f7c2c | using System;
using System.Drawing;
using System.Linq;
using System.Threading;
using Emgu.CV.Structure;
using System.Threading.Tasks;
namespace Pentacorn
{
static class IObservableEx
{
public static async Task<T> TakeNext<T>(this IObservable<T> observable)
{
return (await observabl... | C# | Backup/Pentacorn/IObservableEx.cs | JaapSuter/Pentacorn | mit | 2,966 | 84 | codeparrot/github-code |
2f7718d6269b7ecf80bfc334727e3e4316520822372e23703a618b86ea773385 | require 'active_support/core_ext/class/attribute'
module Travis
module Github
module Sync
# Fetches all repositories from Github which are in /user/repos or any of the user's
# orgs/[name]/repos. Creates or updates existing repositories on our side and adds
# it to the user's permissions. Also ... | Ruby | lib/travis/github/sync/repositories.rb | travis-repos/travis-core | mit | 2,707 | 92 | codeparrot/github-code |
686ca14759e7585884e3d6cd62cd4e0269d4f895e29516256132efe844eb5294 | /* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MP... | JavaScript | chrome/content/cachestatus.js | purdy/cachestatus-firefox | mit | 15,267 | 348 | codeparrot/github-code |
dceb9b328165647f72f8702bd2358c02f722e065c566758b3427c2c097680678 | #pragma once
#include "saiga/core/camera/camera.h"
#include "saiga/opengl/shader/basic_shaders.h"
#include "saiga/opengl/vertex.h"
#include "saiga/opengl/vertexBuffer.h"
#include "LinearMath/btIDebugDraw.h"
#include "btBulletDynamicsCommon.h"
namespace Saiga
{
class GLDebugDrawer : public btIDebugDraw
{
private... | C | samples/opengl/simpleBullet/bulletDebugDrawer.h | darglein/saiga | mit | 1,540 | 53 | codeparrot/github-code |
30f27638ff30a53b8cbb0e173bdecf04dc74f69830eb4cfb8eab734b4c286b83 | /// @file aStarNode.hpp
/// @brief Contains the class of nodes use by the astar pathfinder.
/// @author Enrico Fraccaroli
/// @date Nov 11 2016
/// @copyright
/// Copyright (c) 2016 Enrico Fraccaroli <enrico.fraccaroli@gmail.com>
/// Permission is hereby granted, free of charge, to any person obtaining a
/// copy ... | C++ | src/structure/algorithms/AStar/aStarNode.hpp | Galfurian/RadMud | mit | 3,686 | 132 | codeparrot/github-code |
21351fb6ff8e90b85e6265c779a92f619c758425e661730a0dbdb0b0b55dd4fa | /**
* WebCLGLVertexFragmentProgram Object
* @class
* @constructor
*/
WebCLGLVertexFragmentProgram = function(gl, vertexSource, vertexHeader, fragmentSource, fragmentHeader) {
this.gl = gl;
var highPrecisionSupport = this.gl.getShaderPrecisionFormat(this.gl.FRAGMENT_SHADER, this.gl.HIGH_FLOAT);
this.precision = (hi... | JavaScript | StormEngineC/WebCLGLVertexFragmentProgram.class.js | stormcolor/stormenginec | mit | 19,084 | 455 | codeparrot/github-code |
8e5ad504efb51bba07e321a5a33ae5ce14a0b3cae9fea24a81d5539bc33554f8 | namespace _04.Hotel
{
using System;
public class Hotel
{
public static void Main()
{
string month = Console.ReadLine();
int nightsCount = int.Parse(Console.ReadLine());
if (month == "May" || month == "October")
{
double disco... | C# | 06 Conditional Statements And Loops - Exercises/04.Hotel/Hotel.cs | TsvetanNikolov123/CSharp---Programming-Fundamentals | mit | 2,716 | 76 | codeparrot/github-code |
21d1929d23a18c772fd21d9f8b959d2b1412f8a4ce22558c733e3c9ec2687c42 | class ConferenceController < ApplicationController
before_filter :respond_to_options
load_and_authorize_resource find_by: :short_title
def index
@current = Conference.where('end_date >= ?', Date.current).order('start_date ASC')
@antiquated = @conferences - @current
end
def show; end
def schedule
... | Ruby | app/controllers/conference_controller.rb | raluka/osem | mit | 834 | 37 | codeparrot/github-code |
1a83e179db38d314dc9036dc47d371a9557e76f91b9d23959b9fde9dd2ca6232 | //borrowed from stefanocudini bootstrap-list-filter
(function($) {
$.fn.btsListFilterContacts = function(inputEl, options) {
var searchlist = this,
searchlist$ = $(this),
inputEl$ = $(inputEl),
items$ = searchlist$,
callData,
callReq; //last callData execution
function tmpl(str, data) {
retu... | JavaScript | app/assets/javascripts/bootstrap-list-filter-contacts.js | navroopsingh/HepBProject | mit | 3,485 | 133 | codeparrot/github-code |
9c5d6d3090abcdcfbc41b583adc0c0e369a65b97f467f724ebe4b8fba0697146 | /*!
* jquery.initialize. An basic element initializer plugin for jQuery.
*
* Copyright (c) 2014 Barış Güler
* http://hwclass.github.io
*
* Licensed under MIT
* http://www.opensource.org/licenses/mit-license.php
*
* http://docs.jquery.com/Plugins/Authoring
* jQuery authoring guidelines
*
* Launch : July 201... | JavaScript | jquery.initialize-0.1.0.js | hwclass/jquery.initialize | mit | 1,098 | 48 | codeparrot/github-code |
f7c48dba2e884ddf0818f506d5069d59040b7898e52c2c0697daec762cc284cf | package com.mdg.droiders.samagra.shush;
import android.Manifest;
import android.app.NotificationManager;
import android.content.ContentValues;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.database.Cursor;
import android.net.Uri;
impor... | Java | app/src/main/java/com/mdg/droiders/samagra/shush/MainActivity.java | samagra14/Shush | mit | 10,861 | 283 | codeparrot/github-code |
9aa4776ed6d4e68176720114e6cef29f0a33cbe2e3b11044953112c1f6b30917 | /**
* utility library
*/
var basicAuth = require('basic-auth');
var fs = require('fs');
/**
* Simple basic auth middleware for use with Express 4.x.
*
* @example
* app.use('/api-requiring-auth', utils.basicAuth('username', 'password'));
*
* @param {string} username Expected username
* @param {string}... | JavaScript | utils.js | scwissel/garagepi | mit | 1,421 | 55 | codeparrot/github-code |
6883a6ffeceeddbdb90325dba5fd67f6cc2e37fe1329213b21f513475f20e7dc | <TS language="cs" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Pravým kliknutím upravte adresu nebo popisek</translation>
</message>
<message>
<source>Create a new address</source>
<tran... | TypeScript | src/qt/locale/neos_cs.ts | neoscoin/neos-core | mit | 85,197 | 2,516 | codeparrot/github-code |
d1a5ada93d051f90ca2af5cd25f6b855215cbd3c3f80703dca62304866c03f8b | <?php
return [
/*
|--------------------------------------------------------------------------
| Default Search Engine
|--------------------------------------------------------------------------
|
| This option controls the default search connection that gets used while
| using Laravel Scou... | PHP | config/scout.php | GeekGhc/ISpace | mit | 2,714 | 84 | codeparrot/github-code |
2e6faffa016889dc65b3e693814b3de88ed869c257ebed6dd2e07c676ac2512c | from django.contrib.auth import get_user_model
from rest_framework.authentication import SessionAuthentication, BasicAuthentication
from rest_framework import routers, serializers, viewsets, permissions
from rest_framework_jwt.authentication import JSONWebTokenAuthentication
from rest_framework.reverse import reve... | Python | src/comments/serializers.py | climberwb/video-api | mit | 2,962 | 95 | codeparrot/github-code |
ce378b58ddba113acc7d21bbb3fbfaefd5b0c0e1bb729ed925191f3ca42b1077 | // advent16.rs
// find Aunt Sue
extern crate pcre;
use std::io;
fn main() {
loop {
let mut input = String::new();
let result = io::stdin().read_line(&mut input);
match result {
Ok(byte_count) => if byte_count == 0 { break; },
Err(_) => {
println!("e... | Rust | src/bin/advent16.rs | davidsullins/AdventOfCodeRust | mit | 2,789 | 91 | codeparrot/github-code |
6d5ff87e74a1ce2728ac1412ebecbb968689d3cae5e30091bc053d672272f6e1 | package jenkins.plugins.http_request;
import static com.google.common.base.Preconditions.checkArgument;
import java.io.IOException;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import javax.annotation.Nonnull;
import org.kohsuke.s... | Java | src/main/java/jenkins/plugins/http_request/HttpRequest.java | martinda/http-request-plugin | mit | 15,118 | 458 | codeparrot/github-code |
9b4fd09885b523905438fb23f776498ed171ea93b964854bc02b545bb7e9aad8 | /*!
* ear-pipe
* Pipe audio streams to your ears
* Dan Motzenbecker <dan@oxism.com>
* MIT Licensed
*/
"use strict";
var spawn = require('child_process').spawn,
util = require('util'),
Duplex = require('stream').Duplex,
apply = function(obj, method, args) {
return obj[method].apply(obj, args... | JavaScript | index.js | dmotz/ear-pipe | mit | 1,304 | 61 | codeparrot/github-code |
adac0ffffa1f2f2f8a4e8bff92a91e73711b41b69f18e5af02ab4304154c7633 | <HTML><HEAD>
<TITLE>Review for Total Recall (1990)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0100802">Total Recall (1990)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Jaye+Mathisen... | HTML | data science/machine_learning_for_the_web/chapter_4/movie/0781.html | xianjunzhengbackup/code | mit | 3,882 | 69 | codeparrot/github-code |
ea988008a7306b242d93c1e285044742218fae6c1031fdf04eba2de7818d7b2d | <?php
/*
Plugin Name: Collapsing Categories
Plugin URI: http://blog.robfelty.com/plugins
Description: Uses javascript to expand and collapse categories to show the posts that belong to the category
Author: Robert Felty
Version: 2.0.3
Author URI: http://robfelty.com
Tags: sidebar, widget, categories, menu, navigation, ... | PHP | wp-content/plugins/collapsing-categories/collapscat.php | mandino/emergingprairie.misfit.co | mit | 5,550 | 159 | codeparrot/github-code |
717824fd57ec70fcd20b88eff0aa18b0a1e410ddb98c1ea3c9ede00374ca56ae | <?php
namespace Field\Providers;
use Pluma\Support\Providers\ServiceProvider;
class FieldServiceProvider extends ServiceProvider
{
/**
* Array of observable models.
*
* @var array
*/
protected $observables = [
[\Field\Models\Field::class, '\Field\Observers\FieldObserver'],
];
... | PHP | core/submodules/Form/submodules/Field/Providers/FieldServiceProvider.php | lioneil/pluma | mit | 967 | 57 | codeparrot/github-code |
fbf69da0c667ebe46ae2b7e5cfc97c57e38b89ff6471ee9c9bb30b7b9a237dfa | define(['jquery'], function ($) {
if (!Array.prototype.reduce) {
/**
* Array.prototype.reduce polyfill
*
* @param {Function} callback
* @param {Value} [initialValue]
* @return {Value}
*
* @see http://goo.gl/WNriQD
*/
Array.proto... | JavaScript | src/js/core/agent.js | czajkowski/sunnynote | mit | 2,766 | 89 | codeparrot/github-code |
f8a5fe4bf05a8e121611a8e88d0bd0988d11607915e0995999258c5e8db0c2d5 | package com.lfk.justweengine.Utils.tools;
import android.content.Context;
import android.content.SharedPreferences;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
impo... | Java | AndroidFinal/engine/src/main/java/com/lfk/justweengine/Utils/tools/SpUtils.java | Sonnydch/dzwfinal | mit | 7,864 | 280 | codeparrot/github-code |
4fb7e1bcca80a2931e1b07ffa3b0281547b9ed3dbbc3dde644fa0b448563e844 | import processing.core.*;
import processing.data.*;
import processing.event.*;
import processing.opengl.*;
import ddf.minim.spi.*;
import ddf.minim.signals.*;
import ddf.minim.*;
import ddf.minim.analysis.*;
import ddf.minim.ugens.*;
import ddf.minim.effects.*;
import codeanticode.syphon.*;
import java.uti... | Java | variaciones/antesFestival/ANTES01/build-tmp/source/ANTES01.java | joseflamas/zet | mit | 11,561 | 533 | codeparrot/github-code |
5da47a5d1e034c43be351dd610ad82f60afad4c852ae63613e1b9c56f112789e | <?php
/**
* Copyright (c) 2012 - 2017, COOPATTITUDE. Tous droits réservés.
*
*
* @author COOPATTITUDE
* @copyright Copyright (c) 2012 - 2017, COOPATTITUDE
*/
class IrCssClassBody extends \IrCssClassFather {
function __construct ($className) {
parent::__construct ('body', $className) ;
}
function setFon... | PHP | system/Css/IrCssClassBody.php | coopattitude/coopgui | mit | 1,146 | 46 | codeparrot/github-code |
10d2776735156f52734e4e6082823b8b5032809734d5c8f7bef3da0054fb7522 | <?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | PHP | application/libraries/php-google-sdk/google/apiclient-services/src/Google/Service/TagManager/WorkspaceProposalHistory.php | dwivivagoal/KuizMilioner | mit | 2,197 | 71 | codeparrot/github-code |
d200553d88651a8b3feb09bad2cedb78c1e76601d9cf2ad0acaebfdbaaebcb31 | require 'ostruct'
module SimCtl
class Command
module StatusBar
# Clear all status bar overrides
#
# @param device [SimCtl::Device] the device
# @return [void]
def status_bar_clear(device)
unless Xcode::Version.gte? '11.4'
raise UnsupportedCommandError, 'Needs at le... | Ruby | lib/simctl/command/status_bar.rb | plu/simctl | mit | 1,529 | 53 | codeparrot/github-code |
b0d2e6089a8a34be50827104ef4605a6f6f0bc2a2d33b3f9dcf3472a32c13645 | //-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... | C++ | libdts/src/core/util/triListOpt.cpp | jamesu/libDTShape | mit | 13,083 | 407 | codeparrot/github-code |
8bb123eba63a47ef703ac8dca6f07d1f5a20f69b2e37228fcbeaf2f704a087bc | 'use strict';
const path = require('path')
const webpack = require('webpack')
const pkg = require('./package.json')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const WebpackNotifierPlugin = require('webpack-notifier')
var paths = {
dist: path.join(__dirname, 'dist'),
src: path.join(__dirname, 'sr... | JavaScript | webpack.config.js | shprink/react-redux-webpack-todo | mit | 3,162 | 125 | codeparrot/github-code |
0352d808ed3a15ef0648fcc990ed257da6a981078fa69f359090ed50a448361e | var EcommerceProductsEdit = function () {
var handleImages = function() {
// see http://www.plupload.com/
var uploader = new plupload.Uploader({
runtimes : 'html5,html4',
browse_button : document.getElementById('tab_images_uploader_pickfiles'), // you can pass in i... | JavaScript | assets/admin/pages/scripts/products-edit.js | webstruction/eCommerce | mit | 24,442 | 562 | codeparrot/github-code |
a58aec6a2e1a8d6aea12b573183ccd5439ad60a500b2ea5765367e7d9c6283e6 | var dotBeautify = require('../index.js');
var fs = require('fs');
var chai = require('chai');
var assert = chai.assert;
var expect = chai.expect;
var setup = 'function start (resp)\
{\
resp.writeHead(200, {"Content-Type": "text/html"\
});\
fs.readFile(filename, "utf8", function(err, data) {\
if (e... | JavaScript | test/index.spec.js | bearjaws/dotbeautify | mit | 1,510 | 43 | codeparrot/github-code |
31f3165f11395deeeb4c3775aa1b8607fdd02d5e07c93d258aecea68ae2162d2 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | Java | dom/src/main/java/au/com/scds/agric/dom/simple/SimpleObjectRepository.java | Stephen-Cameron-Data-Services/isis-agri | mit | 2,086 | 59 | codeparrot/github-code |
66ee1adf73cc5f784c06dabcd9fc6c089f1b200a8e5ca7bdce597db384aa6405 | function Block() {
this.isAttacked = false;
this.hasShip = false;
this.shipType = "NONE";
this.attackable = true;
this.shipSize = 0;
this.direction = "no"
}
function Ship(x,y,direction,size){
this.x = x;
this.y = y;
this.direction = direction;
this.size = size;
this.win = fa... | JavaScript | Demo/battleship/mapObject.js | MAGKILLER/magkiller.github.io | mit | 14,779 | 406 | codeparrot/github-code |
1a001b461dd76da1432c6ae33dfeb32f3fd192df48f20f9dfcb3829ffd3757d0 | /*
* FILE: S3Operator
* Copyright (c) 2015 - 2019 GeoSpark Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Un... | Java | viz/src/main/java/org/datasyslab/geosparkviz/utils/S3Operator.java | Sarwat/GeoSpark | mit | 3,664 | 98 | codeparrot/github-code |
2c9e399279a8b7e38e1678ac829adad8bbe2ca0f5f9971e9d524e9af583d12bc | import Ember from 'ember';
export default Ember.Component.extend({
colorMap: {
running: 'green',
waiting: 'orange',
terminated: 'red'
},
getStatusByName(name) {
let retval = null;
Ember.$.each(this.get('containerStatuses'), (i, containerStatus) => {
if (name === containerStatus.name) {... | JavaScript | app/components/pod-containers/component.js | holandes22/kube-admin | mit | 987 | 35 | codeparrot/github-code |
7217aba4749176c12bae2ee965eca9e3ba135f94be1d88c69bea9b7c358bbd8a | // Copyright (c) 2009-2015 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin developers
// Copyright (c) 2011-2015 Litecoin Developers
// Copyright (c) 2013-2015 Globalcoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-... | C | src/serialize.h | CryptoParts/GlobalCoin | mit | 41,549 | 1,191 | codeparrot/github-code |
cc46ca4f0468c4ea177386f82c4d40535d87c001b188473bfa1011801b710940 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DefaultValues
{
class Program
{
static void Main(string[] args)
{
var dict = new Dictionary<string, string>();
var currValue = Console.ReadLine... | C# | LINQ/DefaultValues/Program.cs | stefanliydov/SoftUniLab | mit | 1,111 | 36 | codeparrot/github-code |
1aae3d13492247ad8ef077b880fcddb554f66318a683163c2cbcb77cf7bd13aa | <!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta chars... | HTML | liana.html | mundizzle/letstalkshoppe | mit | 5,484 | 182 | codeparrot/github-code |
768f45e9390834d99507a29c71be00017ada925da3d7959c4cc3e4bb79bbde03 | package pttravis;
import java.util.List;
public class ScoreElementalDef implements ScoreItems {
public ScoreElementalDef() {
}
@Override
public String getName() {
return "Elemental Def";
}
@Override
public float score(List<Item> items) {
if( items == null ) return 0;
float score = 0;
for( Item ... | Java | src/pttravis/ScoreElementalDef.java | pttravis/ds-armor | mit | 726 | 41 | codeparrot/github-code |
20e13f50bac611458eb73dbc4b41744e6d2c5277085753c01b400fa7c0b43b34 | #!/usr/bin/env python
import Config
import Database
import atexit, os, time
from flask import Flask
from concurrent.futures import ThreadPoolExecutor
from classes import CRONTask
# Generate a thread pool
executor = ThreadPoolExecutor(5)
app = Flask( __name__ )
@app.route( "/" )
def index( ) :
return "View Generator... | Python | operations/ViewGenerator/ViewGeneratorService.py | BioGRID/ORCA | mit | 594 | 30 | codeparrot/github-code |
7df38f3c46f8f5e60bffef62d056346291cf38a2f13bdab84a555518816ded8e | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>paramcoq: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | HTML | clean/Linux-x86_64-4.09.1-2.0.6/extra-dev/dev/paramcoq/1.1.3+coq8.14.html | coq-bench/coq-bench.github.io | mit | 7,569 | 182 | codeparrot/github-code |
ddff9bac3930edf9ff417cc809b8c036f4ae5ba1ee774143f451ae6719c35e1a | #include "pQueue.h"
#include <stdlib.h>
#include <stdio.h>
void initPQueue(pQueue **queue)
{
//We allocate memory for the priority queue type
//and we initialize the values of the fields
(*queue) = (pQueue *) malloc(sizeof(pQueue));
(*queue)->first = NULL;
(*queue)->size = 0;
return;
}
void addPQueu... | C | pQueue.c | romhack/aBsenTminDeD | mit | 3,857 | 140 | codeparrot/github-code |
e017bbee059860417ab2b749db857921b69468951af72e06f2c70cfe138f6475 | #include "injected.h"
#include <mach-o/dyld_images.h>
#include <mach-o/loader.h>
#include <mach-o/nlist.h>
#include <string.h>
#include <dlfcn.h>
/* These values are overwritten on a per-injection basis by the injector. */
/* Must not be defined as consts, or the compiler will optimize them. */
struct dyld_all_image_i... | C | MIP/injector/payloads/injected32.c | LIJI32/MIP | mit | 4,058 | 129 | codeparrot/github-code |
b5619584e4223072e274b308ce0846a42099622bd34a7a95886d800be46e17c3 | require 'basalt/packages/repo'
require 'basalt/packages/package_assert'
module Basalt
class Packages
# Allows the searching of multiple repos as if it was one repo
class MultiRepo
include PackageAssert
# @return [Array<Repo>]
attr_accessor :repos
def initialize
@repos = []
... | Ruby | lib/basalt/packages/multi_repo.rb | polyfox/moon-basalt | mit | 1,070 | 52 | codeparrot/github-code |
51329cc0ab6283ab6322f1eeeb3448969ace5c224d5337a5fac614a08aba85c5 |
<!DOCTYPE html>
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="PortabilityAnalysis0">.NET Portability Report</title>
<style>
... | HTML | Reports/wi/winrtutils.1.2.0/WinRTUtils.Windows-netcore45.html | kuhlenh/port-to-core | mit | 13,233 | 313 | codeparrot/github-code |
78e7f0e7ce7e7b0f9b0ca20e8ea9c405e9fb9f727df1e7fd9410437ddf1380eb | (function(){
function render (context, points) {
console.log ('render called');
var angle = 0,
center = new Point3D (400,400,400);
return function () {
context.clearRect(0,0,800,600);
if (points.length < 1000) {
points.push (randomPoint... | JavaScript | 3d-starfield/terrain.js | davepkennedy/js-canvas | mit | 2,403 | 83 | codeparrot/github-code |
c14fa1d8b846f4c654b4d498714fc32320e4e4bd0266805e36fe0d84bfdac2e6 |
using System;
using System.Collections.Generic;
using Orleans.Streams;
namespace Orleans.Providers.Streams.Common
{
/// <summary>
/// CachedMessageBlock is a block of tightly packed structures containing tracking data for cached messages. This data is
/// tightly packed to reduced GC pressure. The t... | C# | src/OrleansProviders/Streams/Common/PooledCache/CachedMessageBlock.cs | gigya/orleans | mit | 5,770 | 155 | codeparrot/github-code |
462e904a2398318d143a2f9c0e77bae3ddc39861762d598d36cf4511a84af027 | <?php
/**
* Campaign Monitor Magento Extension
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you are unable to obtain it through the world-wide-web, please... | PHP | app/code/community/Campaignmonitor/Createsend/Model/Config/ExampleSegments.php | campaignmonitor/magento-extension | mit | 8,606 | 219 | codeparrot/github-code |
3f07e13495707c66fe43028433c9c27192a66e97e831832d0759402f5e48d4c1 | // Copyright (c) 2013 Andrew Downing
// 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, distribut... | C# | Assets/Scripts/ProtoVector3.cs | ad510/plausible-deniability | mit | 1,819 | 42 | codeparrot/github-code |
8e664c056b853af0363da50b1dc60edc31f261c8c6eb05c8f683570574b55c5e | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from Models.FeatureProcessing import *
from keras.models import Sequential
from keras.layers import Activation, Dense, LSTM
from keras.optimizers import Adam, SGD
import numpy as np
import abc
from ClassificationModule import ClassificationModule
class descriptionreponame... | Python | Application/Models/ClassificationModules/descriptionreponamelstm.py | Ichaelus/Github-Classifier | mit | 3,637 | 90 | codeparrot/github-code |
1be855fcb835de82f586a668956c28b4de5b2198c75b33b087c9fb6456e64999 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace SistemaMundoAnimal.Forms {
public partial class FormPrincipal : Form {
public For... | C# | SistemaMundoAnimal/Forms/FormPrincipal.cs | diegomrod95/Descontinuado_MundoAnimal | mit | 2,413 | 70 | codeparrot/github-code |
5387184644634be69e092de92ede63c546da30ef5ac014980502f0850c644fea | class IngredientsController < ApplicationController
def index
@terms = params[:search] ? params[:search][:terms] : nil
@ingredients = Ingredient.find_ingredients(@terms).page(params[:page])
end
def update
fetch_ingredient
if @ingredient.update(ingredient_params)
flash[:success] = "Ingredie... | Ruby | app/controllers/ingredients_controller.rb | tankwanghow/least_cost_feed | mit | 1,398 | 55 | codeparrot/github-code |
a8f8bcd06bb4c82b5e7687d3d9b35d61d92961aaf6af407cec1d494f9d3f8464 | <?php
/* @WebProfiler/Icon/time.svg */
class __TwigTemplate_327588cc42a9f6e80c428485ea2a1d4ea5de9af6826ac009602f5b121f9a4949 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);... | PHP | var/cache/dev/twig/a6/a6f60ba4d81ded0d5b110bd2302970761310d2ce83bcbaac8bdb5727f0e9ee23.php | UchiKir/SymfonyPadelApp | mit | 2,350 | 49 | codeparrot/github-code |
31ca8b2b0e1c289c8064984e207e023dcc28ea8f00b6b67e52a5941837cb437a | using UnityEditor;
using UnityEngine;
using System.Collections.Generic;
[CanEditMultipleObjects]
[CustomEditor(typeof(tk2dTiledSprite))]
class tk2dTiledSpriteEditor : tk2dSpriteEditor
{
tk2dTiledSprite[] targetTiledSprites = new tk2dTiledSprite[0];
new void OnEnable() {
base.OnEnable();
targetTiledSprites = Get... | C# | Game/Assets/TK2DROOT/tk2d/Editor/Sprites/tk2dTiledSpriteEditor.cs | Conflei/IndiesVSPewDiePie | mit | 5,235 | 167 | codeparrot/github-code |
b321d20ae9cb1a2abb5e3054f2cc603ed223525dea3260c3bc222b79a5ca9447 |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="utf-8"></meta>
<meta name="generator" content="JsDoc Toolkit"></meta>
<title>enchant.gl.State | JsDoc Reference</title>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale... | HTML | public/js/lib/doc/plugins/en/symbols/enchant.gl.State.html | andrewwhipple/ghost | mit | 34,183 | 539 | codeparrot/github-code |
40cc41fb5e0ef16ba325a82faf1bf268ab0edf7e0d854ab83af6f80d72916bf9 | /*
* Copyright (c) 2008-2018 SLIBIO <https://github.com/SLIBIO>
*
* 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
* ... | C++ | src/slib/ui/ui_event_gtk.cpp | SLIBIO/SLib | mit | 9,334 | 288 | codeparrot/github-code |
cb58de5ba421457e9a785c5332797710db2735e43b38110a43801c9e10fd7682 | package zornco.reploidcraft.network;
import net.minecraft.entity.Entity;
import net.minecraft.server.MinecraftServer;
import net.minecraft.world.WorldServer;
import zornco.reploidcraft.ReploidCraft;
import zornco.reploidcraft.entities.EntityRideArmor;
import zornco.reploidcraft.utils.RiderState;
import io.netty.buffer... | Java | src/main/java/zornco/reploidcraft/network/MessageRideArmor.java | ZornTaov/ReploidCraft | mit | 2,840 | 101 | codeparrot/github-code |
b073e93ccad03baef4e5c2b9ba84418a8450d73fe369450e40eb6445e5ecbc3d | //! Basic hello world example, drawing
//! to a canvas.
use ggez::event;
use ggez::graphics::{self, Color};
use ggez::{Context, GameResult};
use glam::*;
use std::env;
use std::path;
struct MainState {
text: graphics::Text,
canvas: graphics::Canvas,
frames: usize,
draw_with_canvas: bool,
}
impl MainS... | Rust | examples/hello_canvas.rs | ggez/ggez | mit | 3,351 | 118 | codeparrot/github-code |
849cf5f664dff7437af73860cd78101cc4924b757cd8cbc07f9160965bba2c48 | # img
# trigger = attributes[12]
# http://ws-tcg.com/en/cardlist
# edit
import os
import requests
import sqlite3
def get_card(browser):
attributes = browser.find_elements_by_xpath('//table[@class="status"]/tbody/tr/td')
image = attributes[0].find_element_by_xpath('./img').get_attribute('src')
if attri... | Python | card.py | electronicdaisy/WeissSchwarzTCGDatabase | mit | 3,175 | 77 | codeparrot/github-code |
64df577c51f5bc1faa9c1ef3342184603c4fb5caae50c8e96c85b741c4301661 | //============================================================================
// Name : GraphGenerator.cpp
// Author : Sindre S. Fjermestad
// Version :
// Copyright : My copyright notice
// Description : Generator for graphs of a certain type
//=======================================================... | C++ | graph_gen.cpp | alexisshaw/COMP6741_ass2 | mit | 10,694 | 218 | codeparrot/github-code |
3c9f2afc6cec56e460283de47bcfec617f8666960bf585ab98a3aad1152101aa | //sys_init_policy.hpp chromatic universe 2017-2020 william k. johnson
#include <memory>
#include <string>
//contrib
#include "ace/Log_Msg.h"
#include "ace/Trace.h"
//cci
#include <cci_time_utils.h>
#include <cci_daemonize.h>
using namespace cpp_real_stream;
namespace cci_policy
{
//
//system in... | C++ | cci_daemon/src/meta-core/policies/sys_init_policy.hpp | chromatic-universe/cci-daemon | mit | 3,642 | 157 | codeparrot/github-code |
4b0d1e4564d14cf07f0a1417d681e8148b9e483acdd8ef40684b740cdd1376ab | package iso20022
// Set of characteristics shared by all individual transactions included in the message.
type GroupHeader41 struct {
// Point to point reference, as assigned by the instructing party, and sent to the next party in the chain to unambiguously identify the message.
// Usage: The instructing party has ... | GO | GroupHeader41.go | fgrid/iso20022 | mit | 4,972 | 104 | codeparrot/github-code |
9d2fe8ebb8d13f5800b63c05c15d3e76ffd0ff940d803137f8c167f61b21fac0 | <!DOCTYPE html>
<html>
<head>
<title>onFocus / onBlur</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlxcombo.css"/>
<script src="../../../codebase/dhtmlxcombo.... | HTML | assets/plugin/dhtmlxCombo_v45_std/samples/dhtmlxCombo/07_events/04_onfocus_onblur.html | pujie/rent_car_willisyudhatama | mit | 1,305 | 48 | codeparrot/github-code |
4574e1efcda8387f61877e8a30bc3010d447339f4ecef69a140ce3fbd92450fc | import React from "react";
import { WorldGeneratorObject } from "../../../../services";
import { Row, Col } from "../../../layout";
import { Card, DatumGroup, PlanetDiagram } from "../../../ui";
export const WorldOverview = ({ world }: WorldOverviewProps) => {
return (
world && (
<Card
title={<p>Wo... | TypeScript | app/src/components/character-creation/world-selector/world-overview/WorldOverview.tsx | claytuna/traveller | mit | 11,469 | 313 | codeparrot/github-code |
53bd71f06099b9b0239b040cac9ebac8bb961556089cb5759e8abc3067ee8cc0 | #
# NineMSN CatchUp TV Video API Library
#
# This code is forked from Network Ten CatchUp TV Video API Library
# Copyright (c) 2013 Adam Malcontenti-Wilson
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), ... | Python | resources/lib/ninemsnvideo/objects.py | predakanga/plugin.video.catchuptv.au.ninemsn | mit | 3,248 | 82 | codeparrot/github-code |
afbfd54cc90757ed38dce3a720b381bad30bc8c7106834b6cb69bf7c13751b22 | package info.bati11.otameshi.dbflute.allcommon;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.dbflute.Entity;
import org.dbflute.hook.CommonColumnAutoSetupper;
/**
* The basic implementation of the auto set-upper of common column.
* @author DBFlute(AutoGenerator)
*/
public class ImplementedC... | Java | spring4+dbflute/src/main/java/info/bati11/otameshi/dbflute/allcommon/ImplementedCommonColumnAutoSetupper.java | bati11/otameshi-webapp | mit | 1,934 | 43 | codeparrot/github-code |
2dbb1627e625b8ca081a16e5ef3f9e2366f0c2bb2464b77cf6030b09a0465181 | // Copyright (c) 2011-2013 The Biton developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "transactionview.h"
#include "transactionfilterproxy.h"
#include "transactionrecord.h"
#include "walletmodel.h"
#inclu... | C++ | src/qt/transactionview.cpp | bitoncoin/biton | mit | 15,503 | 440 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.