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
fe3c942be2f71c594224712e3a6d7f96efd3c2b6e89d44153682416f4fc7b859
$(document).ready(function() { $('.acao-visualizar').click(function() { $('#modal-visualizar').modal('toggle'); }); $('.acao-remover').click(function() { $('#modal-remover').modal('toggle'); }); }); function inserirLinhaTabela() { t_length = document.querySelector('tbody tr').childElementCount; t...
JavaScript
scripts/painel.js
carluazevedo/SisGC
mit
1,131
50
codeparrot/github-code
9fcd3d8acdc086fc77e730d3ffe44e18322953c46a5b1a9be04f8e767562827e
<?php /** * Fuel is a fast, lightweight, community driven PHP 5.4+ framework. * * @package Fuel * @version 1.8.1 * @author Fuel Development Team * @license MIT License * @copyright 2010 - 2018 Fuel Development Team * @link http://fuelphp.com */ /** * NOTICE: * * If you need to make modi...
PHP
fuel/core/config/upload.php
Restoration/FuelPHP-CMS
mit
2,608
99
codeparrot/github-code
7941f375263a32ae584bc1d94ce3ea319521df9d0ba7579f15cb7fa859516e6f
using System.Text; namespace Photon { /// <summary> /// 代码生成类 /// </summary> public class CodePrinter { StringBuilder _builder = new StringBuilder(); string _indend; public override string ToString() { return _builder.ToString(); } pub...
C#
Photon/Utility/CodePrinter.cs
davyxu/PhotonSharp
mit
1,312
68
codeparrot/github-code
0b79ed6d7aeda994ae00c69db95cfdee2dd361d509dd3a9fc4084ce4f2ada44a
using System.Collections.Generic; using System.Linq; using BugsnagUnity.Payload; namespace BugsnagUnity { class Breadcrumbs : IBreadcrumbs { readonly object _lock = new object(); Configuration Configuration { get; } LinkedList<Breadcrumb> _breadcrumbs; /// <summary> //...
C#
src/BugsnagUnity/Native/Fallback/Breadcrumbs.cs
bugsnag/bugsnag-unity
mit
1,831
69
codeparrot/github-code
6c7e18d8a1ce13ddba69776f3548448dc94472ba2f30b95b245ab288719455ca
// SSEDefs.h // A comprehensive set of macros for SSE #ifndef _MANTA_SSEDEFS_H_ #define _MANTA_SSEDEFS_H_ #include <MantaSSE.h> //Placing this before MANTA_SSE ifdef so that non-sse code //doesn't break when iostream isn't included. #include <iostream> #ifdef MANTA_SSE #include <xmmintrin.h> #include <emmintrin.h> ...
C
Core/Math/SSEDefs.h
jeffamstutz/rfManta
mit
15,294
463
codeparrot/github-code
0e61a3b5923ca77a4129e54324dd3f56210aa36f84f3ec619747e3c2d2a3c7d7
pub use crate::tracker::TrackerMode; use serde::Deserialize; use std::collections::HashMap; #[derive(Deserialize)] pub struct UDPConfig { bind_address: String, announce_interval: u32, } impl UDPConfig { pub fn get_address(&self) -> &str { self.bind_address.as_str() } pub fn get_announce_i...
Rust
src/config.rs
naim94a/udpt
mit
2,781
120
codeparrot/github-code
61d2fe103608360db13139cc52e149c6ea64bc26924aafd12f0f868580d85b81
///////////////////////////////////////////////////////////////////////////// // Name: src/x11/font.cpp // Purpose: wxFont class // Author: Julian Smart // Modified by: // Created: 17/09/98 // RCS-ID: $Id: font.cpp,v 1.18 2005/08/22 21:58:32 MR Exp $ // Copyright: (c) Julian Smart // Licence:...
C++
code/wxWidgets/src/x11/font.cpp
SickheadGames/Torsion
mit
25,078
926
codeparrot/github-code
ab38063f376fa2d165412eff13f4a1e51e14d9ad2952fdcef3b92d624712e3be
<?xml version="1.0" ?><!DOCTYPE TS><TS language="th_TH" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About LahCoin</source> <translation>เกี่ยวกับ บิตคอย์น</translation> ...
TypeScript
src/qt/locale/bitcoin_th_TH.ts
aaronlahcoin/lahcoin
mit
96,645
2,917
codeparrot/github-code
54f2f88c6758fec90914e49d10302dd244cdfbec5362d12125e9d60d41cfd58c
package main import ( "fmt" "github.com/drone/routes" "github.com/eknkc/amber" "github.com/yosssi/goesjp/consts" "github.com/yosssi/gologger" "github.com/yosssi/goutils" "html/template" "io/ioutil" "labix.org/v2/mgo" "labix.org/v2/mgo/bson" "launchpad.net/goyaml" "net/http" "os" "runtime" "strings" "ti...
GO
main.go
yosssi/goesjp
mit
3,354
147
codeparrot/github-code
a85e57952b1c37fae747cf873032e6c507764271babc5c181d537d00d7bd8644
/* j/3/end.c ** */ #include "all.h" u3_noun u3qc_end(u3_atom a, u3_atom b, u3_atom c) { if ( !_(u3a_is_cat(a)) || (a >= 32) ) { return u3m_bail(c3__fail); } else if ( !_(u3a_is_cat(b)) ) { return u3k(c); } else { c3_g a_g = a; c3_w b_w = b; c3_w len_w = u3r_met(a_g, ...
C
pkg/urbit/jets/c/end.c
urbit/urbit
mit
810
50
codeparrot/github-code
48a0b0c9bd9eb340530a662515deaa2ba72dab4ddf4befef2177ffdbb386beca
<link rel="import" href="../../bower_components/polymer/polymer.html"> <link rel="import" href="../../bower_components/core-ajax/core-ajax.html"> <polymer-element name="execution-service" attributes="executionId res"> <template> <style> :host { display: none; } ...
HTML
src/services/execution-service.html
mzruya/oo-portal
mit
1,539
46
codeparrot/github-code
248dfac3f4c3fc2baeaf4c2564eff1b41fda7e9b024c199488d9b4ba6eaa057a
class UsersController < ApplicationController respond_to :json def sign_in if params[:user].nil? || params[:user][:email].nil? || params[:user][:password].nil? return render :status => 422, :json => {:error => "Missing user email and/or password"} end user = User.where(:email => params[:user]...
Ruby
app/controllers/users_controller.rb
vdaubry/photo-api
mit
1,040
36
codeparrot/github-code
4dabc77e79ed6d13bf141d210b40932001ba2a9fc7086a44c068cd46e90c22c5
/* mz_strm_split.c -- Stream for split files Version 2.8.7, May 9, 2019 part of the MiniZip project Copyright (C) 2010-2019 Nathan Moinvaziri https://github.com/nmoinvaz/minizip This program is distributed under the terms of the same license as zlib. See the accompanying LICENSE file for the full ...
C
Pods/SSZipArchive/SSZipArchive/minizip/mz_strm_split.c
crazypoo/ArcheryScoreBoard
mit
13,155
475
codeparrot/github-code
9aff8bbf9faed8b2a12a31788885f62bc6a67a06b40a1290371f2ccb4ae61e93
/* * This file is part of Sponge, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwar...
Java
src/main/java/org/spongepowered/common/event/tracking/phase/plugin/PreWorldTickListenerState.java
Grinch/SpongeCommon
mit
3,170
69
codeparrot/github-code
181109acc410961a1108ac36abf45067f2e08f01ca88fa67636bf87b8409c67b
package io.github.xwz.base.adapters; import android.content.Context; import android.graphics.Point; import android.support.v17.leanback.widget.ImageCardView; import android.support.v17.leanback.widget.Presenter; import android.view.ViewGroup; import android.widget.ImageView; import io.github.xwz.base.R; import io.git...
Java
base/src/main/java/io/github/xwz/base/adapters/EpisodePresenter.java
xwz/iview-android-tv
mit
1,608
47
codeparrot/github-code
9d4c00ac6257cce95e109e2255ef2662cb702cc8ee4c97f2721e85ed8be9d016
<?php /** * @author Andrey Samusev <Andrey.Samusev@exigenservices.com> * @copyright andrey 4/30/13 * @version 1.0.0 */ namespace FDevs\ArticleBundle\Model; use FDevs\UserBundle\Document\User; class Article { /** * @var $id */ protected $id; /** * @var string $title */ protec...
PHP
src/FDevs/ArticleBundle/Model/Article.php
4devs/blog
mit
7,265
431
codeparrot/github-code
50d9ca11223e66be20b391b41d8abe17812f087530dacde6ead7194049eff0ad
module FreeForm class DateParamsFilter def initialize(*args) end def call(params) date_attributes = {} params.each do |attribute, value| if value.is_a?(Hash) call(value) # TODO: #validate should only handle local form params. elsif matches = attribute.match(/^(\w+)\...
Ruby
lib/freeform/form/date_params_filter.rb
brycesenz/freeform
mit
941
35
codeparrot/github-code
6b1e5501f134cf4623303eeee8fa138526a03d6ee3d78874f66edd81dbc5433f
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="zh-TW"> <head> <title>教育部《成語典》</title> <meta http-equiv="Pragma" content="no-cache"> <meta name="AUTHOR" content="FlySheet Information Services, Inc."> <meta h...
HTML
cw-data/1000-1999/CW0000001470.html
BuzzAcademy/idioms-moe-unformatted-data
mit
16,462
326
codeparrot/github-code
ee9ec57306cf53cbdc34fbd14bb4090d04ad78ec6b5730334282aca5db50c17b
/* Copyright (c) 2015-present Advanced Micro Devices, 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, ...
C++
samples/1_Utils/hipDispatchLatency/hipDispatchLatency.cpp
GPUOpen-ProfessionalCompute-Tools/HIP
mit
6,223
152
codeparrot/github-code
3358972e8653cb58ab83bab6fb96148871e1611ebbfe02f982fbc70a375ce391
package setup import ( "bufio" "errors" "fmt" "io" "os" "strings" "sysware.com/ivideo/utils" ) type propertiesFileServiceImpl struct { } func (propertiesFileServiceImpl *propertiesFileServiceImpl) GetInfo(fileName string) (map[string]string, error) { if utils.IsEmptyStr(fileName) { return nil, errors.New("...
GO
client/src/sysware.com/ivideo/service/setup/propertiesFileServiceImpl.go
johnnywww/swd
mit
1,331
69
codeparrot/github-code
327dec60f1cbf59d53006d955b9c9a76585dd8903baf06889085d1935e4504a3
<?php namespace Thenbsp\Wechat\OAuth; use Thenbsp\Wechat\Bridge\Http; use Doctrine\Common\Collections\ArrayCollection; class AccessToken extends ArrayCollection { /** * 刷新 access_token. */ const REFRESH = 'https://api.weixin.qq.com/sns/oauth2/refresh_token'; /** * 检测 access_token 是否有效. ...
PHP
src/OAuth/AccessToken.php
thenbsp/wechat
mit
2,421
116
codeparrot/github-code
01ca6137580f04bc952e830f9298dada3db559a84c6bb3341e9c8bc439ad12aa
package algo.array; /** * Created by chenc on 2017/7/9. */ class TreeNode { int val; TreeNode left; TreeNode right; TreeNode(int x) { val = x; } } public class ConstructBinaryTree { public TreeNode buildTree(int[] inorder, int[] postorder) { if(postorder==null || postorder.leng...
Java
codes/src/algo/array/ConstructBinaryTree.java
Brucechen13/algocodes
mit
1,082
36
codeparrot/github-code
d2e3bd496a9d127e623935d94828243e6a8aa64939a61e4092f153b6efa40738
import { connect } from 'react-redux'; import { Map } from '../components/Map'; import { geolocate, nearbyLocations, getLocations, handleMarkerClick, mapCenter } from '../actions'; const mapDispatchToProps = dispatch => { return { geolocate: () => dispatch(geolocate()), getLocations: (googleMapsLo...
JavaScript
react-ui/src/containers/MapContainer.js
the-oem/happy-hour-power
mit
856
32
codeparrot/github-code
4c32ad22d593f1904252ededc47ec30dc1fb99b65b695ac96fcf09f73683a907
<?php namespace BEE\BackOffice\BeeeaseBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class LocalisationType extends AbstractType { /** * @param FormBuilderInterface $builder * @pa...
PHP
src/BEE/BackOffice/BeeeaseBundle/Form/LocalisationType.php
agoraproject/miel_de_village
mit
1,827
58
codeparrot/github-code
60f307119dd26e4b80110d67b5a3693b5fa757b4cd19534102ef035178f6339a
package com.vertigrated.sitd.service; import com.google.common.base.Function; import com.google.common.collect.ImmutableSet; import com.google.common.collect.ImmutableSortedSet; import com.google.common.collect.Lists; import com.google.inject.Inject; import com.google.inject.Provider; import com.vertigrated.pattern.St...
Java
src/main/java/com/vertigrated/sitd/service/DatabaseBoardService.java
jarrodhroberson/shot-in-the-dark
mit
3,815
99
codeparrot/github-code
e1d1f6701b81ac2a6af0660345fe485e8f63d52612409f24087086093043242f
//noinspection JSUnresolvedVariable import Exponent from 'exponent'; import React from 'react'; import { StyleSheet, Text, View, SegmentedControlIOS } from 'react-native'; import {StackNavigator} from 'react-navigation'; //noinspection NpmUsedModulesInstalled import RNCalendarReminders from 'react-native-calend...
JavaScript
main.js
lyahdav/qreminders-rn
mit
4,033
166
codeparrot/github-code
0cbf1dfa20c7e178c74463b7c6d7ecd39fffd2f0f27b604e1e212b69ab313266
import { Component } from '@angular/core'; import { DefaultEditor } from './default-editor'; @Component({ selector: 'checkbox-editor', styleUrls: ['./editor.component.scss'], template: ` <input [ngClass]="inputClass" type="checkbox" class="form-control" [name]="ce...
TypeScript
src/ng2-smart-table/components/cell/cell-editors/checkbox-editor.component.ts
abrahamrkj/ng2-coda-table
mit
993
31
codeparrot/github-code
cefedf67ffbb0ef777ef16fd92b214b5cd1296dcb9558200eb4a327da1cd13ca
<?php class Application { protected $controller = 'home'; protected $view = 'index'; protected $params = []; public function run() : void { $url = $this->parseUrl(); /** * If first parameter is set, isn't empty, and exists as controller, set as controller * Else...
PHP
app/src/lib/Application.php
johnathanmiller/PHP-MVC-Framework
mit
2,410
84
codeparrot/github-code
6b60698742aad5c6383c9dde7be22ab7b3f55865529494ca790a52971969f5e9
/* * PrimeTime Watchface v1.3 * * preferences.c * * Copyright (c) 2014 Brain Dance Designs 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 restriction, including with...
C
src/preferences.c
krnrnee/pebble-primetime
mit
3,445
132
codeparrot/github-code
8d477db982cd75cf5dd96d8f323c82e74be8265e6693d299a0afccbbfe27fc86
/** * Javascript Bindings that apply to changing of permissions * in the admin tools */ (function( yourcode ) { yourcode( window.jQuery, window, document ); } (function( $, window, document ) { var baseURL = $("head base").attr( "href" ); $(function( ) { var IDs = $("#ids").val( ); var incBG = $("#...
JavaScript
site/app/js/files/orca-files.js
BioGRID/ORCA
mit
1,687
74
codeparrot/github-code
992ecfa4d074ea83a5d0eb23bbdccab16d32435d7095429f378ee4003002c962
package com.freetymekiyan.algorithms.other; /** * The API: int read4(char *buf) reads 4 characters at a time from a file. * The return value is the actual number of characters read. For example, it * returns 3 if there is only 3 characters left in the file. * By using the read4 API, implement the function int read...
Java
src/main/java/com/freetymekiyan/algorithms/other/ReadNGivenRead4.java
FreeTymeKiyan/LeetCode-Sol-Res
mit
1,556
49
codeparrot/github-code
1aa3db8046137a02aeff0a8771e6e05e7ce2bf05603375863a3e1a0095a454e9
;!function ($, undefined) { var Template = [ '<div class="bcd-toggler-wrapper {{SIZE}} ">', '<div class="bcd-toggler ', '{{STATE}} {{STATE_STYLE_CLASS}}">', '<div class="bcd-toggler-switch"></div>', '</div>', '<div class="bcd-toggler-lb...
JavaScript
static/js/bcd-toggler.jquery.js
bcdxn/sluicegear-old
mit
2,355
58
codeparrot/github-code
51fc9ce4cab7bb944907adb93983fe8cc3f909c0f4f67212710e89eff2819588
Date: Tue, 05 Nov 1996 00:32:34 GMT Server: NCSA/1.5 Content-type: text/html Last-modified: Wed, 30 Aug 1995 21:21:33 GMT Content-length: 20490 <html> <head> <title> Lecture notes - Chapter 8 - MAL and Registers</title> </head> <BODY> <h1> Chapter 8 -- MAL and registers</h1> <pre> REGISTERS and MAL ----------------...
HTML
webkb/other/wisconsin/http:^^www.cs.wisc.edu^~cs354-2^cs354^lec.notes^MAL.html
ML-SWAT/Web2KnowledgeBase
mit
20,635
712
codeparrot/github-code
fde646de3b1bee96316233be8f8357e824f6d6357e2f281c55df32dc1f2a709b
require('./array'); /* Credit for the type retrieval function and regex goes to StackOverflow user Jason Bunting http://stackoverflow.com/questions/332422/how-do-i-get-the-name-of-an-objects-type-in-javascript */ var funcNameRegex = /function (.{1,})\(/; function getType(obj) { return (obj).constructor.toStrin...
JavaScript
app/utils.js
kklimuk/functionalify
mit
2,517
100
codeparrot/github-code
a74a4fe65d8b32e4e62d7b43768f57105cec6a7acd2a9f949216878dcf8239f0
'use strict'; import { join, parse, resolve } from 'path'; import * as find from 'find'; import { ISourceConfig, ISourceConfigElement } from '../internalTypes'; import { debugUtil } from '../util/debug'; import { validateDriver } from '../util/validateDriver'; import { homeDir } from './home'; const debug = debugUt...
TypeScript
src/config/source.ts
cheminfo/database-aggregator
mit
1,518
60
codeparrot/github-code
1a5da0e8f5f2472dd3aa34dd94dd9ff52ce71a4ddda2dc235feafbbbcbab5b7a
<?php namespace AppBundle\Entity\Document; use AppBundle\Entity\Team\Team; use Doctrine\ORM\Mapping as ORM; use JMS\Serializer\Annotation as Serializer; use Symfony\Component\Validator\Constraints as Assert; /** * Class TeamLogo. * * @ORM\Entity() */ class TeamLogo extends Document { /** * @var Team ...
PHP
src/AppBundle/Entity/Document/TeamLogo.php
chypriote/france-v2
mit
776
42
codeparrot/github-code
0772f205544f7f4eb51403ea77c2f797d15cc46b349ebec21053237f95a2dc33
/************************************************************************* Maladie - Structure d'une maladie ------------------- début : 06/05/17 copyright : (C) 2017 par VOGEL e-mail : hugues.vogel@insa-lyon.fr ********************************************************************...
C
DNAnalyzer/DNAnalyzerServer/Maladie.h
benjaminchazelle/DNAnalyzer
mit
1,878
72
codeparrot/github-code
32e603225156161c93f627afa8ee998efe03e9e7af0efd93b7c068beb362b787
% Created 2016-12-12 Mon 15:24 % Intended LaTeX compiler: pdflatex \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{grffile} \usepackage{longtable} \usepackage{wrapfig} \usepackage{rotating} \usepackage[normalem]{ulem} \usepackage{amsmath} \usepackage{...
TeX
577FinalExam.tex
jamesnhan/COM_S_577_Final_Exam_Study_Guide
mit
45,776
914
codeparrot/github-code
3979edc4be453c71a84960ea3e1679644f0b80d9113b932ecdb465fd97758192
# -*- coding: utf-8 -*- import json import os import urllib.parse from functools import wraps import bottle from bottle import ( route, run, jinja2_template as template, redirect, request, response, static_file, BaseTemplate, ) import tweepy BASE_DIR = os.path.dirname(os.path.abspath(_...
Python
app.py
kk6/tssm
mit
5,552
179
codeparrot/github-code
91ca8097068c42e8a18a4e5c77b04aa37aaadd7cd51d3ccf6d51c553376201d2
import Vue from 'vue' import Router from 'vue-router' // 定义切割点,异步加载路由组件 let Home = () => import('@/pages/Home.vue') let List = () => import('@/pages/List.vue') let NotFound = () => import('@/pages/NotFound.vue') let Appshell = () => import('@/pages/Appshell.vue') Vue.use(Router) export function createRouter () { r...
JavaScript
09-PWA/study1/06-ssr-service-worker/src/router.js
csxiaoyaojianxian/JavaScriptStudy
mit
851
44
codeparrot/github-code
560f7255b165a33845e53605234b590d1b410e16bb11d89a1e2d37966bd36d72
using System; using System.Collections.Generic; using System.Security.Claims; using System.Security.Principal; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using Microsoft.AspNet.Identity; namespace ASP.NET_Web_Forms_application { public partial class SiteMast...
C#
ASP.NET-Web-Forms/01. Introduction-to-ASP.NET/ASP.NET Web Forms application/Site.Master.cs
primas23/Homeworks
mit
2,875
81
codeparrot/github-code
989885ae45f48733bab633d71d11a5a9c11484ffb7e9d229bdd53b7c759b4f6e
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef __cplusplus # error This header can only be compiled as C++. #endif #ifnd...
C
src/protocol.h
b2bcoin/b2bcoin
mit
3,375
138
codeparrot/github-code
8c2e55cf183d6a87f98e389577b790ef46df0d2788db270f23362edcb7cf9eee
/*global module:false*/ module.exports = function(grunt) { require('time-grunt')(grunt); // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), // start a node server connect: { preview: { options: { port: 9000, base: 'preview' ...
JavaScript
Gruntfile.js
noahcollins/eslint-ui-concept
mit
8,366
357
codeparrot/github-code
f46480147c648eff157d3a409abe44303f916d9b71ff223e335da1bcc5d7c003
#include <stdio.h> #include <stdlib.h> #include "queries.h" #include "callbacks.h" #include "tparam.h" TPARAM* tParamInit(sqlite3* db, int lang, GSList* pokeList, int *size){ TPARAM* tParam = calloc(5, sizeof(TPARAM)); tParam[0].db = db; tParam[0].lang = lang; tParam[0].pokeList = pokeList; tPara...
C
src/tparam.c
Pyr0x1/cledex
mit
1,181
45
codeparrot/github-code
428c7fe23dd7ab4f84831049280511e54fb5205feccf7281972573017167692c
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use Illuminate\Foundation\Auth\AuthenticatesUsers; use Session; use User; class LoginController extends Controller { /* |-------------------------------------------------------------------------- | Login Controller |-----...
PHP
app/Http/Controllers/Auth/LoginController.php
adl1995/zoho-portal
mit
2,909
111
codeparrot/github-code
aa3140dbc20bc478dcd0d285f59c64ee4e0fc97a051f16cd96d7f2eeee3cf2e1
"""Entity and System Managers.""" import six from ecs.exceptions import ( NonexistentComponentTypeForEntity, DuplicateSystemTypeError, SystemAlreadyAddedToManagerError) from ecs.models import Entity class EntityManager(object): """Provide database-like access to components based on an entity key.""" ...
Python
ecs/managers.py
seanfisk/ecs
mit
8,344
214
codeparrot/github-code
4f87a54b3cdc939bfb1409f6716abf8c3c6c1ab04ca5eb1c6b405a50ab15a3b0
#include "gdrawer.hpp" #include <QTemporaryFile> #include <QTextStream> #include <QString> #include <QRegularExpression> #include <QProcess> #include <QDir> #include <QDebug> #include <QThread> #if defined(Q_OS_OSX) #define FPC_PREFIX "_" #define FPC "./fpc.sh" #define GCC_PREFIX "" #define GCC "./gcc.sh" #define SO "...
C++
src/pascal.cpp
bdolgov/gdrawer
mit
3,810
151
codeparrot/github-code
c5b230bc7677d779e5c40474032b812635a1dfa30861430dd8a2c9263353b38c
module Giphy class Client def trending(options={}) get('/trending', options) end def translate(word) get('/translate', s: word) end def search(keyword, options={}) options_hash = {q: keyword}.merge(options) get('/search', options_hash) end def favorite(id) ...
Ruby
lib/giphy/client.rb
sebasoga/giphy
mit
1,128
62
codeparrot/github-code
33dd758d0f8bcaa09ddf95bf350c18361d7568e8e5ede92734e068e71a96a58d
<?php use Symfony\Component\Config\Loader\LoaderInterface; use Symfony\Component\HttpKernel\Kernel; class AppKernel extends Kernel { public function registerBundles() { $bundles = [ new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), new Symfony\Bundle\SecurityBundle\Security...
PHP
app/AppKernel.php
mpalourdio/symfonytuto
mit
1,387
37
codeparrot/github-code
91c6836ed92f2caa8eddaa09c88902a9d2a04c2717bfa512ecd7b2e47b2c8b1b
class Solution(object): def candy_2(self, ratings): """ :type ratings: List[int] :rtype: int """ n = len(ratings) cdy = [1,] * n # climb from left -> right v, p = 0, 0 while p < n: # local min v = p ...
Python
leetcode/135.Candy.py
sogapalag/problems
mit
1,335
44
codeparrot/github-code
d5ff646c21dc8e07bd1c158cb1c7312ce82c67f79bcd867730e34a348a44d574
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; using System.Xml.Serialization; using BrightstarDB.Utils; namespace BrightstarDB.PerformanceBenchmarks { public class Program { static void Main(string[] args) { ...
C#
src/benchmarking/BrightstarDB.PerformanceBenchmarks/Program.cs
BrightstarDB/BrightstarDB
mit
3,592
103
codeparrot/github-code
f961be1764d2c5663034e91f4e766317afc219a4a3e2dfe431b8e88521293a31
<?php /** * Date: 2016/3/28 */ namespace DesignPatterns\Structural\Registry; abstract class Registry { const LOGGER = 'logger'; /** * @var array */ protected static $storedValues = array(); /** * @param $key * @param $value */ public static function set($key, $value) ...
PHP
DesignPatterns/Structural/Registry/Registry.php
fyzzy1943/design-pattern-learn-php-
mit
503
33
codeparrot/github-code
7ced283cfb5d4d7f7c57f3168a96b2d7fea2292d9a845d1f2ccff0862f87e4c7
#!/usr/bin/env python from __future__ import division import numpy as np from mpl_toolkits.mplot3d import Axes3D import matplotlib as mpl import matplotlib.pyplot as plt from scipy import linalg import csv import codecs import copy def comparison(trajOne, trajTwo): segmentOne=np.array(trajOne) segmentTwo=np....
Python
guided-motor-primitives/src/roman14_primitive.py
smorante/continuous-goal-directed-actions
mit
5,788
171
codeparrot/github-code
d479059e8bd0e41f74a0fb58ac63491cf5d6ef5c9184db7c380ad9a2506f67e9
<?php namespace Faker\Test\Provider\el_GR; use Faker\Provider\el_GR\PhoneNumber; use Faker\Test\TestCase; /** * @group legacy */ final class PhoneNumberTest extends TestCase { public function testFixedLineNumber() { $fixedLineNumber = $this->faker->fixedLineNumber(); self::assertNotSame(' '...
PHP
test/Faker/Provider/el_GR/PhoneNumberTest.php
stof/Faker
mit
2,548
78
codeparrot/github-code
575a8b04dedad948b2018cf08829954da1936971dd24b906d7ea8ad77e5ad61f
package org.diorite.material.blocks.others; import java.util.Map; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; import org.diorite.BlockFace; import org.diorite.cfg.magic.MagicNumbers; import org.diorite.material.blocks.AttachableMat; import org.diori...
Java
src/main/java/org/diorite/material/blocks/others/WallBannerMat.java
joda17/Diorite-API
mit
5,830
200
codeparrot/github-code
c7d25d8af94c6bf64c81c0957d85a2b04b12513a84debbb0ecb84044a834fcd4
'use strict'; const Path = require('path'); const bytes = require('bytes'); const Promise = require('bluebird').Promise; const workerpool = require('workerpool'); const usage = require('pidusage'); const logger = require('../logger.js'); const deepCopy = require('../util.js').deepCopy; /** * Worker that spawns mul...
JavaScript
lib/workers/forking.js
seomoz/qless-js
mit
3,492
124
codeparrot/github-code
a7da8aa8254234d58a7cf2ee9c6f330d1df180665d29ec927e1408b6dfb07976
/* Reference: http://lua-users.org/wiki/SimpleLuaApiExample */ /* * test.c * Example of a C program that interfaces with Lua. * Based on Lua 5.0 code by Pedro Martelletto in November, 2003. * Updated to Lua 5.1. David Manura, January 2007. */ #include <stdlib.h> #include <stdio.h> #include <luaunpanic.h> #define...
C
3rdparty/github/luaunpanic/test/luawrapperTester2.c
jddurand/c-marpaESLIF
mit
3,920
131
codeparrot/github-code
bd0d395f15b43cd88ede9ee98d1c50751bf4a60da3340da6c4b6ee380b0b9ee1
/* * Copyright (c) 2010, Silas Sewell * All rights reserved. * * This file is subject to the MIT License (see the LICENSE file). */ #include "utils.h" #include <cstdlib> #include <cstring> #include <iostream> #include <limits.h> #include <pthread.h> #include <stdlib.h> #include <string> #include "common.h" #incl...
C++
src/utils.cc
silas/tyrion
mit
5,227
225
codeparrot/github-code
6dd59858a47db1d73c74750aa6d4cc9f30f54c9cce2361d3ed81be93b48ffc13
<!DOCTYPE html> <html> <head> <title></title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $value = $("#tempat_taro_json").text(); console.log($value); $.ajax({ url : "event-guards.php", ...
PHP
assets/data/coba.php
rizkynurs/ci_mytra_dashboard
mit
2,222
97
codeparrot/github-code
bbf5351101cfba10d292cb51abedd36d939cf5ae03d519725b2b6526873ef803
var glslify = require('glslify'); var CanvasRenderer = require('fontpath-canvas'); var RobotFont = require('../utils/fonts/robot-font'); var _ = require('underscore'); var constants = require('../utils/constants'); var appStore = require('../stores/app-store'); var TVScreen = function(fragmentShader, textData, row, co...
JavaScript
mobile/app/tv-menu/tv-screen.js
kenjiSpecial/portfolio2016
mit
8,856
245
codeparrot/github-code
171a3ff2e5f362732eed12181e9b765fcf89d2b2598fdb30ff1bcf2831fb6ba0
require 'bigdecimal' require 'date' module Shoulda module Matchers module ActiveModel # The `validate_inclusion_of` matcher tests usage of the # `validates_inclusion_of` validation, asserting that an attribute can # take a whitelist of values and cannot take values outside of this list. #...
Ruby
lib/shoulda/matchers/active_model/validate_inclusion_of_matcher.rb
reacuna/shoulda-matchers
mit
18,166
620
codeparrot/github-code
5a17e7d73fb81609d81cc4e183fe53f04c0e8c2c551bf44953634c8532166c43
require "pigeon/version" require 'pigeon/gateway' require 'pigeon/request' require 'pigeon/shared_request' require 'pigeon/transaction_registration_request' require 'pigeon/payment_request' require 'pigeon/threeds_validation_request' require 'pigeon/void_request' require 'pigeon/refund_request' require 'pigeon/response...
Ruby
lib/pigeon.rb
flowmedia-solutions/pigeon
mit
5,405
124
codeparrot/github-code
f8777b0e3053bf1ce88edd823d35b8537070642809520176023a27786ad94441
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <title>Neo4j-Enterprise - Page 1 - iGov Inc Neo4j Blog</title> <meta name="description" content="" /> <meta name="HandheldFriendly" content="True" /> <meta name="viewport" content="wi...
HTML
tag/Neo4j-Enterprise/index.html
igovsol/blog
mit
9,233
210
codeparrot/github-code
24cbb62f3096dce4d7c9e7d94c0c6f485d5efe9dfb4cdea4f98839bb9441db4d
/// <reference path="_reference.js" /> "use strict"; window.onload = function () { var paperTelerik = Raphael(10, 10, 400, 200); var telerikLogo = paperTelerik.path("M10 30 L30 10 L70 50 L50 70 L30 50 L70 10 L90 30"); telerikLogo.attr({ "stroke-width": 7, stroke: "yellowgreen" }); ...
JavaScript
JS DOM and UI/05.Raphael/scripts/DrawLogos.js
idoychinov/Telerik_Academy_Homework
mit
1,647
65
codeparrot/github-code
f523fcff0c6adcde10bb2c9e4f182a7be840adc2f1cb7864b44fbaddc0f3caed
/* MQTT-SN command-line dump Copyright (C) 2015-2016 Nicholas Humfrey 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...
C
mqtt-sn-dump.c
MichalFoksa/mqtt-sn-tools
mit
4,546
170
codeparrot/github-code
106a449ad9f87ff8f018a4913223ef57ddf4db2508bb4b99a33854abad17b256
<?php namespace App; class Helper { public static function formatNumber($number): string { return number_format($number, 2, '.', ''); } public static function rawNumberToInteger(float $rawNumber): int { return (int) round($rawNumber * 100); } public static function detect...
PHP
app/Helper.php
pix3ly/budget
mit
781
38
codeparrot/github-code
8d7c3bf39b1666ed23ebc9286a65c03bbba88455b7249f625b6bd15f84b66775
import itertools import pydoc import matplotlib.pyplot as plt import matplotlib.ticker as ticker import matplotlib.offsetbox as offsetbox from mpl_toolkits.axes_grid.anchored_artists import AnchoredText from functools import wraps def _decorate_all(decorators): """ Decorate a function with all decorators ""...
Python
fishbowl/decorator.py
baxen/fishbowl
mit
9,156
291
codeparrot/github-code
b1d96cea49c3f25cdc82b4f5ec41d9043227277bb4dfa06b2016657546d757a6
var React = require('react-native'); var { View, StyleSheet, PixelRatio, TouchableWithoutFeedback } = React; var cssVar = require('../Lib/cssVar'); var AppActions = require('../Actions/AppActions'); var Text = require('../Components/Text'); var Button = require('../Components/Button'); var TextInput...
JavaScript
App/Mixins/AuthHelper.js
jimpick/ReactNativeSampleApp
mit
4,011
168
codeparrot/github-code
7035feaa53100db9c9297078cec0a51e80146c639d52cdacbe64d9b1f06c8d82
/* Author: Andrej Karpathy (http://cs.stanford.edu/~karpathy/) 1 May 2012 BSD licence */ #ifndef __EIGEN_SVM_UTILS_H__ #define __EIGEN_SVM_UTILS_H__ #include <string> #include <vector> #include <libsvm/svm.h> #include <Eigen/Eigen> using namespace std; namespace esvm { /* Trains a binary SVM on dense data wi...
C
thirdparty/EigenLibSVM/include/eigenlibsvm/svm_utils.h
circlingthesun/cloudclean
mit
1,810
74
codeparrot/github-code
e70ad9ad5b5a243d8cf49caef54d734eff86cbebe57e70039565fddd979931cb
import React from 'react'; import testimonials from 'constants/data/testimonials'; import TestimonialSlider from 'react-slick'; import styles from './testimonials.css'; const Testimonials = React.createClass({ getInitialState () { return null; }, getTestimonials () { return testimonials.toJS().map((testi...
JavaScript
src/components/pages/about/testimonials.js
adrienhobbs/redux-glow
mit
944
40
codeparrot/github-code
66605f83feae8d84ed55e451f5ecbcc76e159530e4aecceecda1488ac88f0613
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>streams: 18 s 🏆</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="sty...
HTML
clean/Linux-x86_64-4.09.1-2.0.6/released/8.7.2/streams/8.7.0.html
coq-bench/coq-bench.github.io
mit
7,884
176
codeparrot/github-code
1da67812cd66593d7f4f0943331b23331c02073e2accf22c927aa260aa823991
/********************* (C) COPYRIGHT 2010 e-Design Co.,Ltd. ******************** File Name : SPI_flash.c Version : DS203_SYS Ver 1.3x Author : bure *******************************************************************************/ #include "SPI_flash.h" u32 Mass_Memory_Size; u32 Ma...
C
SYS_V1.34/SYS_V1.34/source/SPI_flash.c
Seeed-Studio/DSOQuad_SourceCode
mit
5,244
153
codeparrot/github-code
7625a7b6abbd7823346996f5aadaf627ab0c6a2263cd0b846eccb46cbd8d44e0
var BuildLight = require('buildlight'); var buster = require('buster-node'); var fs = require('fs'); var NestorBuildLight = require('../lib/nestorbuildlight'); var referee = require('referee'); var assert = referee.assert; buster.testCase('nestorbuildlight - nestorbuild...
JavaScript
test/nestorbuildlight.js
cliffano/nestor-buildlight
mit
6,940
109
codeparrot/github-code
81dad14893582d6c045714f817a62c7f00c60771b7547e7d1ef3a025811d1a74
<?php /* The MIT License (MIT) Copyright (c) 2018 Jacques Archimède 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...
PHP
src/G6K/Command/CopyViewCommand.php
eureka2/G6K
mit
10,517
275
codeparrot/github-code
b067da03eae73128316acb38f7161b79666e2f0a3804038837d8daf979fae8e7
<html> <head> <meta charset="utf-8"> <meta name="robots" content="all,follow"> <meta name="googlebot" content="index,follow,snippet,archive"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="FRK Olshop e-commerce"> <meta name="author" content="Taufan Da...
PHP
application/views/front-end/contact.php
taufandardiry/frk-shop
mit
20,181
442
codeparrot/github-code
fdfcb55ea740f92451cfcde8f0ba6b2f2949394862015735e6236ec9006c59f7
describe('bmoor-comm::restful', function(){ it('should enable something', function( done ){ var called = false, stream = {}, verify = function( url ){ expect( url ).toBe('/users/1'); }, response = { hello: 'world' }; bmoorComm.Requestor.clearCache(); bmoorComm.Requestor.settings.fetche...
JavaScript
src/restful.spec.js
b-heilman/bmoor-comm
mit
1,682
79
codeparrot/github-code
822ec0008eb81eba3251e904258b5724526a5fc2aa6f5285ab40e3f10c3b8e02
package org.openforis.idm.metamodel; /** * @author G. Miceli * @author M. Togna * @author S. Ricci */ public abstract class VersionableSurveyObject extends IdentifiableSurveyObject<VersionableSurveyObject> { private static final long serialVersionUID = 1L; private ModelVersion sinceVersion; private ModelVers...
Java
collect-core/src/main/java/org/openforis/idm/metamodel/VersionableSurveyObject.java
openforis/collect
mit
3,049
116
codeparrot/github-code
5e71f512bcaaafaeb7f372b9f16d3a2a3dc81914be08f7bf5b135e71e52611a2
# coding: utf-8 import os from os.path import abspath, dirname import tornado.web import tornado.httpserver import tornado.ioloop from tornado.log import app_log from tornado.options import define, options from mongoengine import connect from tt.handle import MainHandler, MongoBackboneHandler, LoginHandler, Re...
Python
tt/application.py
yunlzheng/tomatodo
mit
1,854
58
codeparrot/github-code
5ff52a3e297f54340681ee00b3b92353daf35f7397a0640d2249f15ec1649e82
/** * @copyright 2016-present, Prometheus Research, LLC * @flow */ import {css, style} from 'react-stylesheet'; import ButtonBase from '../ButtonBase'; import theme from './theme'; const borderWidth = 3; export default class SecondaryButton extends ButtonBase { static stylesheet = { ...ButtonBase.stylesheet...
JavaScript
src/topNav/SecondaryButton.js
prometheusresearch/react-ui
mit
1,167
46
codeparrot/github-code
3e4ec23a5c610c2c216fd9878e3d08881bcc208d099efffd45efad9f5bf5b554
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package lab3_jefryhernandez_delmerespinal; /** * * @author Jefry Hernandez */ public class Arañas extends Bestia{ private char ...
Java
Lab3_JEfryHernandez_DElmerESpinal/src/lab3_jefryhernandez_delmerespinal/Arañas.java
jefryhdz/Lab3_Colaboracion
mit
711
37
codeparrot/github-code
24e7b2b550192b7b5fc5682d66a451ce1ad8eb3f508896876069442870064fb4
--[[ logToggle.lua A guild log toggle widget --]] local L = LibStub('AceLocale-3.0'):GetLocale('Bagnon-GuildBank') local LogToggle = Bagnon:NewClass('LogToggle', 'CheckButton') LogToggle.Icons = { [[Interface\Icons\INV_Crate_03]], [[Interface\Icons\INV_Misc_Coin_01]], [[Interface\Icons\INV_Letter_20]] } --[[ C...
Lua
Interface/AddOns/Bagnon_GuildBank/components/logToggle.lua
liruqi/bigfoot
mit
1,789
80
codeparrot/github-code
b3ed3e50abc0958d7a8c1153701361a437b45d83c359d04a10676f1a2cc7c7e7
CREATE PROCEDURE [dbo].[uspCanUserLeaveOrganization] @UserID uniqueidentifier, @OrganizationID uniqueidentifier AS /* ╔════════════╦═══════════════╦═══════════════╦════════╗ ╟ Case # ║ Member Status ║ Other Member ║ Leave ║ ╠════════════╬═══════════════╬═══════════════╬════════╣ ║ # 1 │ Member ...
SQL
citPOINT.eNeg.DataBase/Schema Objects/Schemas/dbo/Programmability/Stored Procedures/uspCanUserLeaveOrganization.proc.sql
ivconsult/eNeg
mit
5,509
185
codeparrot/github-code
21b49c0ffb9150946f4b9426de223164a483ec02d4b64c849d90142ab396c8c2
#!/bin/sh if [ $# -gt 0 ]; then FILE="$1" shift if [ -f "$FILE" ]; then INFO="$(head -n 1 "$FILE")" fi else echo "Usage: $0 <filename>" exit 1 fi if [ -e "$(which git)" ]; then # clean 'dirty' status of touched files that haven't been modified git diff >/dev/null 2>/dev/null ...
Shell
share/genbuild.sh
aevumcoin/aevumcoin
mit
753
36
codeparrot/github-code
7c31b17e14f5809b446c6088f8057745e59b55595fb0350f6d06c8b7c581b814
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {EventEmitter} from '@angular/core'; import {AttributeMarker, PublicFeature, defineComponent, template, defi...
TypeScript
packages/core/test/render3/properties_spec.ts
trshafer/angular
mit
39,310
1,155
codeparrot/github-code
f84d39df5f53821dd3188f61bb78e077bcab2e663c231a5f70ba71543c936182
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>autosubst-ocaml: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap...
HTML
clean/Linux-x86_64-4.12.1-2.0.8/released/8.13.2/autosubst-ocaml/1.0.0.html
coq-bench/coq-bench.github.io
mit
8,382
188
codeparrot/github-code
1dbced465d7c8dbe38823ad352a62d11c12db7a70b846b043a261e85e13f3b4e
<!DOCTYPE html> <html lang="en"> <head> <!-- Creating the link to the Bootstrap stylesheet --> <!-- THE CODE IN THIS STYLESHEET IS NOT MY CODE --> <link rel="stylesheet" type = "text/css" href="css/bootstrap.css"> <!-- Creating the link to the Bootstrap theme --> <!-- THE C...
PHP
signUp.php
Alignak/Web_Based_Game
mit
8,415
168
codeparrot/github-code
a1da9d5af8514f970ed620ba4fbbe045450e7720279cc3acae6a62290dd9cbab
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>W28642_text</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <div style="margin-left: auto; margin-right: auto; width: 800px; overflow: hidden;"> ...
HTML
ocr_extracted/W28642_text/page19.html
datamade/elpc_bakken
mit
8,432
153
codeparrot/github-code
67d233b329ce810a77340f8005b755263cba7805334002aa883f6a3c8492930c
#pragma once #include <math.h> #define GRAD_PI2 3.1415926 //! 3d vector template class with lots of operators and methods. class Vec3 { public: // member variables float x, y, z; public: Vec3(): x(0), y(0), z(0) {}; Vec3(float nx, float ny, float nz) : x(nx), y(ny), z(nz) {}; Vec3(const V...
C
frameworks/math/vec3.h
lyzardiar/BWEngine
mit
4,313
145
codeparrot/github-code
1d3c3d505823a9212da7404f3c5b58548fbc88b002b3f33835503a26a48c42bf
'use strict'; var appCfg = {}; var ngModule = angular.module('woAppConfig', []); ngModule.factory('appConfig', function() { return appCfg; }); module.exports = appCfg; /** * Global app configurations */ console.log('location', window.location); appCfg.config = { pgpComment: 'Serious Mail', //keyServer...
JavaScript
src/js/app-config.js
dopry/mail-html5
mit
5,977
126
codeparrot/github-code
f29fac0ef491495f9d1346f50d45c636fe1041d5951809d013e482c38d488fa9
module.exports = function(action, callback) { var cli = require('../cli'); var WebSocket = require('ws'); var print = require('../common/printer'); var ws = new WebSocket('ws://kontrol-app.herokuapp.com'); ws.on('error', function(err) { print.error('Couldn\'t connect to the WebSocket server'); process.exit(...
JavaScript
src/common/websocket.js
carlbarrdahl/spotify-kontrol-cli
mit
661
39
codeparrot/github-code
aeb9370ea7b2e4dad7eb25a2fbc26bcacfec8493ab998be3bd4d1fdf25fc846f
require 'rubygems' require 'gosu' class Game < Gosu::Window def initialize super(550, 600, false) self.caption = 'Snippet - Draw images' @background = Gosu::Image.new(self, '../gfx/background.png') @ship = Gosu::Image.new(self, '../gfx/captain.png') @ship_x = 275 @...
Ruby
snippets/delta_time.rb
belen-albeza/gosu-rubymanor
mit
1,351
48
codeparrot/github-code
081c0da98b40e0f20793f29053c16e5a5352b5d9891f16943f08b69b65b2884d
{% assign paginator_min = paginator.page | minus: 4 %} {% assign paginator_max = paginator.page | plus: 4 %} {% assign paginator_max_pre = paginator.page | plus: 3 %} {% if paginator_min < 0 %} {% assign paginator_min_abs = paginator_min | abs %} {% assign paginator_max = paginator_max | plus: paginator_min_ab...
HTML
_includes/pagination.html
anstack/anstack.github.io
mit
1,661
39
codeparrot/github-code
8a229219b400698be721da894b2a0cf9a1e849c8a8f2e2dd58e06266cf607563
<HTML><HEAD> <TITLE>Review for Aliens (1986)</TITLE> <LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css"> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0090605">Aliens (1986)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Paul+McElligott">Paul McE...
HTML
data science/machine_learning_for_the_web/chapter_4/movie/19906.html
xianjunzhengbackup/code
mit
5,347
86
codeparrot/github-code
ee0fc776da251f4391e05e18a06fbb6008c05e0cd7c095d0101a29e95c07f2c6
#pragma once #include <iostream> #include <sstream> #include <fstream> #include <list> // example usage (fields definition block) //#define FIELDS \ //FIELD(bool, born) \ //FIELD(int, age) \ //FIELD_STATIC(float, time) \ //FIELD_STATIC(std::string, experiment) //#define DELIM ',' // optional definition of custom delim...
C
vault.h
JorySchossau/vault
mit
2,681
95
codeparrot/github-code
5c35f015285f8834b63164b9968487f2d417787097ead60de954324c337c297e
using System; using NetRuntimeSystem = System; using System.ComponentModel; using NetOffice.Attributes; namespace NetOffice.VBIDEApi { /// <summary> /// DispatchInterface VBE /// SupportByVersion VBIDE, 12,14,5.3 /// </summary> [SupportByVersion("VBIDE", 12,14,5.3)] [EntityType(EntityType.IsDispatchInterface)]...
C#
Source/VBIDE/DispatchInterfaces/VBE.cs
NetOfficeFw/NetOffice
mit
7,752
270
codeparrot/github-code
5248a1dd0cb8ea676ed7a8b50dd196c9ec13804e9e9df7cc4ad70f3f95c13663
#include <curl/curl.h> #include <openssl/crypto.h> #include "http/http.h" #include "threading/queue.h" #include "util/util.h" #include <algorithm> #include <thread> namespace pd2hook { namespace { struct InitHttpManager { InitHttpManager() { HTTPManager::GetSingleton(); } }; InitHttpManager initHttp; // curl recomme...
C++
src/http/http.cpp
SirWaddles/Payday-2-BLT
mit
4,619
151
codeparrot/github-code
d6390abea84471a75a0d421bc8fa33f76e01391f5921255465b779a2363021bc
using System.Collections.Generic; using UnityEngine; namespace ImprovedNPC.Wandering { public class QLearningCache : SerializedMonoBehaviour { public class NodeState : SerializedRawObject { public float LValue { get; set; } public float RValue { get; set; } public float FValue { get; set; } public...
C#
Wandering/QLearningCache.cs
pollend/Parkitect_Custom_NPCS
mit
10,234
330
codeparrot/github-code
25adff995575f79c34e40a77a5ed65ca8c0fec10a7b1744102bb95fc2b013a91
#include "Client.h" #include "Request.h" #include "ResponseUtils.h" #include "network/TcpClient.h" #include <vector> #include <iostream> WaaCaa::Client & WaaCaa::Client::Instance() { static WaaCaa::Client instance; return instance; } bool WaaCaa::Client::Connect(const char *host, const int port) { if (m...
C++
library/model/Client.cpp
ImplFancy/WaaCaa-Client-Cpp
mit
2,717
122
codeparrot/github-code
7bc1831bac1a721bc2bc9157f887ac3e00ce12c4deaff9dbcd10798287a38968
// // FLSoapStringBuilder.h // FishLamp // // Created By Mike Fullerton on 4/20/09. // Copyright (c) 2013 GreenTongue Software LLC, Mike Fullerton. // The FishLamp Framework is released under the MIT License: http://fishlamp.com/license // #import "FishLampCore.h" #import "FLXmlStringBuilder.h" #import "FLObjectXm...
C
Classes/Encoding/Soap/FLSoapStringBuilder.h
fishlamp-released/FishLamp3
mit
868
38
codeparrot/github-code
ad0d88f48756a3fdf1cd815cad1b3a5c46a881c77e08e0dc9402eca021877504
import React from 'react' import DatePicker from 'material-ui/DatePicker' import TimePicker from "material-ui/TimePicker"; import { TextField } from "material-ui"; import { ru_RU } from "../../constants/Translations"; import { LOCALE } from "../../constants/Core"; // if (areIntlLocalesSupported(['ru-RU'])) { // Da...
JavaScript
client/components/elements/InputWithValidation.js
slantz/slasti-od-ua
mit
6,418
171
codeparrot/github-code