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
416eaeee21e1ffc93a34d2188c61f63a0d0b0c90d431e41343970981812700b4
<?php declare(strict_types=1); /** * @return array */ function getSexes() { return [ MAN => 'Nam', WOMAN => 'Nữ' ]; } /** * @param $file * @param $path * @param $width * @param $height * @param null $x * @param null $y * @return null|string */ function cropImageFile($file, $path, $width, $...
PHP
app/Hocs/Helpers/functions.php
phuongdm1987/genealogy
mit
889
44
codeparrot/github-code
bb29db7e4f636eceafb5b68d9f80c2de301b8eb47cc719762b6bd3e5b2c90d4d
const fetch = require("isomorphic-fetch"); function getUrl(query, variables) { const urlRoot = `http://localhost:3000/graphql?query=${query}`; if (variables == null) { return urlRoot; } else { return urlRoot + `&variables=${JSON.stringify(variables)}`; } } function run(query, variables) { const url...
JavaScript
graphql/cli-client.js
jwhitfieldseed/sandbox
mit
2,601
138
codeparrot/github-code
4f8d3086b022b0f2c5c01389758d7d402567449306f99b813f612fadc63f5f60
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosAnalytics extends React.Component { render() { if(this.props.bare) { return <g> <path d="M256,32C141.174,32,46.544,118.404,33.54,229.739C32.534,238.354,32,247.114,32,256c0,1.783,0.026,3.561,0.067,5.333 C3...
JavaScript
src/icons/IosAnalytics.js
fbfeix/react-icons
mit
2,687
36
codeparrot/github-code
4d839a593fcb76dc84c9cc163a744fb2932f60eab4462a898caf70bbcf578c0e
#include "optionsdialog.h" #include "ui_optionsdialog.h" #include "bitcoinunits.h" #include "monitoreddatamapper.h" #include "netbase.h" #include "optionsmodel.h" #include <QDir> #include <QIntValidator> #include <QLocale> #include <QMessageBox> OptionsDialog::OptionsDialog(QWidget *parent) : QDialog(parent), ...
C++
src/qt/optionsdialog.cpp
prolifik/Furrycoin
mit
9,040
283
codeparrot/github-code
0e68e2bc65d0c194c6f48bf2736723adca437439eb6468f7596d699cc586913d
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" /> <title>Titus 3 (WEB)</title> <link href="../../../build/mobile.css" rel="stylesheet" /> <script src="../../../build/mobile.js"></script> </head> <body dir="ltr" class="sectio...
HTML
app/content/texts/eng_web/TT3.html
khangpng/VietnameseBible
mit
3,951
50
codeparrot/github-code
a85bbfa487677bc10e9283b0330df51b976d829f07ae1d3730d625a2b015a15e
# ex:ts=4:sw=4:sts=4:et # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- import copy import json import re from svtplay_dl.error import ServiceError from svtplay_dl.fetcher.hls import hlsparse from svtplay_dl.fetcher.http import HTTP from svtplay_dl.service import OpenGraphThumbMixin from svtplay_dl.se...
Python
lib/svtplay_dl/service/vimeo.py
spaam/svtplay-dl
mit
1,817
48
codeparrot/github-code
8eed6e15f4cc6a69404042c7f90f545d9ac2799f64d9a20a08794677dfca9607
/* tslint:disable:member-ordering no-unused-variable */ import { ModuleWithProviders, NgModule, Optional, SkipSelf } from '@angular/core'; import { CommonModule } from '@angular/common'; import { TitleComponent } from './title.component'; import { UserService } from './user.service'; import { UserServiceConfig } ...
TypeScript
ModuleSample/src/app/core/core.module.ts
CNinnovation/AngularMar2017
mit
907
37
codeparrot/github-code
6f74f734583d927c6b413fea68e334f9c80b4f22b1697ba3e1efdf5bad68e02c
// Avisynth v2.5. // http://www.avisynth.org // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // This pro...
C
misc/avisynth-reader/avisynth/src/plugins/TCPDeliver/TCPCommon.h
dcherian/tools
mit
8,104
209
codeparrot/github-code
750766285c2b3ea1a586721dacbd02fe795251ad04153b7649881225bf427da4
using UnityEngine; using System; using System.Collections; public class AndroidCamera : SA_Singleton<AndroidCamera> { //Actions public Action<AndroidImagePickResult> OnImagePicked; //Events public const string IMAGE_PICKED = "image_picked"; public void SaveImageToGalalry(Texture2D image) { if(image !=...
C#
Assets/Extensions/AndroidNative/Other/Features/AndroidCamera.cs
sonth3vn/DFTChess
mit
1,391
70
codeparrot/github-code
1c6cd780bbc9ef193105a17d3dd432766dc42fcce0fc80ccf5e256b35fcfbce0
'use strict'; if (/^((?!chrome).)*safari/i.test(navigator.userAgent)){ alert("We have detected you are using Safari. Please switch to Chrome or Firefox to properly use this app."); } var weekAbbrev = { Mo: "monday", Tu: "tuesday", We: "wednesday", Th: "thursday", Fr: "friday", Sa: "saturda...
JavaScript
js/parser.js
Xrave/CalendarFromCourses
mit
2,984
77
codeparrot/github-code
83dc9495fc6d9a014f2c44a21fb17075a20e3489048199b500c492696351608b
#ifndef __TERRAINHEIGHTMAP_H__ #define __TERRAINHEIGHTMAP_H__ #include <string> #include "types.h" /* Mostly downloaded and hacked to use SDL_image. Based on * http://www.ogre3d.org/wiki/index.php/Ogre_Compatible_HeightMap * Note that while the original was written for raw, that code has been * fiddled with too, b...
C
src/TerrainHeightMap.h
jdahlbom/ApMech
mit
1,174
49
codeparrot/github-code
38d588383da1e8db1388cb06b8d63665fb2a870eb6736e16704aa2696359d7cc
--- title: "iOS for Web Developers" date: 2012-10-01 00:00 --- I was asked by a reader on Twitter to do an article describing Objective-C for web developers. This is a _huge_ topic, so rather than try to teach you everything, I'm going to point out some similarities and differences between writing web apps and writing...
Markdown
source/blog/2012-10-01-ios-for-web-developers.markdown
yogoo/ashfurrow-blog
mit
10,330
119
codeparrot/github-code
376485baa132678f1cf195f25583ff7bf57f16e615c77ae2114b66c7312bed1d
// autocomplet : this function will be executed every time we change the text function autocomplet() { var min_length = 0; // min caracters to display the autocomplete var keyword = $('#code0').val(); if (keyword.length >= min_length) { $.ajax({ url: 'ajax_refresh.php', type: 'POST', data: {keyword:keywor...
JavaScript
Sales/js/script.js
DeenHaaziq/latestsoft
mit
35,187
1,156
codeparrot/github-code
c49ac3e54797738ac754a7d361803d82bbd728325c81aab3cc837192514d4057
/* * The MIT License (MIT) * * Copyright (c) 2014 The Voxel Plugineering Team * * 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 ri...
Java
src/main/java/com/voxelplugineering/voxelsniper/brush/effect/morphological/LinearBlendMaterialOperation.java
TVPT/VoxelGunsmith
mit
4,052
126
codeparrot/github-code
bad0075f94b68d90bcd1ab3cdddea0410c0ab80bf05f17fc99f22722dbe1fc77
--- layout: default meta: Blog - Ricard Panadès Nadal title: Blog --- <div class="blog wrapper"> <div class="row"> <div class="column"> <h1 class="site__title">{{ page.title }}</h1> </div> </div> <div class="row"> <div class="column"> <section class="post-list row"> {% for post in site.posts %} ...
HTML
blog/index.html
ricardpanades/ricardpanades.com
mit
1,118
43
codeparrot/github-code
3ce5f7fbb4015d2b4bcfafa1f12c78c1f58781696a610ca0b1774fc8d38f9288
import * as React from 'react'; import { FormControl, FormGroup, ControlLabel, Col } from 'react-bootstrap'; import { IField, IFieldError, IFieldBuilderProps, IFieldInputProps } from '../../../../src/data'; interface IState { } export default class SingleLineTextField extends React.PureComponent<IFieldInputProps & IF...
TypeScript
docs/src/components/fields/SingleLineTextField.tsx
asinner/FormBuilder
mit
2,024
59
codeparrot/github-code
115fd9d9416cf4cecefe398314a597a2082eb656fc3d1a38dfde593014d54807
<?php if ($dex_conf->get('ssl') && $_SERVER['HTTPS'] != 'on') { header('Location: https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); exit(); } $form = new Form('login'); $form->addSection(__('Log in'), __('You must log in before you can continue to the admin panel.')); $form->addText('username', __('Us...
PHP
core/admin/login.php
tdewolff/Dex
mit
1,728
59
codeparrot/github-code
935ea575d2a91517e926155636dcfc4477e46b73ee4e0c33ad1067a70080b037
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Login Page - Photon Admin Panel Theme</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"> <link rel="shortcut icon" href="http://photonui.orangehilldev.com/images/photo...
HTML
lib/assets/images/photon/plugins/elrte/js/bootstrap/js/bootstrap/images/photon/js/plugins/dataTables.bootstrap.js.html
user-tony/photon-rails
mit
14,059
183
codeparrot/github-code
1254acb65e054591f6421699ae06ec13300e1b83fd1accaae87c0861a7584566
<!doctype html> <html lang="en"> {% include head.html %} <body class="cv"> {% include navbar.html %} <!-- <div class="space"></div> --> <div class="content-wrapper"> <div class="container"> <div class="row" style=" margin-right: 0px ;" > <!-- This part ...
HTML
_layouts/cv.html
edouardfouche/edouardfouche.github.io
mit
49,664
1,507
codeparrot/github-code
6e24156088db7c09f84dc6c042acaa46de2c372903b9691ce5e81b598b453eb6
<?php /** * Created by PhpStorm. * User: matias * Date: 6/4/17 * Time: 16:53 */ namespace CRMBundle\Repository; use Doctrine\ORM\EntityRepository; class EncuestaResultadoCabeceraRepository extends EntityRepository { public function findByEncuestaFiltrada($encuesta, $filtros = null) { $qb = $t...
PHP
src/CRMBundle/Repository/EncuestaResultadoCabeceraRepository.php
matudelatower/logiautos
mit
2,335
80
codeparrot/github-code
2c22de2e47f56273edda75ef409014b62ec228b8aacd2a9bc9e445a591fe3077
const Assigner = require('assign.js') let assigner = new Assigner() const fp = require('fastify-plugin') const WebSocket = require('ws') const url = require('url') module.exports = { addWSServer: function (paths, wsOptions = {}) { return fp((fastify, opts, next) => { const lib = opts.library || 'ws' if (li...
JavaScript
util/WsPlugin.js
imrefazekas/harcon-radiation
mit
1,845
73
codeparrot/github-code
179d629d75b61e5cc89e21047d19ed8fed673dd8f194f6d7651b4ae28a308a22
var _ = require('underscore'); var keystone = require('../../'); var utils = keystone.utils; /** * Content Class * * Accessed via `Keystone.content` * * @api public */ var Content = function () {}; /** * Loads page content by page key (optional). * * If page key is not provided, returns a hash of all page c...
JavaScript
lib/content/index.js
nickhsine/keystone
mit
4,667
247
codeparrot/github-code
2c8af3dfda83916d9c9746713e99c12ced1eb78e6d246042979d39416ff9b162
#!/usr/bin/env python3 # Questo file legge il file di configurazione, # trova e modifica il parametro eseguendo il rispettivo "write*.py" # Serve per la parte di gestione html in python import cgi import cgitb # Abilita gli errori al server web/http cgitb.enable() # Le mie librerie Json, Html, flt (Thermo(Redis)) i...
Python
var/www/cgi-bin/readsensors.py
raspibo/Thermo
mit
3,144
126
codeparrot/github-code
4699448e84e06af36deb26b78a7cbeac16e8a9a2e16433cb03714efab0bffdc7
# # testing rufus-doric # # Tue Mar 23 11:07:23 JST 2010 # require File.join(File.dirname(__FILE__), 'base') require 'rufus/doric' class Owner < Rufus::Doric::Model db :doric doric_type :owners _id_field :name property :name property :vehicle_id end class Car < Rufus::Doric::Model db :doric dori...
Ruby
test/ut_7_looser_associations.rb
jmettraux/rufus-doric
mit
1,829
105
codeparrot/github-code
ddcb05cf998372112fe741b67b182a19120af9f204144f4ce4ba93726851a8d5
import json from pprint import pprint import time import io # from http://www.codigomanso.com/en/2011/05/trucomanso-transformar-el-tiempo-en-formato-24h-a-formato-12h-python/ def ampmformat (hhmmss): """ This method converts time in 24h format to 12h format Example: "00:32" is "12:32 AM" "13...
Python
ProblemGeoUSA/data_wrangle_total.py
inachen/cs171-hw4-chen-ina
mit
1,779
68
codeparrot/github-code
413952a257ea37831f1314de1a0d9f9b3f179734ae806d1337c02e14b570fd26
package com.challengers.trackmyorder; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.EditText; import android.widget.Toast; import com.challengers.trackmyorder.util.Constants; public class LoginActivity extends...
Java
app/src/main/java/com/challengers/trackmyorder/LoginActivity.java
kalyandechiraju/track-my-order
mit
1,906
51
codeparrot/github-code
af67ff1b1399d74f32567fc018fcdff3300ac124e8cf17588e76c0de00548b9d
package com.stuffwithstuff.magpie.interpreter.builtin; import java.util.List; import com.stuffwithstuff.magpie.ast.Expr; import com.stuffwithstuff.magpie.interpreter.Callable; import com.stuffwithstuff.magpie.interpreter.Checker; import com.stuffwithstuff.magpie.interpreter.ClassObj; import com.stuffwithstuff.magpie....
Java
src/com/stuffwithstuff/magpie/interpreter/builtin/FieldProperty.java
munificent/magpie-optionally-typed
mit
1,355
49
codeparrot/github-code
205900c67ae2d2584ef4f2f68564473c4126ff497675014d1ef7d6e78543d633
function MetricConfiguationDataView(metricConfiguration) { var DynamicPropertyType = { Boolean : 1, Int : 2, Double : 3, String : 4, Color : 5, Percent : 6 }; var _items = []; var _rows = []; var _currentColumnId = 0; var enabledColumnId...
JavaScript
Discovery/MetricConfigurationEditior - Copy/metricConfigurationDataView.js
FactLook/SlickGrid
mit
10,402
372
codeparrot/github-code
188d5de6ac087da27d9197c0cff415b3b8964ca4ea9a3e81c3eb576ec4f1fa5b
#BitArray #Yu.Yang # class bitarray(): def __init__(self,length,defaultValue=False): if (length < 0): raise Exception("Length param error") self.array=[] self.length=length fillValue=defaultValue for i in range(self.length): self.array.append(defaultV...
Python
B/BitArray/BitArray.py
NiuXWolf/Introduction-to-Algorithms
mit
2,972
90
codeparrot/github-code
09a3a725391244890da3dc7cea57d4dcd939a65dd92ea7c99bb9374f43624393
# gets the number of voters and the number of candidates and makes the tables def set_up puts "How many candidates are there?" $cands = gets.chomp.to_i $magic_num = (($cands / 2).ceil + 1) puts "The magic number is: #{$magic_num}" $cand_table = Array.new($cands) { Array.new(2, 0) } # This table holds the actual ...
Ruby
Text_Main.rb
nesw/Listy_Vote
mit
2,681
141
codeparrot/github-code
911375a727d1adbff4456b47be2c006eea14b2b3c86e081e151f80abb94d66dd
// Copyright (c) 2010-14 Bifrost Entertainment AS and Tommy Nguyen // Distributed under the MIT License. // (See accompanying file LICENSE or copy at http://opensource.org/licenses/MIT) #ifndef COMMON_TIMEDEVENT_H_ #define COMMON_TIMEDEVENT_H_ #include "Common/Debug.h" /// A ticker with a configurable time interval....
C
src/Common/TimedEvent.h
pandaforks/tido-rainbow
mit
1,750
85
codeparrot/github-code
0bd7e92d420bcaa8643bb4899383d0ce525206222f5341343fb94ec29e2ba7c5
<HTML><HEAD> <TITLE>Review for Girl, Interrupted (1999)</TITLE> <LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css"> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0172493">Girl, Interrupted (1999)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Jam...
HTML
data science/machine_learning_for_the_web/chapter_4/movie/22679.html
xianjunzhengbackup/code
mit
5,214
82
codeparrot/github-code
4ce0086884fa792424010c2abff81bffdc1558ef6dd2e9ee5fea1838310e1e77
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import argparse from configparser import SafeConfigParser class Configurable(object): """ Configuration processing for the network """ def __i...
Python
configurable.py
Impavidity/text-classification-cnn
mit
4,672
167
codeparrot/github-code
3bdf9b6c2950f55926527759a1e19f49a41dd93ae1ee1687d24f8f63d0565bd1
<?php declare(strict_types=1); namespace ApiClients\Client\Travis\Resource\Async; use ApiClients\Client\Travis\CommandBus\Command\BuildCommand; use ApiClients\Client\Travis\CommandBus\Command\JobCommand; use ApiClients\Client\Travis\CommandBus\Command\JobsCommand; use ApiClients\Client\Travis\Resource\Build as BaseBu...
PHP
src/Resource/Async/Build.php
php-api-clients/travis
mit
1,050
40
codeparrot/github-code
359bb9671f61dfeed5873c6b9f5af5be36d0f8c74cfe51513cb0cc6d4ea138a0
package net.maizegenetics.trait; import net.maizegenetics.dna.snp.GenotypeTable; import net.maizegenetics.dna.snp.FilterGenotypeTable; import net.maizegenetics.trait.FilterPhenotype; import net.maizegenetics.util.TableReport; import net.maizegenetics.taxa.IdGroupUtils; import net.maizegenetics.taxa.TaxaList; ...
Java
src/net/maizegenetics/trait/MarkerPhenotype.java
yzhnasa/TASSEL-iRods
mit
5,590
165
codeparrot/github-code
13c28d66c0d939fa9adfc92a0132fd6d1f8f24fbbfe5685d4e1d56fe8a1ab134
package guilds; import org.bukkit.plugin.java.*; import org.bukkit.plugin.*; import guilds.listeners.*; import org.bukkit.event.*; import guilds.commands.*; import org.bukkit.command.*; import java.util.logging.*; import com.sk89q.worldguard.bukkit.*; import java.util.*; import org.bukkit.*; import org.bukkit.entity.P...
Java
src/guilds/GuildsBasic.java
Oruss7/Guilds
mit
3,654
124
codeparrot/github-code
3bb118da9180fae41738058f7d72347f93f9b5f6c0e701eb63c7465710e6ad6b
/** * Created by suman on 09/05/16. */ var core = require('chanakya'), http = require('http'), Q = require('q'); core.validator('isPhoneno', function (message) { var deferred = Q.defer(); http.get('http://apilayer.net/api/validate?access_key=eba101687da317945a45f798464256da&number=' + message + '&country_c...
JavaScript
app/validators.js
skeep/FooTelecom
mit
1,349
53
codeparrot/github-code
6d8cc3c72273c4a03ba7a097ea7db3c7febedfda1ea4062b31f3706e1a17983a
import {FileSelect} from 'widget/fileSelect' import {Form, form} from 'widget/form/form' import {FormCombo} from 'widget/form/combo' import {Layout} from 'widget/layout' import {Panel} from 'widget/panel/panel' import {activatable} from 'widget/activation/activatable' import {compose} from 'compose' import {msg} from '...
JavaScript
modules/gui/src/app/home/map/legendImport.js
openforis/sepal
mit
11,891
362
codeparrot/github-code
7bb3f53f46e5861455affaeb45ed30663ddb25daccfa546a866b59ac5fa8b24e
package au.org.ala.test; import lombok.val; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.Reader; import java.nio.file.Paths; public class FileResolver implements Resolver { private final File file; public FileResolver(String path) { this.file ...
Java
library/src/main/java/au/org/ala/test/FileResolver.java
sbearcsiro/functional-test-harness
mit
984
39
codeparrot/github-code
c8142e2bb36571e332c0451f78655af40ed81e45ad55b305d8fd85e4120ca9c9
from pyquery import PyQuery as pq from proxypool.schemas.proxy import Proxy from proxypool.crawlers.base import BaseCrawler from loguru import logger BASE_URL = 'https://www.xicidaili.com/' class XicidailiCrawler(BaseCrawler): """ xididaili crawler, https://www.xicidaili.com/ """ urls = [BASE_URL] ...
Python
proxypool/crawlers/public/xicidaili.py
Python3WebSpider/ProxyPool
mit
961
36
codeparrot/github-code
6786d6ad35dbf10be71bccc6b5e60444ad49d34a527d98eefb3bedf657a3de11
<!DOCTYPE html> <html lang="en"> <head> <!--base href='/' --> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="Software Development, C++, C#, PHP, Go, Javascript, NodeJ...
HTML
angularcode/src/index.html
makhtardiouf/makhtardiouf.github.io
mit
4,765
118
codeparrot/github-code
d0f161ef5355e213e75d6f8c2a49c76802523d7bf8c640d31892dd1e502df070
import * as ActionTypes from '../constants/constants'; const initialState = { isAuthenticated: false, isFetching: false, loaded: false, message: '' }; const authReducer = (state = initialState, action) => { switch (action.type) { case ActionTypes.REQUEST_CHECK_TOKEN: return { ...stat...
JavaScript
shared/redux/reducer/authReducer.js
kweestian/kwy
mit
1,482
61
codeparrot/github-code
194f35ee61d8732299fc95f3370caf50f8029ab3ac3977c7ac077df42aa2e735
<?php namespace kvibes\SeleyaBundle\EventListener; use Doctrine\Bundle\DoctrineBundle\Registry as Doctrine; use Symfony\Component\Security\Http\Event\InteractiveLoginEvent; class LoginListener { private $doctrine; public function __construct(Doctrine $doctrine) { $this->doctrine = $doctrine; ...
PHP
src/kvibes/SeleyaBundle/EventListener/LoginListener.php
Komet/seleya
mit
871
32
codeparrot/github-code
1b723193cf07bb8b7faa26eae2af88b34ae301fbf965b24af68f73b0e3ddd6cb
<?php return [ /* |-------------------------------------------------------------------------- | API Vendor |-------------------------------------------------------------------------- | | Your vendor is used in the "Accept" request header and will be used by | the consumers of your API. Typ...
PHP
app/config/packages/dingo/api/config.php
18601673727/UserCenter
mit
4,765
159
codeparrot/github-code
8d261819d596cb8ebfb50ea0026e93eae34a6a8af2de980cbc350038142093cb
from interface.design.ui_screen import Ui_wnd_gifextract from PyQt5 import QtWidgets import sys import listener import config import ffmpeg import queue import interface.menus.Frame_CreateGif import interface.menus.Frame_ExtractFrames import interface.menus.Frame_Queue class Screen(QtWidgets.QMainWindow): def ...
Python
src/alpha.py
KaiAPaulhus/GifExtract
mit
1,716
58
codeparrot/github-code
4e32aa3cf7319605a6460e7bfbc0b3146a7cb89df436080bd35b4c9ca9b8c4cd
/* * MIT License * * Copyright (c) 2017-2020 RiiConnect24 and its contributors * * 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/xyz/rc24/bot/listeners/DataDogStatsListener.java
Seriell/RC24-Bot
mit
2,239
62
codeparrot/github-code
8233bacf3a1a861cfba6b552a5afe5d2cad03c57280a13328aed9519ce384ebb
function isString(value) { if (typeof value !== 'string' || value === '' || value === null) { return false; } return true; } function isNumber(value) { if (typeof Number.parseInt(value, 10) !== 'number' || Number.isNaN(value) || value === null) { return false; } return t...
JavaScript
utils/validator/utils/validator.utils.js
Team-Fade/teamwork-web-applications-with-node.js
mit
766
40
codeparrot/github-code
62a952f2c48f3f2058fc4de69839194b9fec3999f62c8652a1ae5d34900293bc
/* SageComers® - http://www.aspxcommerce.com Copyright (c) 2011-2014 by SageComers The Software can be used without modification for any purpose provided that the copy you are using is the licensed product that you have paid for. The number of unique installation of the software is limited which is fixed at the time...
C#
SageFrame/Modules/AspxCommerce/AspxItemsManagement/ItemsManage.ascx.cs
AspxCommerce/AspxCommerce2.7
mit
12,619
256
codeparrot/github-code
5b02642057c3542311938d6e63233ec2d922f519baa4ec7cc20e8a4160bda83f
package cyua.android.core.location; import java.util.ConcurrentModificationException; import java.util.LinkedList; import java.util.List; import java.util.ListIterator; import cyua.android.core.AppCore; import cyua.android.core.AppCore.AppService; import cyua.android.core.location.LocationProcessor.ProcessorListener;...
Java
AndroidLib/src/cyua/android/core/location/LocationService.java
just-4-fun/Po.Grom
mit
13,451
464
codeparrot/github-code
1a9b83ccbd49d5d88139836e4127e7f7364fab2be99171f3d5a35e41a042e54b
// Copyright (C) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in project root for information. package com.microsoft.ml.spark import com.microsoft.ml.spark.schema.SchemaConstants.MMLTag import com.microsoft.ml.spark.schema.{CategoricalColumnInfo, CategoricalMap, Categoric...
Scala
src/value-indexer/src/main/scala/IndexToValue.scala
rastala/mmlspark
mit
3,325
85
codeparrot/github-code
51d8f74c5871cc9d931dccb5193676c62efa867033900d5a70f8b3ddc869f8f2
<?php /* * The MIT License * * Copyright 2018 David Schoenbauer. * * 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 us...
PHP
src/Orm/Events/AbstractModelEvent.php
dschoenbauer/orm
mit
2,298
77
codeparrot/github-code
dba89a82dab860d01d6176f6862e94c91ea260e2df20017bf80256758e9a5ad7
package com.maximus.imr.rest import java.text.SimpleDateFormat import java.util.Date import com.maximus.imr.rest.util.RETURN import com.maximus.util.Properties._ import com.sun.jersey.api.client.{Client, ClientResponse, WebResource} /** * NoarfiService is a scala/java implementation for the noafi services in the ...
Scala
scala/src/main/java/com/maximus/imr/rest/NoarfiService.scala
maxird/imr-ca-sdk
mit
3,117
91
codeparrot/github-code
1dc3e77740b8d58591c0e090667a4b738552e387637e3b87595a4cf8dbb9bf40
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="generator" content="rustdoc"> <meta name="description" content="API documentation for the Rust `News` struct in crate `proxer`."> <meta name="keywords" co...
HTML
docs/proxer/notification/struct.News.html
Souryo/proxer-rs
mit
14,776
196
codeparrot/github-code
583fd1cecbeee4c2a6e23e38b4add31a0c1c8b97329dffecba036b26b257acd9
{{ form.hidden_tag() }} De:<br> {{ form.source_email(size=40, readonly=true) }}<br> {% for error in form.source_email.errors %} <span class="fmerror">[{{ error }}]</span><br> {% endfor %} <div id="errors_source_email"></div> Para:<br> {% if message.timestamp %} {{ form.dest_email(size=40, readonly=true) }}<br> ...
HTML
app/templates/_message.html
dsloop/FranERP
mit
2,661
80
codeparrot/github-code
7bab51e00d471288f8beb0e6b536be856b4fbedf2012ee70a5b9474a33e44a40
import { IHiloIdGenerator } from "./IHiloIdGenerator"; import { IDocumentStore } from "../../Documents/IDocumentStore"; import { DocumentConventions } from "../../Documents/Conventions/DocumentConventions"; import { IRavenObject } from "../../Types/IRavenObject"; import { getLogger } from "../../Utility/LogUtil"; cons...
TypeScript
src/Documents/Identity/AbstractHiloIdGenerator.ts
ravendb/ravendb-nodejs-client
mit
1,406
39
codeparrot/github-code
763ff3a680f027f054153f824cb135f220a782601b45fcebec64efec60891faf
require('dotenv').config({silent:true}); var feathers = require('feathers'); var bodyParser = require('body-parser'); var rest = require('feathers-rest'); var socketio = require('feathers-socketio'); var fms = require('../lib'); var AutoService = fms.AutoService; const hooks = require('feathers-hooks'); const errorHan...
JavaScript
test/test-app.js
geistinteractive/feathers-filemaker
mit
1,334
58
codeparrot/github-code
57da670a0b7c0da0788296db37fa6b9505f5c308b0c55ad8a17118ef797c5781
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2012 Torus Knot Software Ltd Permission is hereby granted, free of charge, to any person ...
C
include/Ogre/OgreNode.h
Kanma/Ogre
mit
35,967
775
codeparrot/github-code
5fd2a508d9982fdac95f03bcf32ced93514ce0d4697f0e22a7e00615285dc2a1
// Math.extend v0.5.0 // Copyright (c) 2008-2009 Laurent Fortin // // 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, ...
JavaScript
js/numbers.js
dapangchi/stampcircles
mit
5,313
219
codeparrot/github-code
00e80272256349aeb240a410543022bee82cfe25147718e45780806a39458c35
# config valid only for current version of Capistrano lock '3.4.0' set :application, 'eb-worker-benchmark' set :repo_url, 'https://github.com/tawan/eb-worker-benchmark.git' # Default branch is :master # ask :branch, `git rev-parse --abbrev-ref HEAD`.chomp # Default deploy_to directory is /var/www/my_app_name # set :...
Ruby
config/deploy.rb
tawan/eb-worker-benchmark
mit
1,522
61
codeparrot/github-code
dc6d36605b0caa44598676e4fee8fba8c9f54c6c9275d6b553052821dc700259
package org.squiddev.plethora.integration.refinedstorage; import com.raoulvdberge.refinedstorage.RS; import com.raoulvdberge.refinedstorage.api.network.INetwork; import com.raoulvdberge.refinedstorage.api.network.node.INetworkNode; import com.raoulvdberge.refinedstorage.api.util.Action; import dan200.computercraft.api...
Java
src/main/java/org/squiddev/plethora/integration/refinedstorage/MethodExportItem.java
SquidDev-CC/plethora
mit
2,915
66
codeparrot/github-code
45ed9e6a6c22fda8619fe24861bd4301437d295869bc98ace65e4e616bd0cf57
# Implicit Func to InstMethod, zero or one args ## perl[func] -> ruby[ $_.func] ## perl[func VALUE] -> ruby[ VALUE.func] sub ImpFuncToInstMeth { my ($rubyfunc) = @_; my %arghash = @arglist; $arghash{'min'} //= 0; $arghash{'max'} //= 1; $arghash{'default'} //= '$_'; my @allowed = qw(min max defa...
Perl
lib/perl/P2R/FunctionMap.pm
nanobowers/perl5-to-ruby
mit
7,429
191
codeparrot/github-code
6f11c1076e29c698560c4818dfd1d537ffa598b1ad7b818996e40dd8e4ee3f16
#region License // Distributed under the MIT License // ============================================================ // Copyright (c) 2019 Hotcakes Commerce, LLC // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software // and associated documentation files (the "Software")...
C#
DevSamples/MyPaymentMethod/DesktopModules/Hotcakes/Core/Admin/Parts/PaymentMethods/MyPaymentMethod/StartMyPaymentMethodCheckout.cs
HotcakesCommerce/core
mit
3,990
100
codeparrot/github-code
aa02875cd0008be4110ddf99744cbfa9389b52e8af597d1232b4f6468506442c
using System; using System.Collections.Generic; using System.Data.Common; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DBUtil { public partial class DBSession : ISession { #region DeleteById<T> 根据Id删除 /// <summary> /// 根据Id删除 /// </summary> ...
C#
DBHelper/DBHelper/Session/DBSessionDelete.cs
0611163/DBHelper
mit
6,264
198
codeparrot/github-code
40bcce6b8a01f50c2981597f14aff1b04b5a467b3531afcab0b2d6e0f10bad6f
(function() { 'use strict'; /** * Get the main module (shared for Workout). */ angular.module(appName) /** * Login Controller. */ .controller('ConfirmBookingController', ConfirmBooking); ConfirmBooking.$inject = ['$state', '$filter', '$http', 'config', '$loc...
JavaScript
app/confirm-booking/controller/controller.js
madhumitamohan/scutops-madhu
mit
2,835
78
codeparrot/github-code
66606a1846cd382970c5d3f66df62f19bc052543b285d21a00b894a86f234b75
<?php namespace Web\Session\Storage; use Web\Session\ModuleBase; use Core\Server; class Internal extends ModuleBase implements ISessionStorage { protected $data; private $is_open = false; private $is_empty = false; private $is_loaded = false; private $is_cli; function __construct(){ $this->is_cl...
PHP
system/lib/Framework/Web/Session/Storage/Internal.php
splitice/radical-php
mit
2,274
116
codeparrot/github-code
0c30979dcfc44e5f5c3793290cbfb3fd450cf56c7049a4f1ed0e2075c54d072e
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_arrlen.c :+: :+: :+: ...
C
src/arr/ft_arrlen.c
Shakadak/libft
mit
1,150
38
codeparrot/github-code
0ad78d9c861449db821ebaa542e6f458c3e6bf303afb52f6332a3945ef8403d5
<?php namespace Cerad\Bundle\GameBundle\Action\Project\GameReport\Update; use Symfony\Component\HttpFoundation\Request; use Cerad\Bundle\CoreBundle\Action\ActionModelFactory; use Cerad\Bundle\CoreBundle\Event\Game\UpdatedGameReportEvent; use Cerad\Bundle\GameBundle\Event\FindResultsEvent; class GameReportUpdateMod...
PHP
src/Cerad/Bundle/GameBundle/Action/Project/GameReport/Update/GameReportUpdateModel.php
cerad/ng2014
mit
3,535
116
codeparrot/github-code
0b80dc33b228f9126ed186ba8cff00f08c54690b0d080f36c749b731611ef2c2
from wtforms import IntegerField, SelectMultipleField from wtforms.validators import NumberRange from dmutils.forms import DmForm import flask_featureflags class BriefSearchForm(DmForm): page = IntegerField(default=1, validators=(NumberRange(min=1),)) status = SelectMultipleField("Status", choices=( (...
Python
app/main/forms/brief_forms.py
AusDTO/dto-digitalmarketplace-buyer-frontend
mit
3,546
89
codeparrot/github-code
6f9157cfab515e7e96c1ccb590c5a7c52cda882d1917161902a277994d320c54
# coding=gbk import os import re import string def isMov(filename): # ÅжÏÊÇ·ñΪµçÓ°Îļþ suffix = filename.split('.')[-1].lower() # ÌáÈ¡ºó׺ pattern = re.compile(r'mpg|mpeg|m2v|mkv|dat|vob|avi|wmv|rm|ram|rmvb|mov|avi|mp4|qt|viv') if pattern.search(suffix): # Æ¥ÅäÊÇ·ñΪµçÓ°¸ñʽ return True...
Python
CleanMoviePrefix.py
windcode/xtools
mit
1,426
45
codeparrot/github-code
b892d41ea7dcf00ba0ffc7f7f2e8b3fe032820eb213e17ef3036fcc37af13c2b
//////////////////////////////////////////////////////////////////////////////// // Name: autocomplete.h // Purpose: Declaration of class wex::autocomplete // Author: Anton van Wezenbeek // Copyright: (c) 2018 Anton van Wezenbeek ////////////////////////////////////////////////////////////////////////////////...
C
src/include/wex/autocomplete.h
antonvw/wxExtension
mit
1,425
61
codeparrot/github-code
c88c6cc61491efa5c016c504d429782f7dc462e35dd575f492d935273fb63092
var Message = require('../models/message'); exports.create = function(req, res) { new Message({ senderID: req.body.senderID, senderAlias: req.body.senderAlias, acceptorID: req.body.acceptorID, acceptorAlias: req.body.acceptorAlias, subject: req.body.subject, content: req.body.content }).sav...
JavaScript
src/routes/messages.js
markusblasek/lets.go
mit
1,541
64
codeparrot/github-code
a5b87d85f1b2c39cfd43f4cacf21633fac5433b54480bb52ea68fea2004b4fb4
<?php class SettingController extends BaseController { public function getIndex() { return View::make('setting')->with(array("currentUser" => User::getCurrentUser(), "setting" => self::getSetting(), "services" => self::getService() )); } public function getSetting() { return DB::table('setting')->g...
PHP
app/controllers/SettingController.php
pobsuwan/lmms
mit
5,112
148
codeparrot/github-code
13e59bb397b735151ff2f0fe4ac3a7b54c4ceba8acf6b4b0c3cab28bffe852b7
import { createAction, createThunkAction } from 'redux/actions'; import { getShortenUrl } from 'services/bitly'; import { saveAreaOfInterest } from 'components/forms/area-of-interest/actions'; export const setShareData = createAction('setShareData'); export const setShareUrl = createAction('setShareUrl'); export con...
JavaScript
components/modals/share/actions.js
Vizzuality/gfw
mit
1,287
44
codeparrot/github-code
d51efa321f8448e2208739ece0841d08bde677e6756ae356f7ad9a2702cc5c05
# coding: utf-8 import db_info import db_cancel import db_news import hashlib from tweeter import format_info, format_cancel, format_news import settings log = settings.log def add_info_to_queue(q, *args): try: # 更新した数をカウント updated = 0 for lec_info in args: id = db_info.add_in...
Python
lib/add_db.py
pddg/Qkou_kit
mit
1,832
76
codeparrot/github-code
8031fc90157edc3a12e256ce045f060db0f1279fbf639f440b9a28302e58be21
var connect = require('..'); var assert = require('assert'); var app = connect(); app.use(connect.bodyParser()); app.use(function(req, res){ res.end(JSON.stringify(req.body)); }); describe('connect.bodyParser()', function(){ it('should default to {}', function(done){ app.request() .post('/') .end(f...
JavaScript
test/bodyParser.js
krahman/connect
mit
8,411
302
codeparrot/github-code
67024984c80f7f9942889d0fa349db781cab7b1f5f5a9b241ebbbb7845d844e3
package hw.hw5; public class SegmentAnalyst extends AnalystDecorator { public SegmentAnalyst(StockAnalyst component) { super(component); } public String reasons() { if (segmentConfidenceLevel() != 0) { return getComponent().reasons() + " and Segment Analyzed"; } else {...
Java
ood/hw/src/hw/hw5/SegmentAnalyst.java
rootulp/school
mit
942
39
codeparrot/github-code
759ae42f353d541f98e083415b111db10dcaae32dff3c71f1d57e0b268156995
#ifndef __REFRESH_H #define __REFRESH_H #include <vector> #include "channel_state.h" #include "common.h" #include "configuration.h" namespace dramsim3 { class Refresh { public: Refresh(const Config& config, ChannelState& channel_state); void ClockTick(); private: uint64_t clk_; int refresh_int...
C
src/refresh.h
umd-memsys/DRAMsim3
mit
555
32
codeparrot/github-code
4b9b33e9896f2a3d7e02a8d046997a680f18ba469d88ca7c04a4bfd2140e85e5
<?php use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Config\Loader\LoaderInterface; class AppKernel extends Kernel { public function registerBundles() { $bundles = array( new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), new Symfony\Bundle\SecurityBundle\Sec...
PHP
app/AppKernel.php
mrsuh/fl-newspaper
mit
1,651
51
codeparrot/github-code
bccdebf1eb23f49fe40acae27e626923d11cc4983b7e841eda5f93428da2ee13
<?php include_once($_SERVER['DOCUMENT_ROOT']."/wow.php"); function check_email_address($email) { // First, we check that there's one @ symbol, // and that the lengths are right. if (!preg_match("<^[^@]{1,64}@[^@]{1,255}$>i", $email)) { // Email invalid because wrong number of characters // in one s...
PHP
doRegister.php
ErmanSayin/WOWMeter
mit
4,606
117
codeparrot/github-code
41bfdf54a171ad72e8908ea81813d8a60c7f8be5b391d6019caf1ba321e1b5c2
/*----------------------------------------------------------- Name: fisp Author: fisper@163.com Date: 2016.12 Copyright (c). All rights reserved. ------------------------------------------------------------*/ #pragma once #include "base.h" //#include "basecomp.h" namespace fisp { namespace utility { /*--------...
C
Utility/include/object.h
forifelse/fisp
mit
18,494
679
codeparrot/github-code
5666435f869a33377cd2a4c2551567bef3f2d78f21eae1c0799902582478e2da
import Reflux from 'Reflux'; import cartActions from '../actions/cartActions.js'; import _ from 'lodash'; // Items to fill onFillCart action let items = [ { title: 'Iphone 12', price: '129', id: 1 }, { title: 'Galaxy S14', price: '119', id: 2 }, { title: 'Siemens A52', price: '...
JavaScript
app/scripts/stores/cartStore.js
Mottoweb/exness-test
mit
5,222
210
codeparrot/github-code
7ec80163a4f2e05440717bc008920c7c87a03ff5bc7a99ba0e585f2f4837df81
import argparse from collections import defaultdict def calculateJaccardIndex(x,z,neighbours): shared = neighbours[x].intersection(neighbours[z]) combined = neighbours[x].union(neighbours[z]) return len(shared)/float(len(combined)) if __name__ == '__main__': parser = argparse.ArgumentParser(description='Calculate...
Python
analysis/separate/jaccard.py
jakelever/knowledgediscovery
mit
2,061
57
codeparrot/github-code
1299373b6fd37e697d789ee8f3933a59ffb8c368207ce86ac9ea69f7262c43da
package org.simpleflatmapper.tuple; public class Tuple14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> extends Tuple13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> { private final T14 element13; public Tuple14(T1 element0, T2 element1, T3 element2, T4 element3, T5 element4, T6 eleme...
Java
sfm-tuples/src/main/java/org/simpleflatmapper/tuple/Tuple14.java
arnaudroger/SimpleFlatMapper
mit
2,495
60
codeparrot/github-code
d45845566a885555bcd129937fdf5fe7bf1df0f3fba655a4ff040477eef3ec7b
package com.jmstudios.corvallistransit.utils; import com.google.android.gms.maps.model.LatLng; import com.jmstudios.corvallistransit.models.Stop; import org.joda.time.DateTime; import java.util.Calendar; import java.util.HashMap; import java.util.Iterator; import java.util.LinkedHashSet; import java.util.List; publ...
Java
app/src/main/java/com/jmstudios/corvallistransit/utils/Utils.java
cartermp/WMB
mit
3,856
139
codeparrot/github-code
6a5a91a1ba0b5c710cf7cc5af3108d94060b00ab859e16e40a76dc33319b7185
/// <reference path="../../scripts/ref/jquery.d.ts" /> /// <reference path="../../scripts/ref/VSS.d.ts" /> interface ITogglFormResponse { activityDescription: string; project: string; tags: string; } interface ITogglOpts { method: string; baseUrl: string; token: string; crendentials: any; ...
TypeScript
public/javascripts/vsotogglbutton.d.ts
GersonDias/toggl-buttonVSOExtension
mit
1,039
43
codeparrot/github-code
6f14a653ac530eb3053c985504b0eeb7786f45ada410ecb1d2d92b3371667e94
module Y2018.M05.D08.Exercise where {-- Okay, now that we have the new articles downloaded from the REST endpoint and the ArticleMetaData context from the database, let's do some triage! So, just like with the ArticleMetaData, we have to generalize the Article- TriageInformation type from the specific Package and (Da...
Haskell
exercises/HAD/Y2018/M05/D08/Exercise.hs
geophf/1HaskellADay
mit
2,432
77
codeparrot/github-code
f29dccb54ad8e265f72770e945b1932ad04965108ac5605e6cbded6ef81db5ff
var detector = (function () { function foodCollision(snake, food, ui) { var snakeHeadX = snake.parts[0].getPosition().x; var snakeHeadY = snake.parts[0].getPosition().y; var foodX = food.getPosition().x; var foodY = food.getPosition().y; if(snakeHeadX === foodX && snakeHeadY...
JavaScript
JS OOP/JS-OOP-Modules-and-Patterns-Homework/01-Snake/scripts/detector.js
kaizer04/Telerik-Academy-2013-2014
mit
2,580
78
codeparrot/github-code
5a53e582aa0f132ae5bc19d9db7d768d961ee87297410fb6c78fc171cad7a264
'use strict'; var ANONYMOUS_USER_ID = "55268521fb9a901e442172f8"; var mongoose = require('mongoose'); //var Promise = require("bluebird"); var dbService = require('@colabo-knalledge/b-storage-mongo'); var mockup = { fb: { authenticate: false }, db: { data: false } }; var accessId = 0; function resSendJsonProtected(r...
JavaScript
src/backend/dev_puzzles/knalledge/core_old/lib/modules/kEdge.js
mprinc/KnAllEdge
mit
12,463
244
codeparrot/github-code
caad7aa54b82e92f5849d2ecbf2a93105262723d38fff952fc7e1ef76d2aa041
<?php namespace Uneak\AssetsBundle\Webpack\Configuration; use Uneak\AssetsBundle\Javascript\JsItem\JsAbstract; class Stats extends JsAbstract implements ExtraInterface { use ExtraTrait; private $assets; private $assetsSort; private $cached; private $cachedAssets; private $children; private $chunk...
PHP
Webpack/Configuration/Stats.php
uneak/AssetsBundle
mit
10,290
619
codeparrot/github-code
9d6b3bca382f4b5d5d7f4fd1739e4d733eb6bf200a67bf23a98d2bbc77096169
/** * @depends {nrs.js} */ var NRS = (function(NRS, $, undefined) { var _password; NRS.multiQueue = null; NRS.setServerPassword = function(password) { _password = password; } NRS.sendOutsideRequest = function(url, data, callback, async) { if ($.isFunction(data)) { async = callback; callback = data; ...
JavaScript
html/ui/js/nrs.server.js
litecoin-extras/nxt-public-key-client
mit
31,822
1,232
codeparrot/github-code
dcf7f7ac22a8110c533ee821d488fb9c3559b440ba421185f717a56b7d0d25ea
/* NetHack 3.7 context.h $NHDT-Date: 1596498530 2020/08/03 23:48:50 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.41 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /*-Copyright (c) Michael Allison, 2006. */ /* NetHack may be freely redistributed. See license for details. */ /* If you cha...
C
include/context.h
Nax/citizenhack
mit
6,870
168
codeparrot/github-code
cd69950126f15482f5552a0b6a4e5abcc60f472eb4db73f828427dbb1ca1d6a1
#pragma once #include <glm/glm.hpp> struct LineSegment { glm::vec2 start; glm::vec2 end; LineSegment(float a_startX, float a_startY, float a_endX, float a_endY); LineSegment(const glm::vec2& a_start, const glm::vec2& a_end); LineSegment(const LineSegment& a_line); bool contains(const glm::vec2& a_point) const...
C
projects/AIAssessment/Rectangle.h
emlowry/AIEFramework
mit
2,830
75
codeparrot/github-code
1476672d2ff150e7653ab91ded7f78136d03aca9e59f3b0efd758d9707a89f67
--- title: Founder Friday | Subaru, Health, and Easter date: 2019-04-19 14:00:00 -04:00 categories: - founder friday image: "/uploads/skyla-design-1414576-unsplash.jpg" posts: - Founder Friday | Credit Invisibility, Twitter, and Video - Founder Friday | Obedience Training, Sinking Funds, and FinCon - Founder Friday | V...
Markdown
_posts/2019-04-19-founder-friday-subaru-health-and-easter.markdown
BurntRocket/maggiegermano
mit
3,158
55
codeparrot/github-code
38878cbedafc5e63c31893d625b0c52b2e2225c1a52a6accf2fda4f98bf18316
/** * \file * \brief Inline functions to allow manipulation of raw capability addresses * * This file is not part of the standard includes, because most user code should * treat #capref as an opaque value. */ /* * Copyright (c) 2007, 2008, 2009, 2010, 2012, ETH Zurich. * All rights reserved. * * This file is...
C
include/barrelfish/caddr.h
8l/barrelfish
mit
4,867
166
codeparrot/github-code
f8c4c7a0975957e6aa29dd8157d6ba7bbef1e335c6d5ee3246410e13369d4796
/* * Copyright LWJGL. All rights reserved. * License terms: http://lwjgl.org/license.php */ package org.lwjgl.opengl; import org.lwjgl.system.*; import org.lwjgl.system.windows.*; import java.lang.reflect.Field; import java.nio.ByteBuffer; import java.nio.IntBuffer; import java.util.*; import static java.lang.Mat...
Java
04lwjgl/code/lwjgl/org/lwjgl/opengl/GL.java
MatthijsKamstra/haxejava
mit
23,325
668
codeparrot/github-code
fcb4be4ec8b90ca7a23e70d052d8dfc8f6ac0a39c6d914c5030d2ea6464a171e
import config from '../config'; import changed from 'gulp-changed'; import gulp from 'gulp'; import gulpif from 'gulp-if'; import imagemin from 'gulp-imagemin'; import browserSync from 'browser-sync'; function images(src, dest) { return gulp.src(config.sourceDir + src) .pipe(changed...
JavaScript
gulp/tasks/images.js
dnaloco/digitala
mit
1,061
35
codeparrot/github-code
b1cffedadc12b319a04c175682ed55fde48395ad21158cd41b7b1a9d556eb07b
<?php /* * This file is part of the API Platform project. * * (c) Kévin Dunglas <dunglas@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace ApiPlatform\Core\Bridge\NelmioApiDoc\Extracto...
PHP
src/Bridge/NelmioApiDoc/Extractor/AnnotationsProvider/ApiPlatformProvider.php
tuanphpvn/core
mit
8,353
209
codeparrot/github-code
ae0a29e8face4eb93918de3890854fb20f6373acae8d3eee6ad53a90e720f6b8
import scrapy import xml.etree.ElementTree as ET from locations.items import GeojsonPointItem URL = 'http://hosted.where2getit.com/auntieannes/2014/ajax?&xml_request=%3Crequest%3E%3Cappkey%3E6B95F8A2-0C8A-11DF-A056-A52C2C77206B%3C%2Fappkey%3E%3Cformdata+id%3D%22locatorsearch%22%3E%3Cdataview%3Estore_default%3C%2Fdat...
Python
locations/spiders/aunt_annes.py
iandees/all-the-places
mit
10,953
200
codeparrot/github-code
280d7f862b32d54ffce52a6de8109c0badebb808e06288580de6b5841b339e65
'use strict'; var Promise = require('bluebird'); var IDLE = 0; var ACTIVE = 1; var STOPPING = 2; function deferred () { var _resolve; var _reject; var promise = new Promise(function (resolve, reject) { _resolve = resolve; _reject = reject; }); return { promise: promise, resolve: _resolve, ...
JavaScript
lib/IntervalWorker.js
Janpot/fantastiq
mit
1,994
89
codeparrot/github-code
848a5baf16e10dd41e8968981bfc708c68114a7f71345ffce7f1ff117f3282e6
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2013-2014 Pokécoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/foreach.hpp> #includ...
C++
src/script.cpp
pokecoin/PokeCoin
mit
66,775
1,982
codeparrot/github-code