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 |
|---|---|---|---|---|---|---|---|---|
0a54fe00439df2c4ad3935be2f0a73bd832102b5063b3fc89190e7b7e05b7593 | // slang-glslang.cpp
#include "slang-glslang.h"
#include "StandAlone/ResourceLimits.h"
#include "StandAlone/Worklist.h"
#include "glslang/Include/ShHandle.h"
#include "glslang/Public/ShaderLang.h"
#include "SPIRV/GlslangToSpv.h"
#include "SPIRV/GLSL.std.450.h"
#include "SPIRV/doc.h"
#include "SPIRV/disassemble.h"
#i... | C++ | source/slang-glslang/slang-glslang.cpp | shader-slang/slang | mit | 30,257 | 816 | codeparrot/github-code |
3da8147157e46047fc52e09090c37a1c919c000b2a1c1a51ac97bfb80a9f3573 | package labeleven.minspantree.prim;
import labnine.graph.WeightedGraph;
import labutils.LabTimer;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
public class MSTDriver {
public static void main(String[] args) throws IOException{
LabTimer timer = new LabTimer();
... | Java | src/labeleven/minspantree/prim/MSTDriver.java | rice2007/CS303_Algorithms | mit | 2,376 | 79 | codeparrot/github-code |
ed2986cf2293e7023a386fedd758487ad4b199f1991bb873d0dde853ba9255f9 | package org.prcode.security;
import org.apache.log4j.Logger;
import org.prcode.business.basedomain.loginLog.dao.LoginLogMapper;
import org.prcode.business.basedomain.loginLog.domain.LoginLog;
import org.prcode.business.support.basic.security.domain.CustomerUserDetail;
import org.prcode.utility.basic.SystemConstant;
im... | Java | src/main/java/org/prcode/security/LoginSuccessHandler.java | DomKing/webDemo | mit | 2,205 | 53 | codeparrot/github-code |
968a0d14d37c5cf67f174f165c703e6a40a49ca93e3724a9d9621a460aecea05 | package com.callfire.api.client.api.callstexts.model;
import java.util.ArrayList;
import java.util.List;
import lombok.Getter;
/**
* Inbound/Outbound Call Action
*/
@Getter
public class Call extends Action<CallRecord> {
private CallResult finalCallResult;
private Boolean agentCall;
private List<Note> n... | Java | src/main/java/com/callfire/api/client/api/callstexts/model/Call.java | CallFire/callfire-api-client-java | mit | 643 | 35 | codeparrot/github-code |
65ebc559f5a927b88bf1293921affde1330f3316ed7696395c2ba705adedc10f | /*
* 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 br.senac.tads3.testeweb;
import java.io.IOException;
import java.io.PrintWriter;
import java.math.BigDecimal;
import... | Java | teste-web/src/main/java/br/senac/tads3/testeweb/FormularioServlet.java | ftsuda82/tads3-pi3-2016-2 | mit | 4,679 | 135 | codeparrot/github-code |
a4bc5d017ab7941095f6bcc843fbd6b2e61598f44824c0fffb03ca1b0ce76f32 | #include <iostream>
#include <string>
#include <fstream>
#include <sstream>
using namespace std;
int main(int argc, char** argv) {
ifstream file(argv[1]);
while (!file.eof()) {
string line;
getline(file, line);
stringstream ss;
ss << line;
int count = 1;
string last;
string curr;
ss >> curr;
if (... | C++ | easy/compressed-sequence/main.cpp | thiago6891/code-eval-challenges | mit | 622 | 38 | codeparrot/github-code |
a8afbcfb86b1a978f25ff3df5769dab86035f03e4025391a04cde0fcc1d172a4 | import {Component, ElementRef, HostListener} from '@angular/core';
import {GlobalState} from './../../../services';
import {layoutSizes} from '../../../theme';
@Component({
selector: 'ba-sidebar',
templateUrl: './baSidebar.html',
styleUrls: ['./baSidebar.scss']
})
export class BaSidebar {
public menuHeight:num... | TypeScript | src/app/theme/components/baSidebar/baSidebar.component.ts | DavidPineda/ng-admin-simple-template | mit | 1,776 | 65 | codeparrot/github-code |
89ccfb56b445008f42cae65ab9329ad23b85f650cbad72f4d0f27bc3e42164eb | <?php
/*
* This file is part of the symfony package.
* (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
* (c) 2004-2006 Sean Kerr <sean@code-box.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* sfE... | PHP | lib/exception/sfException.class.php | nationalfield/symfony | mit | 12,258 | 447 | codeparrot/github-code |
55709f2d361a44b270e477c753e096ce0cc8585f1ab9427353350ac39a83c05b | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-fingroup: 1 m 56 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min... | HTML | clean/Linux-x86_64-4.05.0-2.0.1/released/8.11.0/mathcomp-fingroup/1.11.0.html | coq-bench/coq-bench.github.io | mit | 10,626 | 182 | codeparrot/github-code |
f67ce2d0e6995303e5306e53953c931612b73f956d43e47aed5027067952635a | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using HGMF2017.Droid;
using Microsoft.Azure.Mobile.Analytics;
using Xamarin.Forms;
[assembly: Dependency (typeof (LoggerService))]
namespace HGMF2017.Droid
{
public class LoggerService : ILoggerService
{
void ILoggerSer... | C# | App/HGMF2017.Droid/Services/LoggerService.cs | jsauve/HGMF2017 | mit | 1,970 | 65 | codeparrot/github-code |
44d6dc231f64b3b7f4519a3d4cda31e7041a98afb27c0e5160e1626700451743 | #[doc = "Register `SLEEPCR` reader"]
pub struct R(crate::R<SLEEPCR_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<SLEEPCR_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<SLEEPCR_SPEC>> for R {
#[inline(always)]
fn from(reader: crat... | Rust | src/scu_clk/sleepcr.rs | lucasbrendel/xmc4200 | mit | 12,419 | 439 | codeparrot/github-code |
2ef2932a506df0a03bba78e339364ce12099a0e8dbdb5cab22a4b8c5613374ff | namespace Caliburn.Micro {
using System;
using System.Windows.Interactivity;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
/// <summary>
/// An <see cref="ApplicationBarIconButton"/> capable of triggering action messages.
/// </summary>
public class AppBarButton... | C# | src/Caliburn.Micro.WP7/CustomAppBar.cs | paulcbetts/CaliburnMicro | mit | 1,423 | 46 | codeparrot/github-code |
e9701afcf7739a2af66f06167d4912b7aa47676f98b9067344acd58f0771244f | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using CloudsdaleLib.Annotations;
using CloudsdaleLib.Models;
using CloudsdaleLib.Providers;
using MetroFaye;
using Newtonsoft.Json.Linq;
using Windows.UI.Core;
namespace Cloudsdale_Me... | C# | Cloudsdale-Metro/Controllers/MessageController.cs | cloudsdaleapp/cloudsdale-metro | mit | 3,026 | 81 | codeparrot/github-code |
fd62e0de9f4a3255bece2c0be5f5cffabfa7c7df8fbfbef132a200dc12a8226b | /*******************************************************************************
* Copyright (c) 2017 Vasiliy Nerozin
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the MIT license. See LICENSE.md for details.
*******************************************************... | C | platforms/portable/sc_math/sc_mac_cj_c16.c | vnerozin/cimlib | mit | 2,897 | 86 | codeparrot/github-code |
12678825232f5d5c911e7c164262f63919c252f51bfcf72691c8a38344073ab4 | <?php
/**
* Routings for Admin
*/
/*
* Config
*/
if (isset($config['admin'])) {
$default_config_admin = array(
'users' => array(),
'limit_per_page_json' => 10,
'limit_per_page_image' => 12,
'upload_max_file_size' => 1000000,
);
$config['admin'] = array_merge($default_config_admin, $config['admin']);
}
... | PHP | controller/admin/admin.php | tsubo/Choco | mit | 3,527 | 136 | codeparrot/github-code |
51be24b03401128fc0898d615e653abb6f1af9b80c22efb4799c2726c7e840f3 | package org.jpromise;
import org.jpromise.functions.OnCompleted;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Executor;
import java.util.concurrent.Future;
abstract class ContinuationPromise<V_IN, V_OUT> extends AbstractPromise<V_OUT> implements Continuation<V_IN> {
private final E... | Java | core/src/main/java/org/jpromise/ContinuationPromise.java | HaloFour/jpromise | mit | 4,659 | 135 | codeparrot/github-code |
736ad8e1ce6b3c22fab563a4c74ec9c19e7ac5b49d884e21562ae3b6a9aa1d42 | /*====================================================================================================*/
/*====================================================================================================*/
#include "drivers\stm32f0_system.h"
#include "drivers\stm32f0_usart.h"
#include "module_wheelLED_bt.h"
/*====... | C | Software/WheelLED-WearableSTD/Program/modules/module_wheelled_bt.c | KitSprout/WheelLED | mit | 7,611 | 173 | codeparrot/github-code |
669fc37e5d7eed3b5a11e2fe104b9bf167299a779915ca1b20fd8e3ec30ce70e | import sys
file_name = sys.argv[1]
with open(file_name, "r") as f:
num = int(f.readline())
for i in range(num):
first_row = int(f.readline()) - 1
first_board = list()
for x in range(4):
raw_line = f.readline()
line = [int(x) for x in raw_line.split(" ")]
first_board.append(line)
second_row = int(... | Python | qualification/a_magic_trick.py | daniel-bell/google-codejam-2014 | mit | 802 | 31 | codeparrot/github-code |
3a397077b3a6d662f6ea7b3ad6c2974213b0e7c560f54285b02731a5a78b1948 | #if false
using System;
namespace HutongGames.PlayMaker.Actions
{
[ActionCategory("GameAnalytics")]
[Tooltip("Sends a user event message to the GameAnalytics server")]
public class SendUserEvent : FsmStateAction
{
[Tooltip("The player's gender")]
public GA_User.Gender Gender;
[Tooltip("The year the playe... | C# | Assets/GameAnalytics/Plugins/Playmaker/SendUserEvent.cs | erosson/orbitris | mit | 1,061 | 43 | codeparrot/github-code |
1c4bd41c67e7099bf690d5f7c3904067e1d8c8d600aa42bf6c2cc834a22d8f04 | <?php
/*
* Purpose: curl convenience class
* loads everything into DOM and SimpleXML
* has xpath query
*/
namespace flat\core;
class curl {
/**
* curl execution
*
* @return \flat\core\curl\response
*
* @param string | curl\config $config:
* string $config['url'] URL to visi... | PHP | src/flat/core/curl.php | katmore/flat | mit | 2,900 | 120 | codeparrot/github-code |
8fc4bab8ac6940884725b25c6b18627debde86eaaee9cf0b8bedc789c05d1e13 | <?php
namespace Jd\Request;
class RestWorkorderReplyRequest
{
private $apiParas = array();
public function getApiMethodName(){
return "jingdong.rest.workorder.reply";
}
public function getApiParas(){
return json_encode($this->apiParas);
}
public function check(){
}
public function putOtherTextPa... | PHP | lib/jd/Request/RestWorkorderReplyRequest.php | xincap/erp | mit | 1,796 | 76 | codeparrot/github-code |
602fa78bcd7830714ed07112e4f9d6797947f25b954056b402c0bcda143cde5d | /**
* @license
* Copyright Google LLC 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 {HttpContext, HttpContextToken} from '../src/context';
const IS_ENABLED = new HttpContextToken<boolean>(() =>... | TypeScript | packages/common/http/test/context_spec.ts | mgechev/angular | mit | 1,891 | 60 | codeparrot/github-code |
90f2f00d07b06a279ca2aeef90e35bd5eb6c734370e813ae0762263332c67b48 | /**********************************************************************
* File: tovars.cpp (Formerly to_vars.c)
* Description: Variables used by textord.
* Author: Ray Smith
* Created: Tue Aug 24 16:55:02 BST 1993
*
* (C) Copyright 1993, Hewlett-Packard Ltd.
** Licensed under the Apache License, Ver... | C++ | Boss2D/addon/tesseract-3.05.02_for_boss/textord/tovars.cpp | koobonil/Boss2D | mit | 4,043 | 84 | codeparrot/github-code |
6b0f6276b56b4a0ca2b21e997f1596103fd3a9e003c29f08fb6cd1d92979ac95 | import React, { Component } from 'react';
import { Jumbotron, Row, Col, Panel, Table, Image, Glyphicon } from 'react-bootstrap';
class Home extends Component {
render() {
return (
<div>
<Jumbotron>
<h1>rfurman</h1>
<p>An amalgam of random side projects.</p>
</Jumbotron>
... | JavaScript | src/routes/Home.js | rdfurman/web-rfurman | mit | 5,165 | 122 | codeparrot/github-code |
f5b9377730a45c4fb9622730587d2ef1f0d01cfc611435152ddba350d4116b17 | package io.github.teamdevintia.magicpotions.visuals.potion;
import io.github.teamdevintia.magicpotions.MagicPotions;
import io.github.teamdevintia.magicpotions.util.ParticleUtil;
import io.github.teamdevintia.magicpotions.util.ParticleUtil.ColoredParticle;
import io.github.teamdevintia.magicpotions.visuals.VPacket;
im... | Java | src/main/java/io/github/teamdevintia/magicpotions/visuals/potion/TimeFreezeSplashVPacket.java | TeamDevintia/DevAthlon3 | mit | 2,017 | 58 | codeparrot/github-code |
4c380d06aa9458e0de93d84919c3290582785f4fa7b2656836371890a7031ace | (function() {
'use strict';
angular
.module('calendar')
.factory('siteService', siteService);
siteService.$inject = ['$http', 'utilityService'];
function siteService($http, utilityService) {
var service = {
getSite: getSite,
settings: {}
};
return service;
//Single sit... | JavaScript | app/services/site.service.js | idfive/UniCal | mit | 553 | 31 | codeparrot/github-code |
f3e19c2b6a85d97545d3d86b524fd5a150c7ef8167df60435c90d8c2ceadb383 | import { collapseDomains, addDomainHOF, removeDomainHOF } from '../../src/helpers/provider';
function getMap(doThird = false) {
const base = {
first: { x: [Math.random(), Math.random()], y: [Math.random(), Math.random()] },
second: { x: [Math.random(), Math.random()], y: [Math.random(), Math.random()] },
}... | JavaScript | __tests__/helpers/provider-test.js | coreyflynn/jubilation | mit | 2,425 | 66 | codeparrot/github-code |
f97ab65605bf9366941fcf72d3c2de65753c2215d3eaaa8e6eba508cca0fee76 | #region Using
using System.Numerics;
#endregion
namespace Emotion.Platform.Implementation.Null
{
public sealed class NullWindow : Window
{
public override WindowState WindowState { get; set; }
public override DisplayMode DisplayMode { get; set; }
public override Vector2 Position { ge... | C# | Emotion/Platform/Implementation/Null/NullWindow.cs | Cryru/SoulEngine | mit | 738 | 34 | codeparrot/github-code |
510ca8f93d8b731ecc6a3f885db80ab5ee43576c0a5de25e1a949e5f51eb84a5 | ---
layout: post
title: "Learning Resources"
date: 2016-01-31 16:00:40
categories: coding, resources
---
<h1>Resources for learning to code</h1>
<p>There's an abundance of great learning to code resources available for people who want to learn. I've been coding for half my life but recently I moved from doing PHP... | HTML | _posts/resources.html | voodoobettie/voodoobettie.github.io | mit | 1,709 | 58 | codeparrot/github-code |
f240e89b7436ef08d56250e6c7e2b0d555a25098f6dfff6098fda350eb299afe | import styled from 'styled-components';
export const Outer = styled.div`
--navigation-buttons-height: 65px;
padding-bottom: calc(var(--navigation-buttons-height) + 15px);
`;
export const CompareList = styled.ul`
display: block;
margin: 0;
padding: 0;
list-style: none;
> li {
margin: 0;
padding:... | JavaScript | modules/snapshots-navigator/image/ui.js | hakonhk/vaerhona | mit | 1,510 | 95 | codeparrot/github-code |
29d3a25d6ca3808fcf76adfff3999058f004d2434648607a33e87483b38e2c68 | import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import {
NgModule,
ApplicationRef
} from '@angular/core';
import {
removeNgStyles,
createNewHosts,
createInputTransfer
} from '@angularclass/hmr';
import {
Rou... | TypeScript | src/app/app.module.ts | talevskiigor/meme | mit | 3,297 | 127 | codeparrot/github-code |
e982a9864fb57cfd5b07113a4963ef087b66947d82f78f86e22baad518420425 | // Copyright (c) 2015-2016 The Khronos Group Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and/or associated documentation files (the
// "Materials"), to deal in the Materials without restriction, including
// without limitation the rights to use, copy, modi... | C++ | Common/Lib/Ext/Vulkan/1.0.8.0/SDK/win/spirv-tools/source/validate.cpp | ilangal-amd/CodeXL | mit | 8,008 | 223 | codeparrot/github-code |
acb3b56fadd541d0fccf6abb9623d5710eadbf5320b067f073e66a23c6058aa4 | from importlib import import_module
DEFAULT_ELEMENT_TYPES = set(['form', 'input', 'radio', 'checkbox', 'button', 'table'])
BOOTSTRAP3_ELEMENT_TYPES = DEFAULT_ELEMENT_TYPES | set(['panel', 'modal'])
SUPPORTED_ELEMENT_TYPES = {
'default': DEFAULT_ELEMENT_TYPES,
'bootstrap3': BOOTSTRAP3_ELEMENT_TYPES,
... | Python | y2h/parser/factory.py | rfancn/y2h | mit | 2,247 | 67 | codeparrot/github-code |
f582877e1f83d430a38bd7cfe3ad87c8c7fe44895261bc1cf8f39f383f19de38 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Artist Chart Search</title>
<LINK rel="stylesheet" type="text/css" href="/static/styles/style.css" title="Default Styles" media="screen">
</head>
<body>
<div id="outer" style="width:100%">
<div id="inner">
<div>
... | HTML | templates/search.html | raulium/better-billboard | mit | 3,215 | 94 | codeparrot/github-code |
aeeacfecbf6ea6aae42b9817655dc46688a09779a27ce50661c81d0e8cb387dd | /**
* @module domain/settings
* @version 1.0.0
* @author Peter Schmalfeldt <me@peterschmalfeldt.com>
*/
var _ = require('lodash');
var User = require('../../../models/api/users');
var UserSettingNotification = require('../../../models/api/user_settings_notifications');
var UserES = require('../../../elasticsearch... | JavaScript | app/api/v1/domain/settings.js | CivilServiceUSA/api | mit | 8,410 | 262 | codeparrot/github-code |
73e9860340faf3feda64af739b1b52b457e3dcd02a6ce70f8052e1bfcfa53167 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Mixin Option</title>
<script type="text/javascript" src="../../assets/js/vue.js"></script>
</head>
<bo... | HTML | Vue/Vue.js基础知识Demo/example/构造器选项/mixin.html | DayangLee/Programming-learning | mit | 1,054 | 50 | codeparrot/github-code |
da6a5234f4db055d7f93a59a5801a2990ad67cd83a7da745ab40d3cf79805911 | package main
import (
"encoding/json"
"fmt"
"os"
)
func main() {
//init
initHanlder()
//empty struct that implements
var pAppsMeta AppsMeta
//show cat-list
if pIOSList {
fmt.Println(showCategory(pAppsMeta, IOS, ""))
return
}
//show cat-list
if pAndroidList {
fmt.Println(sho... | GO | main.go | bayugyug/storemeta | mit | 942 | 54 | codeparrot/github-code |
88203a95c356af988461ec3c892026ca045b3467e57da436a528170ee2261ddc | # NOTE: Require engine application controller to load instead of Parent like this....
#require_dependency "questionable/application_controller"
module Questionable
class QuestionsController < ApplicationController
before_action :set_question, only: [:show, :edit, :update, :destroy]
# GET /questions
... | Ruby | app/controllers/questionable/questions_controller.rb | brooksjbr/questionable | mit | 2,200 | 79 | codeparrot/github-code |
ed03342401f3f5fa07fca8b39099c5b9619099041e46934e26c2e72d7567a063 | package jira
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/url"
)
// UserService handles users for the JIRA instance / API.
//
// JIRA API docs: https://docs.atlassian.com/jira/REST/cloud/#api/2/user
type UserService struct {
client *Client
}
// User represents a JIRA user.
type User struct {
Self ... | GO | user.go | niallo/go-jira | mit | 4,355 | 124 | codeparrot/github-code |
d11289f0c85a593cdbd53c0cf09ccf40b40891c71d677b35fae15c202b9bfcf1 | #include <ncurses.h>
#include <string.h>
#include <locale.h>
#include <ctype.h>
#include <math.h>
#include "display.h"
int maxy, maxx;
WINDOW *header_left, *header_right, *footer, *output, *input;
int current_input_mode = DSP_INPUT_MODE_LINE;
int current_input_mode_active = 0;
void dsp_init(void) {
setlocale(LC_AL... | C | display.c | MKelm/ncmct | mit | 3,606 | 146 | codeparrot/github-code |
1ddad360f36312440bb9b7236a834c8b70da9c34fc5a557609965885ce29c88b | package jhttpserver.entity;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
/**
* HTTP Cookie
*
* 详细定义 :http://tools.ietf.org/html/rfc6265#section-4.1.1
*
* NOTE:
* 1. 虽然提供expires(Date)来设置过期时间,但是我只提供设置max-age的借口来设置
* 原因:https://github.com/Jayin/JHttpServer/issues/9
*/
pu... | Java | JHttpServer-core/src/main/java/jhttpserver/entity/Cookie.java | Jayin/JHttpServer | mit | 3,475 | 147 | codeparrot/github-code |
8e676e6e1a0f8fef5d30944cb27c972ea199c946916bfbb2d23e387e748cc13a | using System.Collections.Concurrent;
namespace AutoMapper.QueryableExtensions.Impl
{
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Linq;
using System.Linq.Expressions;
public class EnumerableExpressionBinder : IExpressionBinder
{
... | C# | src/AutoMapper/QueryableExtensions/Impl/EnumerableExpressionBinder.cs | jasonholloway/AutoMapper | mit | 4,732 | 95 | codeparrot/github-code |
eabe43c61ff8be8e1b47e36aa5a91fe86733115b5da84d02640f283b4c0b1b31 | <?php defined('COREPATH') or exit('No direct script access allowed'); ?>
WARNING - 2015-01-09 20:56:53 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
WARNING - 2015-01-09 20:57:20 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
WARNING - ... | PHP | fuel/app/logs/2015/01/09.php | wojtekzdeb/fueltest | mit | 36,416 | 242 | codeparrot/github-code |
e500900ed47a4fe3c2a94baf8d79d03e3928cd5bf8cd3253a656782e2abb4a98 | #!/usr/bin/python
import json, os, re, string, sys, traceback
from bs4 import BeautifulSoup
f = open('pubs-2017-12-27.html')
# f = open('blah.html')
content = f.read()
soup = BeautifulSoup(content, 'html.parser')
pubs = {
'selected': [],
'most-cited': [],
'selected-reviews': [],
'publications': []
}
def proces... | Python | _legacy/scrape-pubs.py | meyer-group/meyer-group.github.io | mit | 2,235 | 94 | codeparrot/github-code |
d3aef58e4b5c7e5c7948b7cc46fd637f3cfc2dda0dc8ceef49fe8a7ca744dfa9 | /*
* Wegas
* http://wegas.albasim.ch
*
* Copyright (c) 2013 School of Business and Engineering Vaud, Comem
* Licensed under the MIT License
*/
package com.wegas.app;
import com.wegas.core.ejb.VariableDescriptorFacade;
import com.wegas.core.exception.WegasException;
import com.wegas.core.persistence.game.GameMode... | Java | wegas-app/src/test/java/com/wegas/app/AbstractTest.java | gdomingos/Wegas | mit | 3,519 | 98 | codeparrot/github-code |
0d73d7958aa358da81b2c210fdbeef831b5fdd754870d7df2d24fe2a812b46e8 | __author__ = 'saintdragon2'
import pygame
import time
import random
pygame.init()
display_width = 800
display_height = 600
black = (0, 0, 0)
white = (255, 255, 255)
red = (255, 0, 0)
green = (0, 255, 0)
block_color = (53, 115, 255)
carImg = pygame.image.load('car.png')
car_width = carImg.get_rect().size[0]
game... | Python | pygame_study/first_race_game.py | saintdragon2/python-3-lecture-2015 | mit | 3,820 | 156 | codeparrot/github-code |
af8fca1336a45b13eca4218bae8417aa21086b016f063fecd78ef6206014aadb | var world = new VIZI.World({
viewport: document.querySelector("#vizicities-viewport"),
center: new VIZI.LatLon(51.278709, 1.080535)
});
var controls = new VIZI.ControlsMap(world.camera);
var controls = new VIZI.ControlsClick(world.camera);
var mapConfig = {
input: {
type: "BlueprintInputMapTiles",
optio... | JavaScript | examples/crime-data/main.js | GeoRanking/vizicities | mit | 6,265 | 251 | codeparrot/github-code |
c4792c4570f8ac3188bdf3a0ccc552c24bc56bc59b933dd5b0e510239bacfab6 | package com.base.objects;
import org.lwjgl.util.vector.Vector3f;
import com.base.util.Vertex;
public class Cylinder {
private int stacks;
private float bottomRadius;
private float topRadius;
private float bottomHeight;
private float topHeight;
private Vector3f color;
private Vertex[] vertices;
private int[... | Java | Game/src/com/base/objects/Cylinder.java | G43riko/Java | mit | 2,858 | 122 | codeparrot/github-code |
a67a7f9712850f8810a43dcd5fc065b430d681719cb3e87bd01256139c5a8f91 | angular
.module('demo', ['ngSimple', 'ui.bootstrap', 'ngSanitize'])
.controller('DemoCtrl', ['$scope', function ($scope) {
// multiselect dropdown
$scope.options = [
{label: 'Not Multiselectable', value: 1, multiselectable: false},
{label: 'Multiselectable Option 1', value: 2},
{label: 'Multiselectable Option ... | JavaScript | index.js | atefth/ng-simple | mit | 1,384 | 48 | codeparrot/github-code |
86e7ad1bfdf159a4a11e5f4c59bb5092e779402e805ceb56d01ec905d8671377 | from __future__ import annotations
from django.db.backends.base.schema import BaseDatabaseSchemaEditor
from django.db.migrations.operations.base import Operation
from django.db.migrations.state import ModelState
from django.utils.functional import cached_property
class InstallPlugin(Operation):
reduces_to_sql = ... | Python | src/django_mysql/operations.py | adamchainz/django-mysql | mit | 5,386 | 176 | codeparrot/github-code |
79e187d359cd9460a4d6034f5b5714e86e7306adf36f8fcafc3e1bf267ecde3d | """
Contains the database connection tools and sqlalchemy models for iom database
Created by adam on 11/11/15
In order to use this, import the module and
create a sqlalchemy engine named 'engine' then do:
# connect to db
from sqlalchemy.orm import sessionmaker
# ORM's handle to database at global level
Session = ses... | Python | IomDataModels.py | PainNarrativesLab/IOMNarratives | mit | 13,627 | 416 | codeparrot/github-code |
16ccc8f15eabfc00575de7fc33c1b04bd7a0de60c39c76685acc407d2e07d44f | import Logger from "./Logger";
import { userModel } from "./Models/User";
import { contains, head } from "ramda";
export function userHasPermissions(controller, context, command) {
return new Promise(function(resolve, reject) {
var userEntry = getUserEntry(
controller.getUserId(context),
controller.p... | TypeScript | src/Core/UsersManagement.ts | Leorek/Shadow-Discord | mit | 1,054 | 40 | codeparrot/github-code |
ec7e91c29c93ffd6888ce2b95fc02b62a7284b7913ad75a9304a8740a166c7a1 | <?php
class News extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->load->model('news_model');
}
public function index()
{
$data['news'] = $this->news_model->get_news();
$data['title'] = 'News archive';
$this->load->view('templates/header', $data);
$this->load->v... | PHP | application/controllers/news.php | FabienneMarquis/TP5-POO4_FMGP | mit | 1,273 | 59 | codeparrot/github-code |
8e0d95d5655b0e416e8cc6e18b6008beb3623e9ac24d43cf92fe4f37c664110c | <?php
/**
* @copyright Copyright (c) 2015 ublaboo <ublaboo@paveljanda.com>
* @author Pavel Janda <me@paveljanda.com>
* @package Ublaboo
*/
namespace Ublaboo\DataGrid\Filter;
use Nette;
use Ublaboo\DataGrid\Exception\DataGridFilterRangeException;
use Ublaboo\DataGrid\DataGrid;
class FilterRange extend... | PHP | src/Filter/FilterRange.php | chapcz/datagrid | mit | 2,457 | 129 | codeparrot/github-code |
6e6be51b48e35c71430f16fd081f367a3bb007aa18def894a0964540f07b81c8 | #ifndef TERRAIN
#define TERRAIN
//Includes
#include <d3d11.h>
#include <DirectXMath.h>
#include <string>
//My Includes
#include "../Direct3D.h"
//////////////////////////////////////////////////////////////////////////
//Class: Model (Static)
//////////////////////////////////////////////////////////////////////////... | C | Tameran/Hydro/Graphics/Models/Terrain.h | Zokerus/Tameran | mit | 891 | 49 | codeparrot/github-code |
46338a08f47bf84077ebdb80d9d1236ffe7d6c5913e04198264530233c98052e | /* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
* File Name : get_comma_separated_expressions.js
* Created at : 2019-03-22
* Updated at : 2019-08-27
* Author : jeefo
* Purpose :
* Description :
* Reference :
.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.... | JavaScript | src/es5/helpers/get_comma_separated_expressions.js | je3f0o/jeefo_javascript_parser | mit | 1,551 | 53 | codeparrot/github-code |
e4255f809e96a0247fc21eab099eef9276e0e8291377ac35992ddeb7e675bfff | /*
* The MIT License
*
* Copyright (c) 2013-2016 reark project contributors
*
* https://github.com/reark/reark/graphs/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 w... | Java | reark/src/main/java/io/reark/reark/data/stores/DefaultStore.java | apoi/reark | mit | 3,859 | 121 | codeparrot/github-code |
cf1b65a282afd8fafb2cf8d63071fbb6bd2460ddb65cd14eec64d002a75626cd | //
// CCHPush.h
// ContextHub
//
// Created by Travis Fischer on 9/26/13.
// Copyright (c) 2013 ChaiOne. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "CCHContextHubPush.h"
/**
The push service is used to register devices and to send push notifications with the Context... | C | ContextHub.framework/Versions/A/Headers/CCHPush.h | Kevinwlee/DeVaults | mit | 4,365 | 106 | codeparrot/github-code |
a6fb0dc3c6cb3b0a168390ce59440f67c3d256535c77bd072dfb2aaa1e50c44d | package vers;
import java.lang.reflect.Array;
import java.util.ArrayList;
public class ContactList {
private ArrayList<Contact> contacts = new ArrayList<>();
private ArrayList<ContactListListener> listeners = new ArrayList<>();
public void addContactListener(ContactListListener listener) {
listen... | Java | intellij/src/vers/ContactList.java | jakobehmsen/midmod | mit | 786 | 31 | codeparrot/github-code |
037963fb752a0100281f2344c492010cbddbe226db757eb8b239eb723e205ea3 | # coding: utf-8
module Gym
# This classes methods are called when something goes wrong in the building process
class ErrorHandler
class << self
# @param [String] The output of the errored build
# This method should raise an exception in any case, as the return code indicated a failed build
def... | Ruby | gym/lib/gym/error_handler.rb | tcurdt/fastlane | mit | 7,553 | 126 | codeparrot/github-code |
51b1c0b6efb1d65fcda591f513ea8b1d892581d7b51b8199a66a2a11ae3c6cea | /**
* Copyright (c) 2017 ~ present NAVER Corp.
* billboard.js project is licensed under the MIT license
*/
import {select as d3Select} from "d3-selection";
import {isDefined} from "../../module/util";
import {$AREA, $LINE, $SELECT, $SHAPE} from "../../config/classes";
import {DataItem} from "../../../types/types";
... | TypeScript | src/Chart/api/selection.ts | naver/billboard.js | mit | 4,921 | 148 | codeparrot/github-code |
73ffd7adc64caa150a731af399c68548cc849d1d7eb35aa3b359307b15fba83d | package models
import java.util.UUID
import play.api.libs.functional.syntax._
import play.api.libs.json.{JsPath, Json, Reads, Writes}
case class ReportCardEntryType(entryType: String, bool: Option[Boolean] = None, int: Int = 0, id: UUID = UUID.randomUUID) extends UniqueEntity
case class ReportCardEntryTypeProtocol(... | Scala | app/models/ReportCardEntryType.scala | THK-ADV/lwm-reloaded | mit | 1,567 | 45 | codeparrot/github-code |
da4aaeb9ca67bcd4b6e21f603f4bc0951415c09b40bb7e0f64813b80a43d3352 | namespace mogate
{
public interface IWorld
{
void GenerateLevels(int max_levels);
IMapGrid GetLevel (int level);
}
public class World: IWorld
{
IMapGrid[] m_levels;
public void GenerateLevels(int max_levels)
{
m_levels = new IMapGrid[max_levels];
for (int i = 0; i < max_levels; ++i) {
var... | C# | mogate.Shared/Services/World.cs | rustamserg/mogate | mit | 776 | 38 | codeparrot/github-code |
3f6ec16aeb079ab852bd493396f77d431378c1a53aa9fa4e5a9923269142c135 | // Copyright (c) 2016 Antony Arciuolo. See License.txt regarding use.
#pragma once
#include <oGPU/gpu.h>
namespace ouro { namespace gfx2 {
enum class input_layout : uint8_t
{
none,
lines, // vbuffer0: float3 position, uint32_t color
geometry, // vbuffer0: float3 position, float3 normal, float4 tangent, f... | C | Ouroboros/Source/oGfx/gpu_fixed_state.h | igHunterKiller/ouroboros | mit | 2,544 | 71 | codeparrot/github-code |
5233d270fb66f718598261815a6560b92ad839c4ed1e7d1a3f3f9971ff05f35e | /* Plugin based services architecture for finit
*
* Copyright (c) 2012 Joachim Nilsson <troglobit@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, incl... | C | plugin.c | westermo/finit | mit | 8,821 | 343 | codeparrot/github-code |
c7a138876777a089f6e2abd8bc93b649e5cd862ef411aa3455981bc7e4b12a3c | import _ from 'lodash';
import * as types from '../constants/ActionTypes';
import { onError } from './error-handler';
import { subscribeStream } from './app';
import { fetchHomeTimeline } from './timeline';
import { Accounts } from '../../domain/models/Accounts'
import { TwitterAction } from '../middlewares/twitterClie... | JavaScript | redux/src/main/renderer/actions/account.js | wozaki/twitter-js-apps | mit | 1,955 | 79 | codeparrot/github-code |
b9eacfc9c177c0c1cdb21cfd29b26f7015d6b64e14ab606d29fc9cb451b3293b | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
##################################################
# GNU Radio Python Flow Graph
# Title: Uniflex Wifi Transceiver
# Generated: Fri Mar 10 14:35:04 2017
##################################################
import os
import sys
sys.path.append(os.environ.get('GRC_HIER_PATH',... | Python | gr_scripts/uniflex_wifi_transceiver.py | uniflex/module_wifi_gnuradio | mit | 8,326 | 210 | codeparrot/github-code |
2289ebe9184c5caa41dedf42cd9eefb5faed432c5dd68aca03bb310941d05d29 | /*jshint evil:true devel:true */
//
// Stolen, with pride, from misc sources. John Resig's Ninja book for instance.
//
//
// Use in Node
// var $ = require('jQuery');
// var helpers = require('./lib/helpers-1.0.js');
//
// set logging level
// logging.threshold = logging.debug;
// logDebug('Loading page...');
/... | JavaScript | lib/js/helpers-1.0.js | karmiphuc/wip | mit | 8,508 | 314 | codeparrot/github-code |
d1dbae1879786adaeb3af776a3a21ebbba7d0d593885709fdc9f4b4fbbee2895 | const prefix = 'SMHTTP_';
const expires = 5000;
const WINDOW = new WeakMap();
class Storage
{
constructor($window) {
WINDOW.set(this, $window);
}
get(key) {
return JSON.parse(this.getString(key));
}
set(key, value) {
this.setString(key, JSON.stringify(value));
}
getString(key) {
var n... | JavaScript | src/services/storage.js | theodo/angular-smart-http | mit | 910 | 47 | codeparrot/github-code |
ddcc1d7e990dd5f941d61095ea9c89d287d0b025bebfe0d85196ee23ece73a7d | from decimal import Decimal as DecimalDecoder
try:
from bson import ObjectId as ObjectIdEncoder
except ImportError:
def ObjectIdEncoder(*args):
raise ImportWarning('`bson` module not found')
from pyschema.bases import BaseNode
__all__ = [
'Node',
'Str',
'Unicode',
'Int',
'Bool',
... | Python | pyschema/nodes.py | cordis/pyschema | mit | 2,017 | 103 | codeparrot/github-code |
ebf4790dcc86aa40bdbd39aee1f62390dcd3df20bc5676cd5db9a83c5073cbad | <!--
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://poly... | HTML | components/core-layout-trbl/core-layout-trbl.html | GDGTC/gdgtc-site-polymer | mit | 8,777 | 270 | codeparrot/github-code |
d502ef45f434aff15b4ee7a1e193124d66ca72fbcefe54dde404fbfe93349dc7 | import { Box, Theme } from "@artsy/palette"
import { storiesOf } from "@storybook/react"
import React from "react"
import { graphql } from "react-relay"
import {
CreateSmsSecondFactorMutationSuccessResponse,
DeliverSmsSecondFactorMutationErrorResponse,
DeliverSmsSecondFactorMutationSuccessResponse,
DisabledQue... | TypeScript | src/Components/UserSettings/TwoFactorAuthentication/Components/SmsSecondFactor/__stories__/SmsSecondFactor.story.tsx | artsy/reaction-force | mit | 3,826 | 136 | codeparrot/github-code |
eed7a9ab36f02532d8a53d7f6db25863a85df2fc80342b49ed3d3c6555ab24c2 | package com.workshare.msnos.core.security;
import static org.junit.Assert.*;
import org.junit.Test;
public class SystemPropertiesKeysStoreTest {
@Test
public void shouldFailLookingForMissingKey() {
System.setProperty(SystemPropertiesKeysStore.SYSP_KEYS, "123=ABC");
KeysStore keys = new ... | Java | src/test/java/com/workshare/msnos/core/security/SystemPropertiesKeysStoreTest.java | workshare/ms-nos | mit | 2,189 | 76 | codeparrot/github-code |
dc74f7ba03fdb2515cedd211296e99e12298dd9deac35a40cf4518e0d298c4ff | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package creation;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
i... | Java | Creation/src/creation/RPG_Character.java | cibikle/spawncamping-bugfixes | mit | 14,029 | 583 | codeparrot/github-code |
b0a5b16e93309f14be5414ae6e57f83c2cc333eb9a2d24bd0c10becfca3a28a7 | <?php
if (!$ajax) {
Yii::app()->clientScript->registerCss('rel_grid','
.rel-grid-view {margin-top:-60px;}
.rel-grid-view div.summary {height: 60px;}
');
}
if ((!$ajax || $ajax == 'ccuc-user-company-grid')
&& Yii::app()->user->checkAccess("D2company.CcucUserCompany.View... | PHP | views/pprsPerson/_view-relations_grids.php | DBRisinajumi/d2person | mit | 25,178 | 613 | codeparrot/github-code |
b913abc99aaa16a1efd38e61f44905bbc4fa104719750003a8f234ddf79aadf2 | var
// Use the correct document accordingly with window argument (sandbox)
document = window.document,
location = window.location,
navigator = window.navigator,
// Map over jQuery in case of overwrite
_jQuery = window.jQuery,
// Map over the $ in case of overwrite
_$ = window.$,
// Save a reference to some ... | JavaScript | src/core.js | fat/jquery | mit | 23,496 | 914 | codeparrot/github-code |
b2aa7e13c1175c0cd350d4eff7054f6d6850288ac4ed0e4c014d62e0f9919ea8 | module WebPageParser
class GuardianPageParserFactory < WebPageParser::ParserFactory
URL_RE = ORegexp.new("(www\.)?guardian\.co\.uk/[a-z-]+(/[a-z-]+)?/[0-9]{4}/[a-z]{3}/[0-9]{1,2}/[a-z-]{5,200}$")
INVALID_URL_RE = ORegexp.new("/cartoon/|/commentisfree/poll/|/video/[0-9]+|/gallery/[0-9]+|/poll/[0-9]+")
def ... | Ruby | lib/web-page-parser/parsers/guardian_page_parser.rb | nulty/web-page-parser | mit | 1,648 | 46 | codeparrot/github-code |
093792bb5f30c9cfb43bc7a2dcc585684b8848e511edf26ccef3f54211197402 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="ca" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Nihilistcoin</source>
<translation>A prop de Nihilistcoin</translati... | TypeScript | src/qt/locale/bitcoin_ca.ts | nihilistcoin/nihilistcoin | mit | 96,760 | 2,918 | codeparrot/github-code |
d9b791d7c0410304894d3671477fdfa6545e6e06dabfffababd92d9653b57419 | <!DOCTYPE html>
<!-- Template: Smart.Framework@Documentor v.20210612 -->
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="unix-world.org">
<meta name="description" content="\SmartModExtLib\SmTwitter\TwitterApi final class \Sm... | HTML | docs-php-classes-interfaces-traits/class@SmartModExtLib-SmTwitter-TwitterApi.html | unix-world/Smart.Framework.Docs | mit | 20,183 | 879 | codeparrot/github-code |
628e6f85a11275dce26a10e8ff25a169c2937f3ac5fad7212593492eae209c6a | package sample.context.report.csv;
import java.util.*;
import lombok.Data;
/**
* CSVレイアウトを表現します。
*/
@Data
public class CsvLayout {
/** 区切り文字 */
private char delim = ',';
/** クオート文字 */
private char quote = '"';
/** クオート文字を付与しない時はtrue */
private boolean nonQuote = false;
/** 改行文字 */
p... | Java | src/main/java/sample/context/report/csv/CsvLayout.java | jkazama/sample-boot-hibernate | mit | 764 | 38 | codeparrot/github-code |
9851387602fd0660fea912e4ea6e5c3c61ca5566442b6fccb8c490548c103c3a | from config import settings
from flask import render_template, url_for
import urllib
def abs_base_url():
return settings.BASE_URL + settings.BASE_PREFIX
def url_for_with_prefix(endpoint, **values):
if settings.BASE_PROTOCOL == 'https://':
values['_scheme'] = 'https'
return url_for(endpoint, _ext... | Python | app/helpers.py | sunlightlabs/the-phantom-mask | mit | 2,518 | 82 | codeparrot/github-code |
b7e0803263d78b8b578764a766e1bb7234616717d3cb2a42b1b30bfec081d82a | #include <fcntl.h>
#include <sys/types.h>
#include <sys/time.h>
#include <netinet/tcp.h>
#include <errno.h>
#include <signal.h>
#include <unistd.h>
#include "method_thread.h"
#include "connection.h"
#include "slock.h"
#include "pollmgr.h"
#include "jsl_log.h"
#include "gettime.h"
#include "lang/verify.h"
#define MAX_... | C++ | rpc/connection.cc | ycdeng/yfs | mit | 9,925 | 449 | codeparrot/github-code |
e46521e2072bb909097c620f1d8a6e8c567522cc5113d2479f513e4345b92c6f | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
from __future__ import division
import random
import os
import math
import pickle
import stimulus
WIN_SIZE = (1280, 1024)
FPS = 60
N_RANDOM_TRIALS = 25
def create_random_items():
"""
Creates pickle files with lists of random positions for RandomWalk and
R... | Python | experiment/generate_sessionfiles.py | derNarr/synchronicity | mit | 3,446 | 99 | codeparrot/github-code |
8fa6ba2b09c905847bd35901ff416d3f4b7ef4c5f04c5c54ce4073e7fb40f428 | import logging
from requests.exceptions import HTTPError
from pp_api import utils as u
from pp_api import pp_calls
module_logger = logging.getLogger(__name__)
class GraphSearch:
timeout = None
def __init__(self, server, auth_data=None, session=None, timeout=None):
self.server = server
ses... | Python | pp_api/gs_calls.py | artreven/pp_api | mit | 11,664 | 372 | codeparrot/github-code |
501b84c9387eb0560bcc7423763c4c7454f766f53194712f98e6612ecf546562 | package com.emarsys.escher.acceptance;
import com.emarsys.escher.Escher;
import com.emarsys.escher.EscherException;
import com.emarsys.escher.EscherRequest;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpRequestBase;
import org.apache.http.impl... | Java | src/test/java/com/emarsys/escher/acceptance/Client.java | emartech/escher-java | mit | 3,237 | 116 | codeparrot/github-code |
a9a291d7921a097e9828e7f2043c94db5e1348a91a125ca60d5892d31e971d72 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2020 The BitcoinCore developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef FUJICOIN_UTIL_EPOCHGUARD_H
#define FUJICOIN_UTIL_EPOCHGUARD_H
#include <t... | C | src/util/epochguard.h | fujicoin/fujicoin | mit | 3,025 | 92 | codeparrot/github-code |
f3bb251da6222ee4d26489fcd40f6e54c5ca2e4831b95bb3b69432d13205cd66 | using System;
using System.Collections.Generic;
using System.Security.Claims;
using System.Security.Principal;
using Domain.AbstractRepositories;
using Domain.BaseObjects;
using Domain.Cards;
using Utilities.Exceptions;
using Utilities.ExtensionMethods;
namespace Domain.Users
{
public class User: Entity, IPrincip... | C# | Domain/Users/User.cs | dicehead3/Kaartenbak | mit | 2,400 | 94 | codeparrot/github-code |
739ae47a5a6f4261eeb8aeb1cc1864814cd6c102d32b8df21fa9c4f6420d879e | import {SphereBufferGeometry, SphereGeometry} from "three";
import {createGeometryAndBufferGeometryDescriptors} from "../../common/createGeometryDescriptor";
import {IThreeElementPropsBase} from "../../common/IReactThreeRendererElement";
export interface ISphereGeometryProps {
radius?: number;
widthSegments?: numb... | TypeScript | src/core/renderer/hostDescriptors/descriptors/geometries/sphereGeometry.ts | toxicFork/react-three-renderer-fiber | mit | 1,056 | 38 | codeparrot/github-code |
450b2c0d821d34006a72d1cc6aef82740be18fd2bd198b3f4e5b68692116b987 |
const {r} = require('./dbConfig')
const {CreateKbz, Pulse} = require('./pulse')
exports.CreateKbz = CreateKbz
exports.CreateUser = (userObj) =>{
userObj.memberships = {live : {}, past : {}};
return r.table('users').insert(userObj,{returnChanges : true})
.then((user)=> Promise.resolve({KBZ : 'users' , id... | JavaScript | be.js | uriee/kibbutznik | mit | 7,616 | 140 | codeparrot/github-code |
4e248f2c3fc07821debaf1a65c9a5efea1b2f06910fc5d381f188b5d39956307 | //
// Gulpfile
//
// Dependencies
//
var gulp = require('gulp');
var pump = require('pump');
var path = require('path');
var sass = require('gulp-sass');
var minify = require('gulp-minify');
var rename = require('gulp-rename');
var browserify = require('browserify');
var cleanCss = require('gulp-clean-css');
var runSe... | JavaScript | public/gulpfile.js | contentasaurus/c-rex-admin | mit | 3,034 | 173 | codeparrot/github-code |
6b7c5078877fe8d0250bb5840a40e164912a3ed8d40c6e72ed9a1d9019f10bfe | <?php
/**
* @author Krzysztof Gzocha <krzysztof.gzocha@xsolve.pl>
*/
namespace Team3\PayU\Order\Model;
interface OrderStatusInterface
{
const NEW_ORDER = 'NEW';
const PENDING = 'PENDING';
const WAITING_FOR_CONFIRMATION = 'WAITING_FOR_CONFIRMATION';
const COMPLETED = 'COMPLETED';
const CANCELED = ... | PHP | src/Team3/PayU/Order/Model/OrderStatusInterface.php | krzysztof-gzocha/payu | mit | 941 | 56 | codeparrot/github-code |
5d444ab09b43e61bd0a6e866f1e1af09035865702571e8589db36ed7946fe0af | package hudson.plugins.jira;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.List;
import java.util.Map;
import com.google.common.collect.Maps;
import hudson.model.AbstractBuild;
import hudson.model.AbstractProject;
import hudson.model.Run;
import hudson.model.Ab... | Java | src/main/java/hudson/plugins/jira/RunScmChangeExtractor.java | escoem/jira-plugin | mit | 3,393 | 86 | codeparrot/github-code |
ebfec9cc08a1b920dd72399bcb2ab7fedcdda32e7a233c1b3854f59c7475d297 | package graphql
import (
"fmt"
"math"
"strconv"
"time"
"github.com/equinux/graphql/language/ast"
)
// As per the GraphQL Spec, Integers are only treated as valid when a valid
// 32-bit signed integer, providing the broadest support across platforms.
//
// n.b. JavaScript's integers are safe between -(2^53 - 1) ... | GO | scalars.go | equinux/graphql | mit | 11,075 | 572 | codeparrot/github-code |
7b26b3193b67b3ab1206bcb847908ee7bb084e5adefdfbb057c5f9557f36c590 | package x7c1.wheat.harvest.layout
import x7c1.wheat.harvest.PackageResolver.toPackage
import x7c1.wheat.harvest.{ResourcePrefix, Indent, ParsedResource, ResourcePartsFactory, Packages, ResourceParts}
trait ViewHolderParts extends ResourceParts {
def parentClass: String
def declarePackage: String
def imports: St... | Scala | wheat-harvest/src/main/scala/x7c1/wheat/harvest/layout/ViewHolderParts.scala | x7c1/Wheat | mit | 1,822 | 60 | codeparrot/github-code |
45300d2edba850c03e2228e62c78407c32b02d175a56d40b6c7dae0c316c74e3 | import {
ALBUMS__FETCH_LIST,
ALBUMS__UPDATE_LIST,
ALBUMS__LIST_FETCH_FAILED,
ALBUMS__FETCH_ALBUM,
ALBUMS__SET_SHOWING_ALBUM,
ALBUMS__ALBUM_FETCH_FAILED,
} from '../constants/actionTypes';
const fetchAlbumsListAction = () => ({
type: ALBUMS__FETCH_LIST,
});
const updateAlbumListAction = (albums = []) =>... | JavaScript | client/actions/albums.js | datyayu/raji-react | mit | 1,395 | 67 | codeparrot/github-code |
2f1562f0bf99ba26074384660e9981820c55b0bc108fb44c2e3cc46dcfb85ee8 | """
Lights sample
This sample shows how to setup multiple lights and load them from a .bam file.
"""
# Disable the "xxx has no yyy member" error, pylint seems to be unable to detect
# the properties of a nodepath
# pylint: disable=no-member
from __future__ import print_function
import os
import sys
import math
fr... | Python | 03-Lights/main.py | tobspr/RenderPipeline-Samples | mit | 5,332 | 148 | codeparrot/github-code |
a9a05506bef165157d9d5a395773af4fd9bfa65452032cae26182d462fc8225d | package feedreader.utils;
import org.apache.commons.validator.routines.EmailValidator;
public class Validate {
public static String getEmailRules() {
return "The email needs to match, someone@domain.tld, tld may be of the newer domain names.";
}
public static boolean isValidEmailAddres... | Java | src/main/java/feedreader/utils/Validate.java | sliechti/feedrdr | mit | 1,055 | 32 | codeparrot/github-code |
073ba5bf0e4838c1665bee23395b64534f2f13b9861ecf48fce854f1c2fe1b63 |
#ifndef __EFFEKSEERRENDERER_CULLING_H__
#define __EFFEKSEERRENDERER_CULLING_H__
//----------------------------------------------------------------------------------
// Include
//----------------------------------------------------------------------------------
#include <EffekseerRenderer/EffekseerRendererDX9.Renderer... | C | Dev/Cpp/Viewer/EffekseerTool/EffekseerTool.Culling.h | lltcggie/Effekseer | mit | 2,077 | 67 | codeparrot/github-code |
7d4423ffd5b3a64c3d293d9d41dff9a9ae6096d46d1ef5ad9ed143da03d1d20b | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person ... | C | src/Ogre/OgreMain/include/OgrePixelBox.h | devxkh/FrankE | mit | 7,093 | 173 | codeparrot/github-code |
756a9d7403b1b4b4d6e7f08cbd9316fe9daae90399db2d1a21528445947eea6f | /**
* @author mrdoob / http://mrdoob.com/
*/
import { WebGLProgram } from './WebGLProgram';
import { BackSide, DoubleSide, FlatShading, CubeUVRefractionMapping, CubeUVReflectionMapping, GammaEncoding, LinearEncoding } from '../../constants';
function WebGLPrograms( renderer, capabilities ) {
var programs = [];
... | JavaScript | src/renderers/webgl/WebGLPrograms.js | camellhf/three.js | mit | 8,129 | 300 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.