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 |
|---|---|---|---|---|---|---|---|---|
8bc5e1a8e4d96c6367d952716074230ccb13cea00985407b71fe2d18d9cd4ddd | using System.Collections.Generic;
using BEPUphysics.Constraints.SolverGroups;
using BEPUphysics.Constraints.TwoEntity.Motors;
using BEPUphysics.Entities.Prefabs;
using BEPUutilities;
using BEPUphysics.Entities;
using BEPUphysics.CollisionRuleManagement;
using Microsoft.Xna.Framework.Input;
using System;
using BEPUphys... | C# | 3DAsteroids/3DAsteroids/BEPUphysicsDemos/BEPUphysicsDemos/Demos/SpiderDemo.cs | karrtmomil/coms437_assignment2 | mit | 10,021 | 228 | codeparrot/github-code |
4d0ddbf291732384ee00acb5d94eee7c2d00824cd8d657f976f8355db3e470db | /**
* Created by jsturtevant on 1/18/14
*/
var DEFAULT_SHORTCUT_KEY = 'ctrl+shift+k';
var LOCAL_STORAGE_KEY = 'optionsStore'
var defaultOptions = {
shortcuts: [
{key: "", value:""}
],
cssSelectors: [{value:""}],
shortcutKey: DEFAULT_SHORTCUT_KEY,
includeIFrames: true
};
var optionsApp = ... | JavaScript | app/scripts/options.js | jsturtevant/expander | mit | 2,125 | 82 | codeparrot/github-code |
2c1cdcd9a95d74945bc4fb7d8b2265f102123de89e7ae1c0d038fba201c1e2b8 | /*
GWEN
Copyright (c) 2012 Facepunch Studios
See license in Gwen.h
*/
#include <rose/Rose.hpp>
#include <rose/Utility.hpp>
#include <rose/Skin.hpp>
#include <rose/ctl/PageControl.hpp>
#include <rose/ctl/Controls.hpp>
using namespace rose;
using namespace rose::ctl;
GWEN_CONTROL_CONSTRUCTOR(... | C++ | src/rose/PageControl.cpp | FRex/rose | mit | 4,144 | 183 | codeparrot/github-code |
10eab4ba48954389c54e45b67b4883f35549d141d54c13ae6bbe773f95cd95b7 | import { BecauseError } from "../../errors";
import { Response } from "../../response";
import { parse_response } from "../../parse";
import { JWT, LazyJWT } from "./jwt";
class TokenParseError extends BecauseError {
}
// https://github.com/boundlessgeo/bcs/blob/master/bcs-token-service
// /src/main/java/com/boundl... | TypeScript | src/services/token/parse.ts | harts-boundless/because.js | mit | 3,733 | 146 | codeparrot/github-code |
e758985be841b8f8e9fdc5e604a79689692ca194efb55e44d18cedc3ff95ea20 | /* Copyright (C) 2001, 2008 United States Government as represented by
the Administrator of the National Aeronautics and Space Administration.
All Rights Reserved.
*/
package gov.nasa.worldwind.render;
import gov.nasa.worldwind.geom.*;
import gov.nasa.worldwind.render.airspaces.*;
import javax.media.opengl.*;
... | Java | experimental/gov/nasa/worldwind/render/SurfaceCircle2.java | caadxyz/Macro-Thinking-Micro-action | mit | 1,719 | 65 | codeparrot/github-code |
93a4bdb9cad97c1e2061f3b3899df7030d0ce107d0cd260094950b5669c637f3 | // MIT License
//
// Copyright (c) 2016 Fingercomp
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, ... | C++ | src/main.cpp | Fingercomp/game-of-life | mit | 10,463 | 224 | codeparrot/github-code |
eed7b9dd192cc5ef9b60b3dd78feeb9e07dfc70e2ccb7ac8f1d1b70c5a95900a | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2011-2012 Litecoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "irc.h"
#include "db.h"
#i... | C++ | src/net.cpp | deemkeen/leprocoin | mit | 57,969 | 1,929 | codeparrot/github-code |
479197212064eb095107041f00d98e592793ec04fd261063e164dbdcd40b6c1a | <!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8" />
<base href="https://neandr.github.io/piSchedule/" >
<title>piSchedule - Job Editor</title>
<!-- HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/s... | HTML | docs/en.scheduleEdit.html | neandr/piSchedule | mit | 10,487 | 263 | codeparrot/github-code |
d895790d12f6e5844bdacb0da4238cbd73cb85485366160a5f0134fe45827ee6 | package com.martin.lolli;
import android.app.ActionBar;
import android.app.Activity;
import android.app.Fragment;
import android.content.SharedPreferences;
import android.content.res.Configuration;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.v4.app.ActionBarDrawerTogg... | Java | app/src/main/java/com/martin/lolli/NavigationDrawerFragment.java | martindisch/Lolli | mit | 10,019 | 263 | codeparrot/github-code |
d795cbc9046f5b81f50a10ded636daafbe18e65f2b92b6fe1fe7c14b58dee7ef | <?php
$id = $_GET['id'];
$link = mysqli_connect("localhost",
"root",
"lict@2",
"crud");
$query = "select * from ict_skills WHERE id = $id";
$result = mysqli_query($link, $query);
$row = mysqli_fetch_assoc($result);
?>
<form action="update.php" method="post">
<input type="hidden" name="id" value="<?php e... | PHP | ict_skills/edit.php | Muktaranibiswas/Assignment_crud | mit | 1,875 | 45 | codeparrot/github-code |
e46c261754a82cc93b8624e81a6066501039da6295376dc7b6b3731cd2676a80 | (function (r) {
"use strict";
var events = r('events');
var eventEmitter = new events.EventEmitter();
var playerManager = r('../PlayerSetup/player-manager').playerManager;
var helper = r('../helpers');
var world = {
valston: r('../../World/valston/prison')
};
var time... | JavaScript | Game/Core/Events/time.js | LiamKenneth/MudDungeonJS | mit | 12,166 | 333 | codeparrot/github-code |
25d942de954098364807fc203ba18e172cac05bd0ce9f1d61f5125cf5a7a8c24 | <?php
/**
* Created by PhpStorm.
* User: SSOMENS-022
* Date: 15/5/15
* Time: 11:13 AM
*/
class Mdl_access_rights_terminate_search_update extends CI_Model{
public function URT_SRC_errormsg_loginid($URT_SRC_source){
$URT_SRC_errorarray =array();
$USRC_arr_loginid =array();
$USRC_arr_u... | PHP | application/models/ACCESS RIGHTS/Mdl_access_rights_terminate_search_update.php | Rajagunasekaran/sample | mit | 17,707 | 336 | codeparrot/github-code |
579aaf0b10cb5d0f4cca201a4202639fbb6aac67ea076d08a8101e1d9db8c071 | using MomWorld.DataContexts;
using MomWorld.Entities;
using MomWorld.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace MomWorld.Controllers
{
public class ChatController : Controller
{
private IdentityDb identityDb = new Iden... | C# | MomWorld/Controllers/ChatController.cs | shortgiraffe4/MomWorld | mit | 712 | 30 | codeparrot/github-code |
7c287cd4b7da4dc41eff875d733e31fc9027a25b4e5234b7d90cbbbbb204c3ab | namespace MyApp.Core.Commands
{
using AutoMapper;
using MyApp.Core.Commands.Contracts;
using MyApp.Core.ViewModels;
using MyApp.Data;
using System.Linq;
public class EmployeePersonalInfoCommand : ICommand
{
private readonly MyAppContext context;
private readonly ... | C# | C# DB/C# DB Advanced/Automapper_/MyApp/Core/Commands/EmployeePersonalInfoCommand.cs | Ivelin153/SoftUni | mit | 976 | 36 | codeparrot/github-code |
1d049ce768596786d3e92f1c202393b8917bcc53d819c04ddbf0bf6b1cd29810 | /**
* 页面管理
* @author: SimonHao
* @date: 2015-12-19 14:24:08
*/
'use strict';
var path = require('path');
var fs = require('fs');
var extend = require('extend');
var mid = require('made-id');
var file = require('./file');
var config = require('./config');
var page_list = {};
var comm_option = confi... | JavaScript | lib/page.js | simonhao/made-build | mit | 3,654 | 190 | codeparrot/github-code |
85696e1c27fe2f8bde357665d3c9dea3d34e83fcf9b934fb923fd827e7dc89ac | package org.bouncycastle.asn1.cms;
import org.bouncycastle.asn1.ASN1EncodableVector;
import org.bouncycastle.asn1.ASN1Integer;
import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1Primitive;
import org.bouncycastle.asn1.ASN1Sequence;
import org.bouncycastle.asn1.ASN1Set;
import org.bouncycastle.as... | Java | src/org/bouncycastle/asn1/cms/EncryptedData.java | sake/bouncycastle-java | mit | 2,516 | 95 | codeparrot/github-code |
bbc9342b422bea74470640dc178a7b753d81140b21d09dd4ff6068b67ff0692e | #!/usr/bin/env zsh
#
# Author: Denys Dovhan, denysdovhan.com
# https://github.com/spaceship-prompt/spaceship-prompt
# ------------------------------------------------------------------------------
# Colors
# Set color variables for colorful output
# ---------------------------------------------------------------------... | Shell | scripts/install.sh | denysdovhan/spaceship-zsh-theme | mit | 3,867 | 127 | codeparrot/github-code |
f3a6c18982288112b137f7d9bb76d5625691b5bb22bd9a1d74977c3626dd6fd8 | //===- FindUsedTypes.cpp - Find all Types used by a module ----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===------------------------------------------------... | C++ | extern/llvm/lib/Analysis/IPA/FindUsedTypes.cpp | abduld/clreflect | mit | 3,524 | 102 | codeparrot/github-code |
53d44d0fbbbb6a1a49e97ac2f145415c21ab01f5ccf55e1bb4765264151e9a16 | <?php
/**
* The Opera Framework
* Cookies.php
*
* @author Marc Heuker of Hoek <me@marchoh.com>
* @copyright 2016 - 2017 All rights reserved
* @license MIT
* @created 27-8-16
* @version 1.0
*/
namespace Opera\Component\Http;
use ArrayIterator;
use IteratorAggregate;
use Traversable;
class Cookies i... | PHP | src/Component/Http/Cookies.php | theopera/framework | mit | 823 | 42 | codeparrot/github-code |
e536f6c07717fce8bb8232a50fa78375bbeb514cef257bd38ed0a3e58a203f30 | <!doctype html>
<html class="no-js" lang="en-US">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hannah Jones | Web Developer</title>
<meta name="description" content="Coderjones.com is a portfol... | HTML | src/index.html | MrsHannahJ/portfolio | mit | 16,106 | 343 | codeparrot/github-code |
cd7e5fe60a93617bba2986284fc75420e87e470b8fa94605fdf57af8eba3ab71 | # Frozen-string-literal: true
# Encoding: utf-8
require 'rubygems'
require 'yaml'
module Jekyll
module LanguagePlugin
module Loaders
class BuiltinDataLoader < BaseLoader
attr_reader :data
def initialize(site)
super
@data = Hash.new
end
def loaded?(lang... | Ruby | lib/jekyll/language-plugin/loaders/builtin_data_loader.rb | vwochnik/jekyll-language-plugin | mit | 962 | 42 | codeparrot/github-code |
b2de56365925d71cbb4514d21ca7dd02635bc3697cbb2d3e7306bfe5756e4390 | #include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
#include <iostream>
int main()
{
sf::RenderWindow window(sf::VideoMode(200, 200), "Donguili");
sf::Music sound;
if (!sound.openFromFile("C:/Users/Alpha/Documents/Donguili/bin/Debug/test.ogg"))
return -1; // erreur
sound.play();
while (win... | C++ | main.cpp | haaggen/Donguili | mit | 909 | 42 | codeparrot/github-code |
9618a21c4c774f85e69b6a42189667f235196df834bd23ec54df00b1b22592d4 | import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
/**
* Created by jackrosenhauer on 5/5/15.
*/
public class Main {
public static void main(String[] args){
final int DEFAULT_PORT = 8080; // For security reasons, only root can use ports < 1024.
int portNumber = args.length >... | Java | src/Main.java | jackrosenhauer/web-server | mit | 983 | 36 | codeparrot/github-code |
840caede97e75ca64ae54fe1ec159529df0390663638daef5918849f795e0069 | using System;
using System.Collections.Generic;
using Content.Server.AI.Utility.Actions;
using Content.Server.AI.Utility.Actions.Combat.Melee;
using Content.Server.AI.Utility.Considerations;
using Content.Server.AI.Utility.Considerations.Combat.Melee;
using Content.Server.AI.WorldState;
using Content.Server.AI.WorldSta... | C# | Content.Server/AI/Utility/ExpandableActions/Combat/Melee/EquipMeleeExp.cs | space-wizards/space-station-14-content | mit | 1,564 | 46 | codeparrot/github-code |
b353666d85457f7545799ecc282316e84f9b7c9bfe29dfdaa34c5e7b2c7b2f90 | import asyncio
from abc import ABCMeta
from collections.abc import MutableMapping
from aiohttp import web
from aiohttp.web_request import Request
from aiohttp_session import get_session
from collections.abc import Sequence
AIOLOGIN_KEY = '__aiologin__'
ON_LOGIN = 1
ON_LOGOUT = 2
ON_AUTHENTICATED = 3
ON_FORBIDDEN = 4... | Python | aiologin/__init__.py | trivigy/aiologin | mit | 7,901 | 253 | codeparrot/github-code |
b98cf8d5bcea49cdd03057ab22327d789d3912e4897d7f273e77b168792d862a |
lychee.define('Font').exports(function(lychee) {
var Class = function(spriteOrImages, settings) {
this.settings = lychee.extend({}, this.defaults, settings);
if (this.settings.kerning > this.settings.spacing) {
this.settings.kerning = this.settings.spacing;
}
this.__cache = {};
this.__images = null;
... | JavaScript | lychee/Font.js | Smotko/lycheeJS | mit | 2,768 | 161 | codeparrot/github-code |
4e233910714852e1ab4936ed54630ebe3298e158ac0045dafd35c632a1eb17ce | # coding: utf-8
# pylint: disable=too-many-lines
import inspect
import sys
from typing import TypeVar, Optional, Sequence, Iterable, List, Any
from owlmixin import util
from owlmixin.errors import RequiredError, UnknownPropertiesError, InvalidTypeError
from owlmixin.owlcollections import TDict, TIterator, TList
from ... | Python | owlmixin/__init__.py | tadashi-aikawa/owlmixin | mit | 33,820 | 1,007 | codeparrot/github-code |
c11ed2f4f82c3be069388561ec02b0e9ea868cc3a0be571811576f9e81d2a769 | namespace Pluton.Rust.Events
{
using Core;
using Rust;
using Rust.Objects;
using System;
using System.Collections.Generic;
public class DoorCodeEvent : Event
{
public Player Player;
public CodeLock codeLock;
public bool ForceAllow = false;
private s... | C# | Events/DoorCodeEvent.cs | Notulp/Pluton.Rust | mit | 2,204 | 81 | codeparrot/github-code |
9f5f61621aa526303ffbb8ef5a665bf7c6ed9785b9e8b7eefc32a70f1fc375ff | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2022 Ryo Suzuki
// Copyright (c) 2016-2022 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# include <Siv3D/Script.hpp>
# include <Siv3D/... | C++ | Siv3D/src/Siv3D/Script/Bind/ScriptStopwatch.cpp | Siv3D/OpenSiv3D | mit | 6,336 | 115 | codeparrot/github-code |
c2ee93ca71b6113ccacf3520abec3cb3a98690dbbb42926c50513c5e70a16740 | //
// SoundManager.h
// Jam
//
// Created by Ostap on 23.11.14.
//
//
#ifndef __Jam__SoundManager__
#define __Jam__SoundManager__
#include "cocos2d.h"
#include "audio/include/AudioEngine.h"
using namespace cocos2d;
using namespace ui;
USING_NS_CC;
enum Sounds {
sound_best_loop,
sound_drop_item,
soun... | C | Classes/SoundManager/SoundManager.h | jetberry/JamPewDiePie | mit | 1,629 | 84 | codeparrot/github-code |
152be94117fa69a32199d4f15b82ee356d54ecf13f4015c1fbebbc32793ceca4 |
#import <Foundation/Foundation.h>
#import "SQDAPI.h"
#import "UIColor+Util.h"
#import "UIView+Util.h"
#import "UIImage+Util.h"
#import "UIImageView+Util.h"
#import "AFHTTPRequestOperationManager+Util.h"
@interface Util : NSObject
//通过颜色来生成一个纯色图片
+ (UIImage *)getImageFromColor:(UIColor *)color withFrame:(CGRect )fram... | C | iOSUtils/category/Util.h | dudulu00/NJMUtils | mit | 1,433 | 39 | codeparrot/github-code |
5b902e84e706818e11c5332ea961364f3f189d8e1dac40f849338f34023c8caa | <?php
namespace Acme\StoreBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Acme\StoreBundle\Entity\Product;
use Acme\StoreBundle\Form\ProductType;
class DefaultController extends Controller {
public function indexAction() {
// just setup a fresh $product object (no dummy ... | PHP | src/Acme/StoreBundle/Controller/DefaultController.php | VelvetMirror/validation | mit | 1,068 | 37 | codeparrot/github-code |
f6bfab9386db469aa93ef81d0e0c8e4487f21668d44ffdb630e56a055a6ef593 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, division
from future.utils import with_metaclass
import numpy as np
import scipy as sp
from abc import ABCMeta, abstractmethod
from scipy import integrate
import scipy.interpolate as interpolate
from . import core
from . import refstate
_... | Python | xmeos/models/gamma.py | aswolf/xmeos | mit | 11,696 | 382 | codeparrot/github-code |
b55e755f19540dc7b57989948ecb509e9319fa129bfda84d3fdf0bd2c938b284 | // bundles everything except TS files which will be built by rollup.
// webpack stuff
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var failPlugin = require('webpack-fail-plugin');
var helpers = require('./helpe... | JavaScript | config/webpack.dev.js | samdevx1029/angular-ts-webpack-ngc-rollup | mit | 2,491 | 90 | codeparrot/github-code |
876a02a450af51d84a95f38c3e31acd4927a7f3153bed564c8b454c62a8b9c57 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="Asciidoctor 1.5.4">
<title>gitweb.conf(5)</title>
<link rel="stylesheet" hre... | HTML | docs/git-doc/gitweb.conf.html | alinlupu/visualize-git | mit | 80,506 | 1,672 | codeparrot/github-code |
8ccd8c58f41d0baa22962881a0a196b4d6d894b0287ad842be9669c200344385 | <!DOCTYPE html>
<html>
<head>
<title>牛妞和痲痲的宫斗... |
MoMoKo.in | 丸子家.在内</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="http://MOMOKO.in/theme/css/bootstrap.min.css" type="text/css" />
... | HTML | niuniu/say-nn2564.html | momokowan/momokowan.github.io | mit | 6,596 | 173 | codeparrot/github-code |
c353d380c5845c369b5157b69fc30896ddda1d6e23708ae5230721d66b665911 | import { css, ThemedStyledProps } from 'styled-components';
import { ripple } from '../../utils/animations';
import { Theme } from '../../themes/default';
import { StyleProps } from './default';
export const style = ({
theme,
main,
}: ThemedStyledProps<StyleProps, Theme>) => css`
display: flex;
flex: 0 0 1;
... | TypeScript | packages/devui/src/Tabs/styles/material.ts | gaearon/redux-devtools | mit | 1,407 | 68 | codeparrot/github-code |
74cc7cf0ba4b80d350fc59fbd53bbeb89fd2f57793cbb63da9fcfd0b8b9c1a7c | package com.agamemnus.cordova.plugin;
import com.google.android.gms.ads.AdListener;
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.AdSize;
import com.google.android.gms.ads.AdView;
import com.google.android.gms.ads.InterstitialAd;
import com.google.android.gms.ads.mediation.admob.AdMobE... | Java | src/android/AdMob.java | agamemnus/cordova-plugin-admob | mit | 20,788 | 501 | codeparrot/github-code |
29ff5ee29f8efce36fdd792c87f60c9b6d1fd6df732cfc0fbbd390fcd7a641f8 | using System.ComponentModel;
using System.Linq;
using System.Windows.Data;
using Smellyriver.TankInspector.Common;
using Smellyriver.TankInspector.Pro.Data.Entities;
using Smellyriver.TankInspector.Pro.Data.Tank;
using Smellyriver.TankInspector.Pro.Repository;
namespace Smellyriver.TankInspector.Pro.CustomizationConf... | C# | src/Smellyriver.TankInspector.Pro.CustomizationConfigurator/CustomizationConfigVM.cs | smellyriver/tank-inspector-pro | mit | 3,535 | 107 | codeparrot/github-code |
a6addbac4966a4036d7c64863568a6d4e00532194fda615f390ae7ffdea1db87 | package fi.ozzi.tapsudraft.service;
import com.google.common.collect.ImmutableMap;
import fi.ozzi.tapsudraft.model.Player;
import fi.ozzi.tapsudraft.model.Position;
import fi.ozzi.tapsudraft.repository.PlayerRepository;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.apache.http.HttpResponse;
... | Java | src/main/java/fi/ozzi/tapsudraft/service/PlayerFetchService.java | osmoossi/tapsudraft | mit | 3,833 | 112 | codeparrot/github-code |
0f2fa005af2c1b0088ea432beccae2202cedfe7acd66ae7dc69065c91d41c2c7 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<script type="text/javascript">
//数组直接量形式创建数组
var arr=[];//空数组
var arr1=[1,2,3,4,5,6];
var arr2=[1,2.3,true,false,null,undefined,[1,2,3],{x:1,y:2}];
var x=1;
var arr3=[x,x*3,x+2,x+3];
c... | HTML | javascript/demo1/array.html | 290388252/My-H5 | mit | 2,500 | 116 | codeparrot/github-code |
bbbeb712f98d4be8d170d24ff50e3dbf3d1b414ca00644da84e858dba81c70b0 | (function( window, $, undefined ) {
// http://www.netcu.de/jquery-touchwipe-iphone-ipad-library
$.fn.touchwipe = function(settings) {
var config = {
min_move_x: 20,
min_move_y: 20,
wipeLeft: function() { },
wipeRight: function() { },
wipeUp: function() { },
wipeDown: function() { },
pr... | JavaScript | lib/extensions/rg-gallery/jquery.elastislide.js | LechDutkiewicz/serfenta_theme | mit | 13,063 | 469 | codeparrot/github-code |
1de6f4e07ec48f9a035f8ab314ae89655ccc39280b078083a8fecd55cd72f070 | <?php
/*
* This file is part of AppBundle the package.
*
* (c) Ruslan Muriev <muriev.r@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace RonteLtd\JsonApiBundle\Serializer\Normalizer;
use Doctrine\Common\Collect... | PHP | Serializer/Normalizer/Collection.php | ronte-ltd/JsonApiBundle | mit | 1,811 | 105 | codeparrot/github-code |
0c0a2dd25d3e890cee37e848f43eb85c1ccade420ee44444ebf4e190b7bf4060 | // $flavio.lisboa @ 2017-09-04.
//
/*
* @file basic_octdiff_cons.hpp
*/
#ifndef adl__oct__cons__basic_octdiff_cons__hpp__
#define adl__oct__cons__basic_octdiff_cons__hpp__
#include <type_traits>
#include <string>
#include <iosfwd>
#include <stdexcept>
#include "adl.cfg.hpp"
#include "adl/oct.fwd.hpp"
#include "adl... | C++ | include/adl/oct/cons/basic_octdiff_cons.hpp | flisboac/adl | mit | 10,062 | 238 | codeparrot/github-code |
961870e9638cfda1fdba73031771363713cd8f71a27bf1ddb22b9c941fd29e20 | #!/usr/bin/env node
var _ = require('lodash');
var async = require('async-chainable');
var asyncFlush = require('async-chainable-flush');
var colors = require('chalk');
var doop = require('.');
var glob = require('glob');
var fs = require('fs');
var fspath = require('path');
var program = require('commander');
var sha... | JavaScript | doop-list.js | MomsFriendlyDevCo/doop-cli | mit | 5,758 | 181 | codeparrot/github-code |
d2eb69268d08e117b9c75d2b93a5f91959d32771a4ef7774af18f66afc3d6229 | #include "NoReturnFunctionExtractionValidator.hpp"
#include <cppmanip/boundary/ExtractMethodError.hpp>
#include <boost/range/adaptor/transformed.hpp>
#include <boost/algorithm/string/join.hpp>
#include <boost/range/algorithm_ext/push_back.hpp>
#include <boost/range/algorithm/sort.hpp>
namespace cppmanip
{
namespace
{... | C++ | library/src/cppmanip/NoReturnFunctionExtractionValidator.cpp | rafalprzywarski/libcppmanip | mit | 1,135 | 34 | codeparrot/github-code |
5b516d3fdf0a582b7f036389249625d5f5ce72d6caf31b1106cef27377f322c8 | <?php
namespace DomainBundle\Entity\Super;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\MappedSuperclass
*/
abstract class IntegerID extends Entity
{
/**
* @var int
*
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id = null;
pub... | PHP | src/DomainBundle/Entity/Super/IntegerID.php | sugatov/web-pms | mit | 528 | 37 | codeparrot/github-code |
63d7a2382430739c601c72e8b9c59297848bc20f268c2a191c0107103d92a658 | if(!Hummingbird) { var Hummingbird = {}; }
Hummingbird.Base = function() {};
Hummingbird.Base.prototype = {
validMessageCount: 0,
messageRate: 20,
initialize: function() {
this.averageLog = [];
this.setFilter();
this.registerHandler();
},
registerHandler: function() {
this.socket.registe... | JavaScript | public/js/widgets/base.js | mikejihbe/hummingbird | mit | 1,907 | 83 | codeparrot/github-code |
d0fd553e639dd04861e5d356640cfbe7b06a9ebde371efef75e5612a0ac0e1e2 | /*
* 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 com.github.sunnybat.paxchecker.setup.email;
import com.github.sunnybat.commoncode.email.EmailAddress;
import com.github.sunnyb... | Java | src/main/java/com/github/sunnybat/paxchecker/setup/email/EmailSetupGUI.java | SunnyBat/PAXChecker | mit | 22,577 | 618 | codeparrot/github-code |
b475beb129fad6eae3ba58085864b8fd9f78f479a69d06f4fe5692ae84f208c7 | #include "PSF.h"
#include "Utils.h"
#include <cassert>
#include <iostream>
#include <fstream>
using namespace std;
using namespace arma;
PSF::PSF(int size)
:size(size)
,pixels(size, vector<double>(size, 0.))
,fft_ready(false)
{
assert(size%2 == 1);
pixels[size/2][size/2] = 1.;
}
void PSF::set_size(int new_size)
{
... | C++ | Code/C++/Models/PSF.cpp | eggplantbren/TwinPeaks3 | mit | 3,180 | 176 | codeparrot/github-code |
5a858f1273e7827984707b090aa375a657da6a2af1b0fd8b26e9fec9ac8523f5 | define([
'knockout'
],function(
ko
){
ko.bindingHandlers.withfirst = {
'init' : function(element, valueAccessor, allBindings, viewModel, bindingContext) {
var savedNodes;
ko.computed(function() {
var dataValue = ko.utils.unwrapObservable(valueAccessor());
var shouldDisplay = typeof... | JavaScript | ko.withfirst.js | ssddi456/ko_custom_bindings | mit | 1,190 | 33 | codeparrot/github-code |
9b6254b4ed0fd7a584b6b57625d674aeb94ec5e904787b961a1de37531282cce | var bunyanConfig = require('../index');
var bunyan = require('bunyan');
var path = require('path');
describe('bunyan-config', function () {
it('should not convert things it does not understand', function () {
bunyanConfig({
name: 'test',
streams: [{
path: '/tmp/log.l... | JavaScript | test/bunyanConfig.test.js | LSEducation/bunyan-config | mit | 5,253 | 143 | codeparrot/github-code |
7f08e9a5e8166e9fd83771828bfb74693846ee3f6aa11aea5af638a66034dbfb | #region licence
// =====================================================
// EfSchemeCompare Project - project to compare EF schema to SQL schema
// Filename: DbUpRunner.cs
// Date Created: 2016/04/06
//
// Under the MIT License (MIT)
//
// Written by Jon Smith : GitHub JonPSmith, www.thereformedprogrammer.net
// ===... | C# | DbUpHelper/DbUpRunner.cs | JonPSmith/EfSchemaCompare | mit | 1,580 | 51 | codeparrot/github-code |
9d904722b84fb0238807de6a52e813f404db5b2c6ee3c21dde07e15987a98edd | #include "PrimitiveBatch.h"
#include "onut.h"
namespace onut
{
PrimitiveBatch::PrimitiveBatch()
{
// Create a white texture for rendering "without" texture
unsigned char white[4] = {255, 255, 255, 255};
m_pTexWhite = Texture::createFromData({1, 1}, white, false);
auto pDevice =... | C++ | onut/src/PrimitiveBatch.cpp | Daivuk/ggj16 | mit | 4,307 | 131 | codeparrot/github-code |
a3767f1f49ff650a0537368d5ce3f91a70d173ab58ff1d926600e2f63ff0647b | //
// File: GameController.cpp
// Class: GameController
// Author: John Barbero Unenge
// All code is my own except where credited to others.
//
// Copyright (c) 2012 Catch22. All Rights Reserved.
//
// Date: 24/9/12
//
// License: The following code is licensed under the Catch22-License
//
#include "Ga... | C++ | src/Controller/GameController.cpp | JBarberU/CatchLib | mit | 2,744 | 85 | codeparrot/github-code |
3680f3280db5f26bf2fbbc2655a2af3ba1a41b7f0fdadab1a2eb07c95619bb32 | require 'bundler/setup'
require 'minitest/autorun'
require 'mocha/setup'
require 'omniauth/strategies/facebook'
OmniAuth.config.test_mode = true
module BlockTestHelper
def test(name, &blk)
method_name = "test_#{name.gsub(/\s+/, '_')}"
raise "Method already defined: #{method_name}" if instance_methods.includ... | Ruby | .gems/gems/omniauth-facebook-1.6.0/test/helper.rb | joelmahoney/discoverbps | mit | 1,465 | 56 | codeparrot/github-code |
fa856b568c605abd40019795bc6fd17b71c051b6e1fc036f4f475f41ba7fe727 | namespace DrinkAndRate.Web.User
{
using DrinkAndRate.Data;
using DrinkAndRate.Models;
using System;
using System.Linq;
using System.Web;
using System.Web.UI;
public partial class EventCreate : BaseUserPage
{
private IDrinkAndRateData data;
protected void P... | C# | DrinkAndRate.Web/User/EventCreate.aspx.cs | AynRandTelerik/DrinkAndRate | mit | 2,326 | 76 | codeparrot/github-code |
67af0f84518ede2ececdfee119aca0bd3d763fc485b1bf796f679338072bcb8e | using BenchmarkDotNet.Attributes;
using Obj2ObjMapBench.Models;
using System.Collections.Generic;
using System.Linq;
namespace Obj2ObjMapBench
{
public abstract class BaseBenchmark
{
const int iterations = 10000;
protected IEnumerable<SimplePoco> _simpleData;
protected IEnumerable<Nes... | C# | Obj2ObjMapBench/Benchmarks/BaseBenchmark.cs | lusocoding/dotnet-objmap-benchmark | mit | 2,684 | 72 | codeparrot/github-code |
958e7c7dcdf82f878b5af3c657564450a332af03ee3468ad51810a6747dcbd3f | <?php
namespace UserBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Symfony\Component\Security\Core\User\UserInterface;
use Doctrine\ORM\Mapping as ORM;
/**
* Class User
* @package UserBundle\Entity
* @ORM\Entity(repositoryClass="\UserBundle\Entity\Repository\UserRepository")
* @ORM\Table(name... | PHP | src/UserBundle/Entity/User.php | moroztaras/symfony_blog.dev | mit | 6,624 | 360 | codeparrot/github-code |
fc759d4c4dff775b4fe23b4f53152777cccd54ed084592f167c2af2621aed83f | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/sub_dr_template.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="... | HTML | website/death_row/dr_info/ramirezjohn.html | tommeagher/pythonGIJC15 | mit | 12,684 | 241 | codeparrot/github-code |
0b1f8d521219ee969f7b778592e69a29f71f3f71044ccd7f008745d21994462b | (function ($) {
'use strict';
// Device check for limiting resize handling.
var IS_DEVICE = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
function FullHeight(el, options) {
this.el = $(el);
var data = {};
$.each(this.el.data(), function (attr, value) {
if (... | JavaScript | src/jquery-fullheight.js | yrkup3/jquery-fullheight | mit | 2,998 | 109 | codeparrot/github-code |
15cb42c5940a38bb1a5071cdb838452bd11a02c1e8f1df858cda5b879bc3c7dc | <?php
namespace Modules\Dynamicfield\Composers;
use Illuminate\Contracts\View\View;
use Mcamara\LaravelLocalization\Facades\LaravelLocalization;
use Modules\Dynamicfield\Utility\DynamicFields;
use Request;
use Route;
class FrontendViewComposer
{
/**
* @param View $view
*/
public function compose(Vi... | PHP | Composers/FrontendViewComposer.php | stone-lab/Dynamicfield | mit | 1,619 | 55 | codeparrot/github-code |
c985d81dfbf26cebff035f38b759534ae487b367a689b0e47aac9fa78ba1e5f7 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>SELCT People</title>
<!-- ... | HTML | people.html | selct/selct.github.io | mit | 18,958 | 396 | codeparrot/github-code |
1ad20b988cf4c8a79ed3bf3a04800be292244d27909abd0f0c68999ec0eaa61d | <?php
function old_width($left, $right) {
$width = 540;
if (!$left ) {
$width = $width +190;
}
if (!$right) {
$width = $width +190;
}
return $width;
}
/**
* Return a themed breadcrumb trail.
*
* @param $breadcrumb
* An array containing the breadcrumb links.
* @return a string conta... | PHP | app/sites/nycwhisky.com/themes/old/template.php | thomasturnbull/nycwhisky-angular | mit | 628 | 33 | codeparrot/github-code |
09e7692a6fd10fd7c46a4dd52999609bf29e1d61e82e53ccfed1f9855d8ade7c | var _ = require('lodash'),
restify = require('restify'),
async = require('async');
module.exports = function(settings, server, db){
var globalLogger = require(settings.path.root('logger'));
var auth = require(settings.path.lib('auth'))(settings, db);
var api = require(settings.path.lib('api'))(se... | JavaScript | routes.js | prokilogrammer/keet | mit | 4,425 | 138 | codeparrot/github-code |
4b07e1ef7cd0731c8599ba563b6032984c3e9d468aced9d94cd58f5f0cba7a4c | using Ghost.Server.Mgrs.Map;
using PNetR;
using System;
using System.Numerics;
namespace Ghost.Server.Utilities.Abstracts
{
public abstract class CreatureObject : WorldObject
{
protected bool _dead;
protected StatsMgr _stats;
protected NetworkView _view;
protected MovementGener... | C# | Ghost.Server/Utilities/Abstracts/CreatureObject.cs | Ignis34Rus/LoE-Ghost.Server | mit | 2,902 | 106 | codeparrot/github-code |
b174c4dce9d21f634eb0a184d2302095884f401bc260aeeab68445e88bfcc679 | <!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>CMsgGCCStrike15V2ServerVarValueNotificationInfo | demofile</title>
<meta name="description" content="Documentation for demofile">
<meta name="viewport" content="width=device-width... | HTML | docs/interfaces/_protobufs_cstrike15_gcmessages_.cmsggccstrike15v2servervarvaluenotificationinfo.html | saul/demofile | mit | 10,139 | 212 | codeparrot/github-code |
bc8479bf58d8316f2584040f4e15f42a870b1fbaba693f657c8d7365d87c7182 | /*
* dpkg - main program for package management
* script.c - maintainer script routines
*
* Copyright © 1995 Ian Jackson <ian@chiark.greenend.org.uk>
* Copyright © 2007-2013 Guillem Jover <guillem@debian.org>
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU Genera... | C | dpkg-1.17.5ubuntu5.3/src/script.c | nisc-code/dpkg | mit | 10,033 | 406 | codeparrot/github-code |
121d21ae00f10043540c103f62425b760c8416ce980fb65b43db7912f29bfd1c | /*******************************************************************************
* Manchester Centre for Integrative Systems Biology
* University of Manchester
* Manchester M1 7ND
* United Kingdom
*
* Copyright (C) 2008 University of Manchester
*
* This program is released under the Academic Free License ("AF... | Java | src/main/java/org/mcisb/subliminal/metacyc/MetaCycExtracter.java | mcisb/SuBliMinaLToolbox | mit | 7,913 | 245 | codeparrot/github-code |
2317199bb3af27cb5de61945e44e24e740cda448460faf143ca17d8e17b5783d | 'use strict';
/**
* @ngdoc directive
* @name SubSnoopApp.directive:pieChart
* @description
* # pieChart
*/
angular.module('SubSnoopApp')
.directive('donutChart', ['d3Service', '$window', '$document', 'subFactory', '$filter', 'moment', 'sentiMood', 'reaction',
function (d3Service, $window, $document, subFact... | JavaScript | app/scripts/directives/donutchart.js | sharibarboza/SubSnoop | mit | 14,247 | 441 | codeparrot/github-code |
c0cff96a4737c5a29b2bc9442910bb6750adb66a4009079eeccb9b0137ba3cf1 | class UserAgentsController < ApplicationController
before_action :set_user_agent, only: [:show, :update, :destroy]
# GET /user_agents
# GET /user_agents.json
def index
@user_agents = UserAgent.all
render json: @user_agents
end
# GET /user_agents/1
# GET /user_agents/1.json
def show
render... | Ruby | app/controllers/user_agents_controller.rb | deangiberson/myWakatimeApi | mit | 1,286 | 60 | codeparrot/github-code |
5c9646c4a0bc486927f596b08acbb0ebdae9e638d277400795e6daa48bc95ee4 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>
Animacion es concentracion... y coordinacion - CESAR SAEZ
</title>
<meta name="description" content="Organizacion en peliculas de animacion">
<meta name="author" content="Cesar Saez">
<meta name="apple-mobile-web-app-capable" content... | HTML | index.html | csaez/slides_anim | mit | 29,895 | 609 | codeparrot/github-code |
2ee1a2b46634fd20a97b662c0fb780431e50f7633cfd9d24250768ff889eb1ba | <!DOCTYPE html>
<!--conf
<sample>
<product version="4.0b1" edition="std"/>
<modifications>
<modified date="130911"/>
</modifications>
</sample>
-->
<html>
<head>
<title>Attach object</title>
<meta http-equiv... | HTML | WebContent/component/dhtmlxSuite_v403_std/samples/dhtmlxWindows/08_attach_urls_and_objects/04_attach_object.html | blale-zhang/codegen | mit | 4,710 | 76 | codeparrot/github-code |
62e41d4c5f4000b1453b95a3987215c6d97e4a4f1c8ba5e0ff151502c5a162a0 | """Device tracker for Synology SRM routers."""
from __future__ import annotations
import logging
import synology_srm
import voluptuous as vol
from homeassistant.components.device_tracker import (
DOMAIN,
PLATFORM_SCHEMA as DEVICE_TRACKER_PLATFORM_SCHEMA,
DeviceScanner,
)
from homeassistant.const import (... | Python | homeassistant/components/synology_srm/device_tracker.py | rohitranjan1991/home-assistant | mit | 4,397 | 147 | codeparrot/github-code |
48b40cb8e7060f9e251fec99ec8640df1f72c973ba9c404bab8b922a2b010aea | "use strict";
const { ParserError } = require("../util/errors");
const yaml = require("js-yaml");
module.exports = {
/**
* The order that this parser will run, in relation to other parsers.
*
* @type {number}
*/
order: 200,
/**
* Whether to allow "empty" files. This includes zero-byte files, as ... | JavaScript | lib/parsers/yaml.js | BigstickCarpet/json-schema-ref-parser | mit | 1,730 | 60 | codeparrot/github-code |
21f0c1448887b9d8cee5764cd2e48aaf04ad6cce951f2d577cc43df9abe2331d | package lol4j.protocol.dto.champion;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
/**
* Created by Aaron Corley on 12/10/13.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class ChampionDto {
private boolean active;
private boolean botEnabled;
private boolean botMmEnabled;
pr... | Java | src/main/java/lol4j/protocol/dto/champion/ChampionDto.java | aaryn101/lol4j | mit | 1,387 | 65 | codeparrot/github-code |
0698204bc1a442c6bac6f13aae88900d0e9e88d51279d3c6acba7b26726a31ce | define([
'jquery',
'underscore',
'backbone',
'collections/users/students',
'collections/users/classes',
'collections/users/streams',
'text!templates/students/studentnew.html',
'text!templates/students/classes.html',
'text!templates/students/streams.html',
'jqueryui',
'bootstrap'
], function($, _, Backbone, ... | JavaScript | public/js/views/students/studentnew.js | geoffreybans/student-is | mit | 3,985 | 171 | codeparrot/github-code |
affc6fb3c046060736a5991ceee07c28eeba5cd498be43d602e4eb39993cbdc2 | <!DOCTYPE html>
<html lang='vi'>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<meta name='description' content='Quy trình này mình tìm hiểu khi mua những hàng sử dụng International Shipping, lí do nó khiến mình quan ngại là vì:
Chính sách đổi trả của Amazon thế ... | HTML | vi/docs/amazon_replacement_policy/index.html | dangkhoasdc/dangkhoasdc.github.io | mit | 17,824 | 487 | codeparrot/github-code |
2246f32c080731b98a52c27ff7088956068d220b02774ad4374586603d59ff3a | <?php
/* Smarty version 3.1.28, created on 2016-04-29 19:20:04
from "C:\xampp\htdocs\monitoring\application\views\admin\parent\list.tpl" */
if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
'has_nocache_code' => false,
'version' => '3.1.28',
'unifunc' => 'content_572397c4... | PHP | application/third_party/smarty/templates_c/323cb364cb7db1b3e0e77127bc5abfbab64cb3f3_0.file.list.tpl.php | uzumakitensho/simongarsis | mit | 5,965 | 178 | codeparrot/github-code |
fa6edb95fcda49a37053cd3933bf8bb03a9d1fee712b17c3329cc52357cf1eee | <?php
/**
* (c) Vespolina Project http://www.vespolina-project.org
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Vespolina\CommerceBundle\Process;
use Symfony\Component\DependencyInjection\ContainerAware;
/**
* @author Daniel Kucha... | PHP | Process/ProcessManager.php | vespolina/VespolinaCommerceBundle | mit | 2,761 | 101 | codeparrot/github-code |
76f6ad5107c2ca1a25c6147259679a3ed4f9aa6a8967076214449896766593f0 | /* global describe */
/* global module */
/* global beforeEach */
/* global inject */
/* global it */
/* global expect */
describe('PanZoom specs', function () {
var $scope = null;
var $compile = null;
var $interval = null;
var PanZoomService = null;
var deferred = null;
var $document = null;
... | JavaScript | test/unit/PanZoomSpec.js | cyrixmorten/angular-pan-zoom | mit | 8,427 | 235 | codeparrot/github-code |
6182dd7f83b4f1c76a2169e0cf20b5ea5fc7f21cab570d1f65a7c2dc4c799df0 | package eg.utils;
import java.io.File;
import java.awt.Toolkit;
/**
* Static system properties
*/
public class SystemParams {
/**
* True if the OS is Windows, false otherwise */
public static final boolean IS_WINDOWS;
/**
* The Java version */
public static final String JAVA_VERSION;
/**
... | Java | src/eg/utils/SystemParams.java | Eadgyth/Java-Programming-Editor | mit | 1,846 | 64 | codeparrot/github-code |
32c988a9bb432615ade8c1f87219cad6f6e15d317cdeb34e46eff3194f754d93 | // Copyright (c) DotSpatial Team. All rights reserved.
// Licensed under the MIT license. See License.txt file in the project root for full license information.
// ORIGINAL HEADER FROM C++ source which was converted to C# by Ted Dunsford 2/24/2010
/******************************************************************... | C# | Source/DotSpatial.Data/HfaType.cs | CGX-GROUP/DotSpatial | mit | 12,977 | 321 | codeparrot/github-code |
063af98b3e22d64301f5ee3f7ffdab814f4b06d0832532e94dee9d27a9bd821a | # This is a user's notification settings, really. Might have been a better name for this, in retrospect.
class Notification < ActiveRecord::Base
belongs_to :user
has_many :pending_notifications
belongs_to :reply_to_comment, :foreign_key => :reply_to_comment,
:class_name => 'NotificationFrequency'
belongs_t... | Ruby | app/models/notification.rb | DanielZhangQingLong/eol4 | mit | 4,227 | 75 | codeparrot/github-code |
95d646837e6f4bb15eae5529ce2cab9fd944bcc9b77d9a338580df546ca6cb0c | using System;
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Dynamic;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runt... | C# | XSerializer/SerializationExtensions.cs | rlyczynski/XSerializer | mit | 39,562 | 1,034 | codeparrot/github-code |
f9e44cab956c81802fd0f8f47363f8468887f10e87f08b54b7cbd543e38f7396 |
'''
utils.py: helper functions for DLP api
Copyright (c) 2017 Vanessa Sochat
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, ... | Python | som/api/google/dlp/utils.py | radinformatics/som-tools | mit | 1,944 | 59 | codeparrot/github-code |
65d5c7f9d4d9b36610d41fa8ef8df5fd0d52b5166893012ade720de4deab9ee8 | import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.util.Arrays;
import java.util.logging.Level;
import java.util.log... | Java | fw_update/ST_decrypt.java | UCT-White-Lab/provisioning-jig | mit | 22,664 | 568 | codeparrot/github-code |
39697663ed8f0beb2d2853a10c7b5b04ddd651f33d14bf9a063fecd7fa4392a5 | #include <malloc.h>
#include <stdio.h>
#include <string.h>
#include <3ds.h>
#include "action.h"
#include "../task/task.h"
#include "../../error.h"
#include "../../info.h"
#include "../../list.h"
#include "../../prompt.h"
#include "../../ui.h"
#include "../../../core/linkedlist.h"
#include "../../../core/screen.h"
#in... | C | source/ui/section/action/erasetwlsave.c | leo60228/CTRM | mit | 6,274 | 186 | codeparrot/github-code |
58a72cf89682312f875a4c8b539e7e409f1f787166a69c4b669e284d4df5c19e | <?php
namespace Kendo\Dataviz\UI;
class DiagramShapeDefaultsConnectorDefaultsHoverStroke extends \Kendo\SerializableObject {
//>> Properties
/**
* Defines the hover stroke color.
* @param string $value
* @return \Kendo\Dataviz\UI\DiagramShapeDefaultsConnectorDefaultsHoverStroke
*/
public func... | PHP | wrappers/php/lib/Kendo/Dataviz/UI/DiagramShapeDefaultsConnectorDefaultsHoverStroke.php | deviffy/laravel-kendo-ui | mit | 982 | 39 | codeparrot/github-code |
8af72f2cc350b8443320550b6b1fa73b63d46ca9839e818db54549ca4271839b | using Raccoon.Graphics;
namespace Raccoon.Fonts {
public class TextShaderParameters : IShaderParameters, IFontSizeShaderParameter {
#region Private Members
private float? _fontSize;
#endregion Private Members
#region Constructors
public TextShaderParameters(Font font) {
... | C# | Raccoon/Graphics/Fonts/Shaders/TextShaderParameters.cs | lucas-miranda/Raccoon | mit | 4,637 | 124 | codeparrot/github-code |
762716295fdff26dd7207e8b13743c8eff55f8d98882c786d66761be74727bc1 | package lexek.wschat.db.dao;
import lexek.wschat.chat.e.EntityNotFoundException;
import lexek.wschat.chat.e.InvalidInputException;
import lexek.wschat.db.model.DataPage;
import lexek.wschat.db.model.UserData;
import lexek.wschat.db.model.UserDto;
import lexek.wschat.db.model.form.UserChangeSet;
import lexek.wschat.uti... | Java | src/main/java/lexek/wschat/db/dao/UserDao.java | lexek/chat | mit | 8,668 | 256 | codeparrot/github-code |
2e7012a28dfcdbda3a884c8856e81e2b7bc669c85d8f03552e441c8ffa5bc7f4 | package iso20022
// Amount of money debited or credited on the books of an account servicer.
type AmountAndDirection55 struct {
// Amount of money in the cash entry.
Amount *RestrictedFINActiveOrHistoricCurrencyAndAmount `xml:"Amt"`
// Indicates whether an entry is a credit or a debit.
CreditDebitIndicator *Cred... | GO | AmountAndDirection55.go | fgrid/iso20022 | mit | 1,392 | 35 | codeparrot/github-code |
fbd96ff50303025739b4185023fbb38b8fe0385959147235462a0fde91a7a2a3 | /*
* Copyright 2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Java | gradle/src/model-core/org/gradle/model/internal/core/NodeBackedModelSet.java | HenryHarper/Acquire-Reboot | mit | 6,263 | 197 | codeparrot/github-code |
e2dd630d3b625c2446965bb640e4318cf0c8f40bd6c537392027ab18c0196bce | /// <reference types="@types/google-maps" />
import { AfterViewInit, ChangeDetectionStrategy, Component, ElementRef, Injector, Input, OnInit, ViewChild } from '@angular/core';
import { AddressView } from 'app/api/models';
import { Breakpoint } from 'app/core/layout.service';
import { BaseComponent } from 'app/shared/b... | TypeScript | src/app/ui/shared/profile-addresses.component.ts | cyclosproject/cyclos4-ui | mit | 3,215 | 100 | codeparrot/github-code |
7c61f24c10043c120eac1e8810b1aeed2ae7c0e2cd021347d840c860a3e6942b | /**
* @file HGEventCollisionScripter.cpp
* @brief EventCollision script adapter implementation
*
* @author Master.G (MG), mg@snsteam.com
*
* @internal
* Created: 2013/02/21
* Company: SNSTEAM.inc
* (C) Copyright 2013 SNSTEAM.inc All rights reserved.
*
* This file is a part of Hourglass Engine... | C++ | Hourglass/original/HGScript/HGEventScripter/HGEventCollisionScripter.cpp | master-g/hourglass | mit | 2,308 | 91 | codeparrot/github-code |
f510fb131b05c3d1ba0ccbe5e4ddd95e293bd749328ce9d0196d58680eb955bc | #include "plugins.h"
#include "btlog.h"
#include <dlfcn.h>
#include <stdlib.h>
#include <string.h>
const struct object_vtable plugin_vtable = {
(void (*) (void *)) plugin_delete,
(void * (*) (const void *)) plugin_copy,
NULL
};
struct plugin * plugin_create (const char * filename) {
void * handle ... | C | src/plugins/plugins.c | endeav0r/bt | mit | 2,755 | 109 | codeparrot/github-code |
a0b33487052fd7361a5e9a5a523d87290a1839c12db36951033acdcb7258698a | using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
using System.Linq;
namespace MonogameDraw
{
public enum LINECAP
{
NONE,
SQUARE,
CIRCLE
};
public class Renderer
{
private GraphicsDevice gd;
private BasicEffect effect;
private Matr... | C# | MonogameDraw/Renderer.cs | battesonb/MonogameDraw | mit | 11,382 | 305 | codeparrot/github-code |
a3a7773e0642ec9ca2fbe195cada7e2fe0b96075fa84bdc78c6f9f97f0540b49 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PathConverter
{
class Converter
{
public static string[] Convert(string input)
{
var results = new string[4];
if (String.IsNullOrEm... | C# | PathConverter/Converter.cs | yanxyz/Backslash2Slash | mit | 2,122 | 72 | codeparrot/github-code |
fb6e308b2ad61dbd7a4d6b06844ddfb0f081a4b1cd9229c45d7504b805a29fc8 | package mekanism.common.transmitters;
import mekanism.api.transmitters.DynamicNetwork;
import mekanism.api.transmitters.IGridTransmitter;
public abstract class Transmitter<A, N extends DynamicNetwork<A, N>> implements IGridTransmitter<A, N>
{
public N theNetwork = null;
public boolean orphaned = true;
@Override
... | Java | minecraftpkg/MekanismModSample/src/main/java/mekanism/common/transmitters/Transmitter.java | Microsoft/vsminecraft | mit | 1,976 | 95 | codeparrot/github-code |
6760da531cc4afd2ad51d86ff097485a6165634a44c9ae3e762b21bde7e54db4 | #include "main.hpp"
TargetSelector::TargetSelector(SelectorType type, float range)
: type(type), range(range) {
}
void TargetSelector::selectTargets(Actor *wearer, TCODList<Actor *> & list) {
switch(type) {
case CLOSEST_MONSTER :
{
Actor *closestMonster=engine.getClosestMonster(wearer->x,wearer->y,range);
... | C++ | rlTut/Pickable.cpp | vrum/rlTut | mit | 3,659 | 146 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.