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 |
|---|---|---|---|---|---|---|---|---|
9a35d4955ee7cdc1046d981287c2e7d1ed19c88e4bfd7af9f21f52a8091c3cad | /**
Core script to handle the entire layout and base functions
**/
var App = function() {
"use strict";
// IE mode
var isIE8 = false;
var isIE9 = false;
var isIE10 = false;
var responsiveHandlers = [];
var layoutColorCodes = {
'blue': '#54728c',
'red': '#e25856',
'green': '#94B86E',
... | JavaScript | assets/js/app.js | unclesky4/learneaseSurface | mit | 21,213 | 730 | codeparrot/github-code |
b901ecf3732ac5da72acdc97a5525581df7dbd9ce3d2c8adf34ee6546bb938a2 | /* workspace Javascript jQuery */
$(function() {
$('#side-menu').sidebar();
});
//Loads the correct sidebar on window load,
//collapses the sidebar on window resize.
// Sets the min-height of #page-wrapper to window size
$(function() {
$(window).bind("load resize", function() {
topOffset = 50;
... | JavaScript | src/framework/layouts/workspace/workspace.js | staticmatrix/Triangle | mit | 1,215 | 39 | codeparrot/github-code |
0f11cc3ea5899b5642be6987370eaf1a0cfdd70a1814fd99a09db25056645600 | import logging
from django.utils.translation import ugettext_lazy as _
from django.conf import settings
from django.core.cache import cache
from django.core.exceptions import ObjectDoesNotExist, MultipleObjectsReturned
from django.http import Http404
from readthedocs.projects.models import Project, Domain
log = logg... | Python | readthedocs/core/middleware.py | SteveViss/readthedocs.org | mit | 6,904 | 164 | codeparrot/github-code |
8ce9156485a4dce366e9fb0998c3ae777b747db188b0d90319a3fa66a43b45df | package FacebookPrep;
public class _0680ValidPalindromeII {
public static void main(String[] args) {
System.out.println(validPalindrome("aba"));
System.out.println(validPalindrome("abcd"));
System.out.println(validPalindrome("abca"));
}
public static boolean validPalindrome(String s) {
if (s == null || s.... | Java | src/FacebookPrep/_0680ValidPalindromeII.java | darshanhs90/Java-InterviewPrep | mit | 800 | 38 | codeparrot/github-code |
d5166b8dd70214ba070f590f6d1ef3e48650ba4cfaa6d2192a8ac5216782f11b | #!/usr/bin/python
# Generate .js files defining Blockly core and language messages.
#
# Copyright 2013 Google Inc.
# https://developers.google.com/blockly/
#
# 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 t... | Python | static/javascript/blockly/i18n/create_messages.py | NTUTVisualScript/Visual_Script | mit | 6,374 | 167 | codeparrot/github-code |
f2c54c9e58c542502000cef1ef90575aec7bb09671740860ddc74c81a78a2687 | /* GTK - The GIMP Toolkit
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the Lice... | C | src/gtk/include/linux/gtk-3.0/gtk/gtkimage.h | neohung/smallgame | mit | 7,722 | 204 | codeparrot/github-code |
980be0c25bc56e0fc296684d76c6857b6b0fc8b6f404bc4adfc05a5cf64e321c | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
/// <reference path="./definitions/async.d.ts"/>
import cm = require('./common');
import ctxm = require('./context');
import agentifm = require('vso-node-api/interfaces... | TypeScript | src/agent/taskmanager.ts | dragongame/vso-agent | mit | 5,331 | 144 | codeparrot/github-code |
2f64530b82c4457b162cab73979f4683b550cd7e26a0f214749237b665c3a697 | #include "string.h"
#include "math.h"
#include "helper.h"
float map(float value, float iupper, float ilower, float oupper, float olower){
return olower + ((oupper - olower) / (iupper - ilower)) * (value - ilower);
}
void LinkPot(struct parameter_t *p, float value){
p->value = map(value, 0, 255, p->lowerBound, ... | C | src/helper.c | BeyondCloud/uRock | mit | 2,557 | 126 | codeparrot/github-code |
1c844dd926399ba6d0d67f9309cdc152ca6b4c9e50b78fa27a79db298315cde4 | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using NUnit.Framework;
using osu.Framework.Extensions.TypeExtensi... | C# | osu.Framework/Testing/TestCase.cs | Nabile-Rahmani/osu-framework | mit | 10,367 | 328 | codeparrot/github-code |
cf5b4784d36f0940a00bdf5dd1e476a1d60b4490624821f4ba378ac19511eefd | <?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>List Element</title>
<meta http-equiv="Content-Type" content="text/ht... | HTML | doc/html/elements/list.html | stuart-thackray/nitrogen_core | mit | 7,013 | 219 | codeparrot/github-code |
76d9b6d7bc26c80f7730217a53fdddbfbb732ca860ee66b9aab1ae77cb567536 | <?php
namespace NSI\Web;
use NSI\CallbackReceiver;
class CallbackController
{
private $listener;
public function __construct(CallbackReceiver $listener)
{
if ($listener == null) {
throw new \Exception('Callback receiver listener must be informed');
}
$this->listener =... | PHP | src/Web/CallbackController.php | BrunoSoares-LABORA/php-nsi | mit | 2,461 | 104 | codeparrot/github-code |
4d0723b00c8799e3dd6233f114e136ca78df77d962c49599387380fc24fba826 | #include "stdafx.h"
#include "UIFriends.hpp"
namespace DuiLib
{
const int kFriendListItemNormalHeight = 32;
const int kFriendListItemSelectedHeight = 50;
CFriendsUI::CFriendsUI(CPaintManagerUI& paint_manager)
: root_node_(NULL)
, delay_deltaY_(0)
, delay_number_(0)
, delay_left_(0)
, level_expand_image_(_T("<i... | C++ | duilib/QQDemo/UIFriends.cpp | Gones/duilib | mit | 11,968 | 475 | codeparrot/github-code |
301475e126baa66defe33da92dbc3d6893b6c1e19ee61472a3c789016c1f5316 |
/**
* Configure array properties
* @private
* @this {XML3DVec3}
* @param {number} index Array index
*/
function prop(index) {
return {
get : function() {
return this._data[index];
},
set : function(val) {
this._data[index] = val;
// Value changed
... | JavaScript | src/types/vec3.js | CCLDESTY/xml3d.js | mit | 7,269 | 228 | codeparrot/github-code |
fea84eae5b3d520518169c9f5cf2ccd99a92953124dcf17654bf2dea0a463b3d | ## Automatically adapted for numpy.oldnumeric May 17, 2011 by -c
# Natural Language Toolkit: Classifiers
#
# Copyright (C) 2001 University of Pennsylvania
# Author: Edward Loper <edloper@gradient.cis.upenn.edu>
# URL: <http://nltk.sf.net>
# For license information, see LICENSE.TXT
#
# $Id: __init__.py,v 1.2 2003/10/27... | Python | neural-navigation-with-lstm/MARCO/nltk_contrib/unimelb/tacohn/classifier/__init__.py | ronaldahmed/robot-navigation | mit | 21,922 | 613 | codeparrot/github-code |
5e02ff4ca9d18e643458f369b0a4c4e46e88ce42c7699d58a5d2974df4b7567d | using System;
using System.Management.Automation;
namespace PSSQT
{
[Cmdlet(VerbsCommon.Format, "SPResults")]
public class FormatResultsCmdlet :
PSCmdlet
{
//private bool doHighlight;
private Helpers.ConsoleFormatter formatter;
#region ScriptParameters
[Paramet... | C# | Solutions/SharePoint.Search.QueryTool/PSSQT/FormatResultsCmdlet.cs | OfficeDev/PnP-Tools | mit | 2,615 | 92 | codeparrot/github-code |
4eee0e718389c4b26c9d66c5ae7d241ef474a2406539384d964ae9417a79afd5 | package sql
func (*Set) IStatement() {}
type Set struct {
VarList Vars
}
type Vars []*Variable
type Variable struct {
Type VarType
Life LifeType
Name string
Value IExpr
}
type VarType int
type LifeType int
const (
Type_Sys = 1
Type_Usr = 2
Life_Unknown = 0
Life_Global = 1
Life_Local = 2
Life_Ses... | GO | sql/ast_dal.go | wangjild/go-mysql-proxy | mit | 4,530 | 251 | codeparrot/github-code |
e264e62db82ffbd0d17d41e570572ab8e71850bb668486e8f1dadc828792891e | /*
* jquant1.c
*
* Copyright (C) 1991-1996, Thomas G. Lane.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
* This file contains 1-pass color quantization (color mapping) routines.
* These routines provide mapping to a f... | C | blinky/blinky/asf-3.21.0/thirdparty/ijg/jquant1.c | femtoio/femto-usb-blink-example | mit | 31,393 | 860 | codeparrot/github-code |
b516fa91e3a8e21f19d0dd5e11534599fb70f8218e066da3d0907a92e3210d4d | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width" />
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.ico" />
<title>Cam... | HTML | reference/android/hardware/Camera.FaceDetectionListener.html | terrytowne/android-developer-cn | mit | 49,153 | 1,184 | codeparrot/github-code |
cc6446769a25123911a5136c297a0bd37d9280c92e473eb04f780aa5bc5d8c5c | const fetch = require('node-fetch')
const co = require('co')
const xpath = require('xpath')
const dom = require('xmldom').DOMParser
const connect = require('./connectDB')
const error = console.error
const log = console.info
let url = "http://ymj.qcpai.com/wwtstudentcard/Web/public/appupload/"
co(function* (... | JavaScript | src/getCollegeCode/getCode.js | MartyJiang/Little-Scripts | mit | 1,028 | 38 | codeparrot/github-code |
0e3e78ee6f4bd4d6f61b17f42781542da2960bd00ce47ef65c75733d52091c73 | =begin
Jekyll tag to include Markdown text from _includes directory preprocessing with Liquid.
Usage:
{% markdown <filename> %}
=end
module Jekyll
class MarkdownTag < Liquid::Tag
def initialize(tag_name, text, tokens)
super
@includes_dir = "_copy"
@text = text.strip
end
def rend... | Ruby | _plugins/markdown-tag.rb | DoulaAlisa/doulaalisa.github.io | mit | 1,360 | 41 | codeparrot/github-code |
6da5dc84b8e359b85d969b25122158bf5a2392e2f3c7e6b5602791914af9d7a5 |
var Generator = {}
Generator["RSA-OAEP"] = require("./algorithms/RSA-OAEP.js").generateKey;
Generator["RSASSA-PKCS1-v1_5"] = require("./algorithms/RSASSA-PKCS1-v1_5.js").generateKey;
Generator["ECDH"] = require("./algorithms/ECDH").generateKey;
var Algorithms = require("./algorithms/index.js");
var CryptoKey = require... | JavaScript | src/node/generateKey.js | secomba/subtle | mit | 2,608 | 74 | codeparrot/github-code |
cdd7f137b0d9d54fc7951883d5b0dcb61210390e789dabc297122e2f490ecfb9 | // Simple module to help you remember the size and position of windows.
// Can be used for more than one window, just construct many
// instances of it and give each different name.
'use strict';
var app = require('app');
var jetpack = require('fs-jetpack');
module.exports = function (name, defaults) {
var userDa... | JavaScript | mean-app/libs/electron/windowState.js | swara-app/swara-server | mit | 1,246 | 52 | codeparrot/github-code |
c851cce588ff22b5a340f720c7baa726cec182c675976c6202e61993b7849602 | """A Python module for interacting with Slack's RTM API."""
import inspect
import json
import logging
import time
from concurrent.futures.thread import ThreadPoolExecutor
from logging import Logger
from queue import Queue, Empty
from ssl import SSLContext
from threading import Lock, Event
from typing import Optional, C... | Python | slack_sdk/rtm_v2/__init__.py | slackhq/python-slackclient | mit | 16,519 | 419 | codeparrot/github-code |
685a6d92a609f5e4caaf877fba0fb4517d05cf9990a73673adb1dd8a76722fcd | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEngine;
public class MicrogameCreatorWindow : EditorWindow
{
Vector2 scrollPos;
string microgameId = "";
int selectedType = 0;
MicrogameCreator creator;
[MenuItem("Window/Nit... | C# | Assets/Editor/Windows/MicrogameCreatorWindow.cs | NitorInc/NitoriWare | mit | 2,266 | 67 | codeparrot/github-code |
8b8f58fe7125e67af422e852c956e33674d9efd4205ba2f5da537219fea9c19e | ##########################################################################
# Copyright (c) 2009, 2016, ETH Zurich.
# All rights reserved.
#
# This file is distributed under the terms in the attached LICENSE file.
# If you do not find this file, copies can be found by writing to:
# ETH Zurich D-INFK, Universitaetstr 6, ... | Python | tools/harness/machines/eth_machinedata.py | kishoredbn/barrelfish | mit | 22,961 | 555 | codeparrot/github-code |
dec084d5ab7ad313f9ee7a9ffca8c8dea8e532afde23a36918e2f652aa1ca370 | 'use strict';
(function () {
'use strict';
var log;
if (typeof module !== 'undefined' && module.exports) {
var util = require('util'); //debug
log = function (obj) {
// console.info(util.inspect(obj, false, null));
};
} else {
log = function (obj) {
// console.info(obj);
... | JavaScript | demo/react-physics/timeengine.js | sakurafunctional/sakurafunctional.github.io | mit | 6,185 | 274 | codeparrot/github-code |
28e8d5d9a640dfa9a6fd7937d21db9ff47c45b2e0be33c154c855fe1e643fb9f | import json
from zipfile import ZipFile
import uuid
import activity
import re
import os
from os.path import isfile, join
from os import listdir, makedirs
from os import path
import datetime
from S3utility.s3_notification_info import S3NotificationInfo
from provider.execution_context import Session
import requests
from... | Python | activity/activity_VersionDateLookup.py | gnott/elife-bot | mit | 3,787 | 84 | codeparrot/github-code |
2edd396946b6e9a28b4d0c0d470961239700c7ef9d817c37b5c820103b148149 | //
// AdHubView.h
// SADAdHub
//
// Created by gpmobile on 12. 11. 30..
// Copyright (c) 2012년 dsjang. All rights reserved.
//
#import "SADBannerView.h"
#import "AdHubUserProfile.h"
@class AdHubParameter;
@interface AdHubView : SADBannerView {
AdHubParameter *param;
id delegate;
UIViewController *r... | C | vendors/samsungadhub/ios/include/AdHubView.h | hovergames/avalon | mit | 1,332 | 85 | codeparrot/github-code |
a4d880ffa8e013889811d1daa06d66f220be2ce291a73e44fd59d7a758d7097f | #region Copyright
//
// DotNetNuke® - http://www.dotnetnuke.com
// Copyright (c) 2002-2017
// by DotNetNuke Corporation
//
// 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 restric... | C# | DNN Platform/Modules/MemberDirectory/Settings.ascx.cs | SCullman/Dnn.Platform | mit | 12,911 | 316 | codeparrot/github-code |
6e97da70fe71876060dde78d886997c09b296c09b7e20c6386413dea0aac93c8 | // cstring.h
// CString library.
//
// Copyright 2010 LibWebserver Authors. All rights reserved.
#ifndef CSTRING_CSTRING_H__
#define CSTRING_CSTRING_H__
#include <base/exception.h>
#include <cstdlib>
#include <string>
#include "str.h"
#include "conversions.h"
namespace base {
class CString {
public:
CStri... | C | lib/cstring/cstring.h | sashka/libwebserver | mit | 4,976 | 203 | codeparrot/github-code |
9b2da7a32d7fa01bf4f2bc960246874d51bc6525369d5e606c3db9cac3364979 | // # Ghost Configuration
// Setup your Ghost install for various environments
// Documentation can be found at http://support.ghost.org/config/
var path = require('path'),
config;
config = {
// ### Production
// When running Ghost in the wild, use the production environment
// Configure your URL and m... | JavaScript | config.js | alex-ghost/alex2006hw-ghost.github.io | mit | 3,783 | 135 | codeparrot/github-code |
7006ca7257401b7346c4d49954530eb525ee2a10f982b42e3416d9bd7fe2562c | <div class="content-section">
<div>
<span class="feature-title">InputSwitch</span>
<span>InputSwitch is used to select a boolean value.</span>
</div>
</div>
<div class="content-section implementation">
<h3 class="first">Basic - {{checked1}}</h3>
<p-inputSwitch [(ngModel)]="checked1"></p... | HTML | showcase/demo/inputswitch/inputswitch.html | rohitsindhu90/Primeng-custom-4.0.0.0-rc3 | mit | 6,840 | 215 | codeparrot/github-code |
d86072ea755603ccdbd66a91c99fc50908a7ef751ae4107beffeb3d2c96d42fb | <?php
class Database extends MY_Model {
protected $_component = 'staticpage';
protected $_table_staticpage = 'staticpage';
protected $_table_content = 'staticpage_content';
protected $_table = 'staticpage';
protected $_table_id = 'staticpage_id';
protected $_table_content_id = 'staticpage_conten... | PHP | application/models/component/staticpage/Database.php | tav2/artlife | mit | 5,905 | 191 | codeparrot/github-code |
dbc6978e7cbb3c326d8071dba84cc975437cde253758cce277d10f6827c9d9c9 | from flask_settings import GEOTIFF_FULL_PATH
import sys
import traceback
sys.path.append('../')
import numpy as np
import json
from datetime import timedelta
from functools import update_wrapper
from pextant.EnvironmentalModel import GDALMesh
from pextant.explorers import Astronaut
from pextant.analysis.loadWaypoints... | Python | pextant/sextant.py | kezilu/pextant | mit | 6,172 | 162 | codeparrot/github-code |
7d69188fd62b325ed060020ed7fe073cdd58a5dbbc6165dea2cbb80a058b570c | const ConstraintValidator = Jymfony.Component.Validator.ConstraintValidator;
const Unique = Jymfony.Component.Validator.Constraints.Unique;
const UnexpectedTypeException = Jymfony.Component.Validator.Exception.UnexpectedTypeException;
const UnexpectedValueException = Jymfony.Component.Validator.Exception.UnexpectedValu... | JavaScript | src/Component/Validator/src/Constraints/UniqueValidator.js | alekitto/jymfony | mit | 1,738 | 55 | codeparrot/github-code |
1e711340a45d2611ba549f8a27eeb75a960ab016164c00efea8d5f07ff9e3db5 | import abc
class Container(abc.ABC):
"""
A container for exposed methods and/or event handlers
for a better modularization of the application.
Example usage
::
# in users.py
class UsersModule(gemstone.Container):
@gemstone.exposed_method("users.register")
... | Python | gemstone/core/container.py | vladcalin/gemstone | mit | 1,639 | 65 | codeparrot/github-code |
b12c43fbbb3bebae665668952e3c9b8a495796a7982aa593e909504ddb6239a7 | <?php
include_once(dirname(__FILE__)."/xmlrpc.inc");
class XmlRpcCommon
{
protected $rpc_server;
protected $rpc_endpoint;
protected $rpc_method;
protected $rpc_error;
function init( $s, $e, $m )
{
$this->rpc_server = $s;
$this->rpc_endpoint = $e;
$this->rpc_method = $m;
$GLOBALS['xmlrpc_internalencodin... | PHP | src/sms.gabia.com_api_php/lib/gabia_xmlrpccommon.php | eagukim/texting-gabia | mit | 914 | 55 | codeparrot/github-code |
0858906fe30b68dcd1a785d203e7968aeac9796b62d737cbbf73dfe648dd5625 | /* Copyright Joyent, Inc. and other Node contributors. All rights reserved.
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights ... | C | src/node/deps/uv/src/unix/fsevents.c | x684867/nemesis | mit | 24,896 | 821 | codeparrot/github-code |
1f9bf4ef627285bc0d573d1c11841e6c0c4aee08175b393e4a061b3f120777c1 |
package tenttiarkisto.domain;
import javax.persistence.Column;
import javax.persistence.Entity;
import org.springframework.data.jpa.domain.AbstractPersistable;
import org.springframework.security.crypto.bcrypt.BCrypt;
@Entity
public class Person extends AbstractPersistable<Long> {
private String name;
@Co... | Java | src/main/java/tenttiarkisto/domain/Person.java | corvidian/tenttiarkisto | mit | 1,086 | 56 | codeparrot/github-code |
13848ae017960025b03976f27acf345077f8ddf9f158df4a8db5124005ea67b0 | <html lang="en">
<head>
<title>Elimination - GNU Compiler Collection (GCC) Internals</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="GNU Compiler Collection (GCC) Internals">
<meta name="generator" content="makeinfo 4.11">
<link title="Top" rel="start" href="index.html#Top... | HTML | gcc-arm-none-eabi/share/doc/gcc-arm-none-eabi/html/gccint/Elimination.html | trfiladelfo/tdk | mit | 7,483 | 150 | codeparrot/github-code |
a8ec87ca0000ef7c2320808a1d7420e8d261c6a9f5bf67b01dfd185772e633b4 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Java | src/org/apache/commons/math3/optim/nonlinear/scalar/noderiv/CMAESOptimizer.java | najibghadri/NeuralNetworkSimulator | mit | 52,245 | 1,355 | codeparrot/github-code |
563f9bf91d2071787bb350667dcb2deb74fbc817eadaf6fb0d97f3e668ea66c2 | <?php
/**
* @package fastbill
*
* @author Daniel Holzmann <d@velopment.at>
* @date 23.09.13
* @time 21:49
*/
namespace DVelopment\FastBill\Model\Request;
use DVelopment\FastBill\Model\Customer;
use JMS\Serializer\Annotation as JMS;
/**
* @JMS\XmlRoot("FBAPI")
*/
class CustomerRequest extends Request
{
... | PHP | lib/DVelopment/FastBill/Model/Request/CustomerRequest.php | bolzfabrik/fastbill | mit | 1,117 | 60 | codeparrot/github-code |
9577168da02b45b9bc6f2703ec4d77ea476c20056a640c649fcae3e08d73a2a5 | /*
* Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Nicira, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*... | C | ovs/lib/netlink.c | kspviswa/dpi-enabled-ovs | mit | 26,312 | 815 | codeparrot/github-code |
1ec117e8db3a1313c3e39f96e03fb74eee532c66c05f4b6800181552ed5a0ea5 | /*
* CRYO APC audio format demuxer
* Copyright (c) 2007 Anssi Hannula <anssi.hannula@gmail.com>
*
* This file is part of Libav.
*
* Libav is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
... | C | src/libav/libavformat/apc.c | fillest/rtmp_load | mit | 2,624 | 90 | codeparrot/github-code |
c63faaab69dc8729b7396e0663649ab6c80bf1d4507008829072f761d40e6ee5 | // Args
exports.required = ['row'];
// Define
var regex = [
/rank from (.+) to (.+)\.$/,
/deleted post "(.+)" by user .+\.$/,
/changed the group status to: (.*)$/
];
exports.func = function (args) {
var row = args.row;
var text = row.text();
var params = [];
for (var i = 0; i < regex.length; i++) {
... | JavaScript | lib/util/getAction.js | FroastJ/roblox-js | mit | 725 | 34 | codeparrot/github-code |
b441cf08c91a077fae7a5aeea2a3a7740ef1706110ab5bebd4a91462b09d2007 | jQuery(function($) {
/**
$('#myTab a[data-toggle="tab"]').on('shown', function (e) {
console.log(e.target.getAttribute("href"));
})
*/
$('#accordion2').on('hide', function (e) {
$(e.target).prev().children(0).addClass('collapsed');
})
$('#accordion2').on('hidden', function (e) {
$(e.target).prev().child... | JavaScript | web/backend/mustache/app/views/assets/scripts/elements.js | nlkhagva/educenter.mn | mit | 6,810 | 240 | codeparrot/github-code |
36179d22c917dcf7b869452ce3c2e41760af2f21904c3f4f03879076a00b3360 | package com.njyb.gbdbase.service.common.engine.util;
import java.io.File;
import java.util.List;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.es.SpanishAnalyzer;
import org.apache.lucene.analysis.pt.PortugueseAnalyzer;
import org.apache.lucene.analysis.ru.RussianAnalyzer;
import org.ap... | Java | src/main/java/com/njyb/gbdbase/service/common/engine/util/CountryAnaylazerUtil.java | Willie1234/Inforvellor-master | mit | 6,246 | 193 | codeparrot/github-code |
72801dcd09da32a2fc8df3cbca7281a9d28a88e83a4d90ab28da88ce03fba408 | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | src/vs/platform/extensions/common/ipcRemoteCom.ts | charlespierce/vscode | mit | 6,605 | 284 | codeparrot/github-code |
95cba2d2a36c70b359d6f5adf01bbc4683d5da5104be094e7d7f84968f5615aa | import { StackNavigator } from 'react-navigation';
import { Colors } from '../../../Themes';
// Screens
import TabFourScreenOne from './views/TabFourScreenOne';
import TabFourScreenTwo from './views/TabFourScreenTwo';
const routeConfiguration = {
TabFourScreenOne: { screen: TabFourScreenOne },
TabFourScreenTwo: { ... | JavaScript | src/Navigation/Tabs/tabFour/navigationConfiguration.js | Ezeebube5/Nairasense | mit | 964 | 31 | codeparrot/github-code |
096e007fb4469af0b9e68efe7b745a20a604db505c21dccf8eaa85b317678102 | require "gemstash"
module Gemstash
# Class that supports unyanking a gem from the private repository of gems.
class GemUnyanker
include Gemstash::Env::Helper
# This error is thrown when unyanking a non-existing gem name.
class UnknownGemError < StandardError
end
# This error is thrown when un... | Ruby | lib/gemstash/gem_unyanker.rb | pcarranza/gemstash | mit | 1,651 | 62 | codeparrot/github-code |
d9e1e004b41349ba0b6cb65120cfa58e37ca4e9686a150d5badeb7b521a9bbba | package com.thebluealliance.androidclient.helpers;
import com.thebluealliance.androidclient.datafeed.framework.ModelMaker;
import com.thebluealliance.androidclient.models.Event;
import com.thebluealliance.androidclient.types.EventType;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.Rob... | Java | android/src/test/java/com/thebluealliance/androidclient/helpers/EventHelperTest.java | 1fish2/the-blue-alliance-android | mit | 27,968 | 374 | codeparrot/github-code |
02c9fdd5a12d6be9a95534acd90853b4b5b15060d28665669de401f1fc6af4bf | package org.heigit.ors.fastisochrones;
import com.carrotsearch.hppc.cursors.IntObjectCursor;
import com.graphhopper.routing.util.CarFlagEncoder;
import com.graphhopper.routing.util.EncodingManager;
import com.graphhopper.routing.weighting.ShortestWeighting;
import com.graphhopper.routing.weighting.Weighting;
import co... | Java | openrouteservice/src/test/java/org/heigit/ors/fastisochrones/ActiveCellDijkstraTest.java | GIScience/openrouteservice-core | mit | 4,106 | 88 | codeparrot/github-code |
9a14f25f88db3bc8df4df2640567d531887345349b3c302cb5561063e6b34465 | public class JudgeRouteCircle {
public static void main(String[] args) {
System.out.println(judgeCircle("LL"));
}
public static boolean judgeCircle(String moves) {
int X = 0;
int Y = 0;
for(int i = 0; i < moves.length(); i++) {
char c = moves.charAt(i); ... | Java | JudgeRouteCircle.java | astdb/TB_ShortProbs | mit | 707 | 37 | codeparrot/github-code |
ce1a8dd3dfc3737ea8849fb668ab40e0f9b4427bebad403ba4950cc1957c036f | ;(function(undefined) {
/**
* artoo writers unit tests
* =========================
*
*/
describe('artoo.writers', function() {
describe('csv', function() {
var arrays = {
correct: [['Michel', 'Chenu'], ['Marion', 'La brousse']],
delimiter: [['Michel', 'Chenu, the Lord'], ['Ma... | JavaScript | test/suites/writers.test.js | medialab/artoo | mit | 4,304 | 153 | codeparrot/github-code |
88ba82693709db9d3910b95639d7f4bfe95ca8b911c3fd4366ac0fac8748697f | /*
severely hacked to get around problem building in VS2005
http://www.mail-archive.com/pgsql-general@postgresql.org/msg116145.html
remove w64 compatibility compilation option
and change
static const Pg_magic_struct
to
static Pg_magic_struct
*/
/*
* PostgreSQL example C functions.
*
* This file must be ... | C | exodus/libpgexodus/src/pgexodus.c | rdmenezes/exodusdb | mit | 25,811 | 878 | codeparrot/github-code |
e1ca2df0282c67a020df2d286c089c5471121944f3431dc242a86c920ddc145b | <?php
class Validator {
private $_data;
private $_parameters;
private $_messageError;
private $_pattern = array (
'esNumerico' =>'/^[0-9\.,]*$/',
'esAlfa' => '/^[a-zA-Z áéíóúñÑÁÉÍÓÚ,\.¿¡!\?]*$/',
'esAlfaNumerico' => '/^[a-zA-Z0-9 áéíóúñÑÁÉÍÓÚ,\.¿¡!\?:{}()-=]*$/',
'... | PHP | Code/snippets/libs/Validator.php | alfabrad/Giovanni-Bojanini-New | mit | 2,283 | 78 | codeparrot/github-code |
75d3c7e301e8a6b6897d6837b0ea47f4a8719bc306bd4278a09d6cd633a396e0 | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 The Voxel Plugineering Team
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the ri... | Java | src/main/java/com/voxelplugineering/voxelsniper/sponge/world/SpongeChunk.java | bensku/VoxelSniper | mit | 5,421 | 147 | codeparrot/github-code |
b4dd104504aeb6ca45d43dbe89b912303cedd2e8e2b8aa3ef9958f4fbd9fb8dc | /* *********************************************************************************************
* This file is part of the Oracle Service Cloud Accelerator Reference Integration set published
* by Oracle Service Cloud under the Universal Permissive License (UPL), Version 1.0
* included in the original distributi... | Java | servicecloud/mobile/projects/ViewController/src/util/AttrType.java | oracle/Accelerators | mit | 1,411 | 42 | codeparrot/github-code |
81f900e326f544673c61db2a56ea34917650ecd7600e76e78c1c09b0997d4ae6 | <?php
namespace Fenchy\RegularUserBundle\Twig;
use Fenchy\UserBundle\Entity\Reference;
class FenchyRegularUserExtension extends \Twig_Extension
{
private $container;
public function __construct($container)
{
$this->container = $container;
}
public function getFunctions()
{
... | PHP | src/Fenchy/RegularUserBundle/Twig/FenchyRegularUserExtension.php | PollyandBob/PollyAndBob | mit | 1,821 | 63 | codeparrot/github-code |
388178a06889d01ae8b2d151f1271d04ed44285a2d63749c2b9a5382415cd023 | namespace Greedy_Times
{
using System;
using System.Collections.Generic;
using System.Linq;
public class StartUp
{
public static void Main()
{
var goldBasket = new Dictionary<string, long>();
var gemBasket = new Dictionary<string, long>();
var cas... | C# | 04. C# Advanced - May 2017/CSharp Adv Exam Retake - 3 Sept 2017/Greedy Times/StartUp.cs | zrusev/SoftwareUniversity2016 | mit | 4,285 | 121 | codeparrot/github-code |
846090d98b81a6b63a5fe522cf2e65aa80fc35cf83feef28172328f079157527 | import logging
import re
from django.conf import settings
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django_fsm import FSMIntegerField
from model_ut... | Python | src/waldur_mastermind/support/models.py | opennode/nodeconductor-assembly-waldur | mit | 14,894 | 512 | codeparrot/github-code |
a6fbba965692198aa86fa72303640a0466bd4d44c337681c384da0a79f997a3e | from pyotp.otp import OTP
from pyotp import utils
class HOTP(OTP):
def at(self, count):
"""
Generates the OTP for the given count
@param [Integer] count counter
@returns [Integer] OTP
"""
return self.generate_otp(count)
def verify(self, otp, counte... | Python | src/pyotp/hotp.py | toefl/pyotp | mit | 1,325 | 40 | codeparrot/github-code |
87e5a45ea4f2999163b121ed433ecf5da7c3c3d70a3574224969778d2cd079b5 | using System.Text;
// ReSharper disable once CheckNamespace
namespace Stitch.CSS
{
public class MultipleSelectorList : SelectorList, IToString
{
internal static MultipleSelectorList Create(params SimpleSelector[] selectors)
{
var multiple = new MultipleSelectorList();
... | C# | src/Stitch/CSS/Selector/MultipleSelectorList.cs | jherink/Stitch | mit | 1,013 | 42 | codeparrot/github-code |
ed67510e08a7223812f871b07e931228a3f4660101028689677b43cb4c765a5c | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | src/vs/platform/instantiation/common/instantiationService.ts | 2947721120/vscode | mit | 16,496 | 367 | codeparrot/github-code |
5b77d75d0d3b654280ff73182524e15ffbc0f942e1789082c4dd2baba895369e | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import os
import imp
import hmac
import hashlib
import six
from flask import Flask, abort, request
DEBUG = os.environ.get("DEBUG", False) == 'True'
HOST = os.environ.get("HOST", '0.0.0.0')
ROOT_DIR = os.path.dirname(os.p... | Python | hook/hook.py | pyupio/octohook | mit | 3,954 | 138 | codeparrot/github-code |
c6f1319ebf85b72cb268ae1954b9a264f9da8f73d53f68461efd69b8138d45b7 | /*
* Copyright 2016 Hewlett Packard Enterprise Development Company, L.P.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
*/
package com.hp.autonomy.types.idol;
import com.hp.autonomy.types.idol.marshalling.Jaxb2ParsingConfiguration;
import com.hp.a... | Java | src/test/java/com/hp/autonomy/types/idol/GenerateIndexableXmlDocumentTest.java | hpautonomy/java-idol-types | mit | 4,161 | 117 | codeparrot/github-code |
af27208e6c4c97a136df0a1754f282ef0ee17fdaaca1bf15f0a89f2469cc789a | #include "optionsdialog.h"
#include "ui_optionsdialog.h"
#include "bitcoinamountfield.h"
#include "bitcoinunits.h"
#include "monitoreddatamapper.h"
#include "netbase.h"
#include "optionsmodel.h"
#include "qvalidatedlineedit.h"
#include "qvaluecombobox.h"
#include <QCheckBox>
#include <QDir>
#include <QIntValidator>
#... | C++ | src/qt/optionsdialog.cpp | fubendong2/eightcoin | mit | 7,670 | 242 | codeparrot/github-code |
1247375925d3a819dabff2f56e9bcc46e6e10934942ac03aa02b3e5506508265 | using System.Collections.Generic;
using AutoMapper;
using Shouldly;
using NUnit.Framework;
using System.Linq;
namespace AutoMapperSamples.Mappers
{
namespace Lists
{
[TestFixture]
public class SimpleExample
{
public class Source
{
public int Value... | C# | src/AutoMapperSamples/Mappers/Lists.cs | gentledepp/AutoMapper | mit | 3,125 | 99 | codeparrot/github-code |
697b4095f0fae0e6e9b7cac2aed3a48f9498a8c3d48d6b125bd29893cc066701 | <?php
/**
* Переводит число в словесный формат
* @author keltanas
*/
class numeric
{
protected $N0 = 'ноль';
protected $Ne0 = array(
0 => array('','один','два','три','четыре','пять','шесть',
'семь','восемь','девять','десять','одиннадцать',
... | PHP | class/numeric.php | siteforever/SiteForeverCMS | mit | 4,840 | 141 | codeparrot/github-code |
5df3fa119c46f2f091dac01ddeb663d7d402f46579de0400a75a6ea80043b9d4 | (function (angular) {
'use strict';
angular
.module('$q-spread', [])
.config(['$provide', function ($provide) {
$provide.decorator('$q', ['$delegate', function ($delegate) {
var originalDefer = $delegate.defer;
$delegate.defer = function () {
... | JavaScript | src/q-spread.js | showpad/angular-q-spread | mit | 1,237 | 39 | codeparrot/github-code |
c0356efa94fd016410a78d50257a82f8d5ab17fce1508627a05175fc1af493af | #include <stdint.h>
#include <stdarg.h>
#include <string.h>
// convert to hexadecimal (with leading 0s)
// buffer must be 8+1 bytes long
// return length of string (without null character)
static int itoa_hex(uint32_t x, char *buffer)
{
static const char hex_tbl[]
= {'0','1','2','3','4','5','6','7','8','9'... | C | kprintf.c | cvra/kprintf | mit | 4,600 | 183 | codeparrot/github-code |
b3e5c1cb9622f3893d3305ad54dee9285f8fd00e8971bdcee67d80ab1d2b62d6 | /*!
* Higgs Library for jQuery v1.0.0
*
* Copyright 2014 Soul_Master
* Released under the MIT license
*
* Date: @currentTime
*/
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof ... | JavaScript | _Nuget.Higgs/Packages/Higgs.Web/content/Scripts/Higgs-3.0/jquery.higgs.js | Soul-Master/higgs | mit | 58,753 | 1,436 | codeparrot/github-code |
4b2635d3b863366e2339cc1be2c7923cd0129027bc24ede41dc583a43cdf4664 | package FacebookPrep;
public class _0329LongestIncreasingPathInAMatrix {
public static void main(String[] args) {
System.out.println(longestIncreasingPath(
new int[][] { new int[] { 9, 9, 4 }, new int[] { 6, 6, 8 }, new int[] { 2, 1, 1 } }));
System.out.println(longestIncreasingPath(
new int[][] { new in... | Java | src/FacebookPrep/_0329LongestIncreasingPathInAMatrix.java | darshanhs90/Java-InterviewPrep | mit | 1,326 | 47 | codeparrot/github-code |
93f89f9ab6e559f5f828a941e9de1eed3b7b576c6b63b9a49a65453658721d44 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using Sitecore.Data.Serialization.ObjectModel;
using Sitecore.Update;
using Sitecore.Update.Filters;
using Sitecore.Update.Interfaces;
namespace Sitecore.Courier
{
/// <summary>
/// The File system data... | C# | Sitecore.Courier/FileSystemProvider.cs | adoprog/Sitecore-Courier | mit | 12,008 | 364 | codeparrot/github-code |
1f216c2294ca4205ee0c3c588247314189c7fb02688ce909b59cad7a4f7917fb | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Տեքստային խնդիր-փŒ... | HTML | uploads/lesson_type_5/05153_1489662655/amplaunch.html | newlearnpro/learnpro | mit | 5,369 | 126 | codeparrot/github-code |
4b875add121e6b4d4e3d4f1aa46ccd8fffb935d34a92bd95b5a3589594aba3f3 | //
// EditInfoViewController.h
// SQLite3DBSample
//
// Created by Gabriel Theodoropoulos on 25/6/14.
// Copyright (c) 2014 Appcoda. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol EditInfoViewControllerDelegate
-(void)editingInfoWasFinished;
@end
@interface EditInfoViewController : UIViewController... | C | GonzalezBustamante/mvc/mvcDemo/mvcDemo/EditInfoViewController.h | tectijuana/iOS | mit | 691 | 34 | codeparrot/github-code |
06a6496aea75a6994835a406c1b3445a6b8368502b624fd7ef488f4776317e9d | {% extends 'base.html' %}
{% load static %}
{% load widget_tweaks %}
<%{% block conteudo %}
{% if data %}
<div class="alert alert-danger alert-dismissable">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
<strong>{{ data }}!</strong>
</div>
{% endif %}
<section ... | HTML | templates/Frequencia/busca_frequencia.html | Ednilsonpalhares/SCEFA | mit | 2,360 | 53 | codeparrot/github-code |
bb4aa6f4dd2c07692bd8c43620661098e8136da5f2f58c98631a5bc9568a9277 | /**
* @author alteredq / http://alteredqualia.com/
* @author mrdoob / http://mrdoob.com/
*/
import { Mesh } from '../objects/Mesh.js';
import { MeshBasicMaterial } from '../materials/MeshBasicMaterial.js';
import { SphereBufferGeometry } from '../geometries/SphereGeometry.js';
function PointLightHelper( light, sph... | JavaScript | src/helpers/PointLightHelper.js | Samsy/three.js | mit | 1,898 | 93 | codeparrot/github-code |
6a154f19b0ddc9f4c50da417866a82a67b8042546de6872c54853e3723c8891b | ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
var DocCommentHighlightRule... | JavaScript | web/site/js/ace-builds/src-noconflict/mode-csharp.js | NPellet/jsGraph | mit | 16,809 | 502 | codeparrot/github-code |
a1920e741156f11c9f54eac46513ef8a6712e11860a3ffcd48c4372eb70ec735 | <!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta charset='utf-8'/>
<title>WebIDL Tests</title>
<script src='https://www.w3.org/Tools/respec/respec-w3c-common'
async class='remove'></script>
<script class='remove'>
var respecConfig = {
specStatus:... | HTML | examples/webidl-contiguous.html | stevefaulkner/respec-docs | mit | 15,803 | 518 | codeparrot/github-code |
8026dcee460f355811935ef1ebcaa890c2a6e2eecefec18432f128f07fba25b8 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qgraphicsscen... | HTML | QtEsrc/qt-everywhere-opensource-src-4.8.5/doc/html/qgraphicsscenewheelevent.html | stephaneAG/PengPod700 | mit | 16,782 | 289 | codeparrot/github-code |
3e0aa98d3ca0750f42e7bfd8e5714893e2b91d83968f795213892891d21d9055 | // Define functions to render linked interactive plots using d3.
// Another script should define e.g.
// <script>
// var plot = new animint("#plot","path/to/plot.json");
// </script>
// Constructor for animint Object.
var animint = function (to_select, json_file) {
function wait_until_then(timeout, condFun, readyF... | JavaScript | web-graphics/proposal/unnamedchunk4/animint.js | cpsievert/slides | mit | 80,369 | 2,280 | codeparrot/github-code |
ce69cf27ef255f231b66815257074051bb539b18f775b9d0c60f3a1fbfc2c37a | package applier
import (
"fmt"
"sync"
. "github.com/divtxt/raft"
"github.com/divtxt/raft/internal"
"github.com/divtxt/raft/util"
)
type FatalErrorHandler func(err error)
// An Applier is a goroutine that applies committed log entries to the state
// machine and notifies the result listener for each entry.
//
/... | GO | applier/applier.go | divtxt/raft-consensus | mit | 7,899 | 260 | codeparrot/github-code |
560a634e6d8505a4a491499b856d8874e137e30e9cb34727a46a78b9edf6dd04 | import {addClass, outerHeight, outerWidth} from './../helpers/dom/element';
import {arrayEach} from './../helpers/array';
import {objectEach} from './../helpers/object';
import {rangeEach} from './../helpers/number';
import {stringify} from './../helpers/mixed';
/**
* @private
*/
class SamplesGenerator {
/**
* ... | JavaScript | src/utils/samplesGenerator.js | Jazzo/handsontable | mit | 4,002 | 162 | codeparrot/github-code |
5fc57f66ed631a88648802c4b474cdcd88fa82ef4fe9f3e4166885129c50bb20 | /* */
var $ = require("./$"),
$def = require("./$.def"),
setProto = require("./$.set-proto"),
$iter = require("./$.iter"),
ITER = require("./$.uid").safe('iter'),
step = $iter.step,
assert = require("./$.assert"),
isObject = $.isObject,
getDesc = $.getDesc,
setDesc = $.setDesc,
... | JavaScript | jspm_packages/npm/core-js@0.8.3/modules/es6.reflect.js | poshaughnessy/es6-react-jspm-starter-template | mit | 3,740 | 122 | codeparrot/github-code |
cee240b5a1e2b4501e98df91497e29b2c22afb209f921cfda77cbd22e122cbc2 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>jQuery plugin: Tablesorter 2.0 - Scroller Widget</title>
<!-- jQuery -->
<script src="js/jquery-1.4.4.min.js"></script>
<!-- Demo stuff -->
<link class="ui-theme" rel="stylesheet" href="css/jquery-ui.min.css">
<script src="js/jquery-ui.min.js"></scrip... | HTML | web/lib/tablesorter-master/docs/example-widget-scroller.html | herrthiesen/pb-webapp | mit | 17,232 | 352 | codeparrot/github-code |
3c2c6b8ba1abcd5a0e65ae01c5b0439025610f2f8ebe595f726c5877c306252b | <!-- SECTION Judul-->
<!--===============================================================-->
<div class="section-heading-page">
<div class="container">
<div class="row">
<div class="col-sm-6">
<h1 class="heading-page text-center-xs">Dashboard</h1>
</div>
... | PHP | application/views/front/konfirmasi/content.php | reeganaga/tokoonline | mit | 8,027 | 180 | codeparrot/github-code |
dbb5ac6486d7244a44b3c5ec6fae9cea902937f127faf0cee494fb0d833b6813 | define(['square/directives/directives'], function (directives) {
'use strict';
directives.directive('sqrActiveLink', function ($location) {
return {
restrict: 'A',
link: function (scope, element, attrs) {
var clazz = attrs.spaActiveLink || 'active';
var path = attrs.href.substring(1);
... | JavaScript | squareframework-ui/target/classes/js/directives/activeLink.js | leonardosalles/squarespa | mit | 794 | 35 | codeparrot/github-code |
88076da1900c0d417db89358a90e0db44a3e1b59fe8caa74716103d34bd08d5e | using LmpClient.Base;
using LmpClient.Base.Interface;
using LmpClient.Systems.VesselRemoveSys;
using LmpCommon.Message.Data.Vessel;
using LmpCommon.Message.Interface;
using System.Collections.Concurrent;
namespace LmpClient.Systems.VesselProtoSys
{
public class VesselProtoMessageHandler : SubSystem<VesselProtoSys... | C# | LmpClient/Systems/VesselProtoSys/VesselProtoMessageHandler.cs | DaggerES/LunaMultiPlayer | mit | 1,382 | 35 | codeparrot/github-code |
5883cc7dd3aef3a88e93bf2744529bb7e8123745d034ddc97cba6cd61265e00d | package org.knowm.xchange.bitcoinium;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.knowm.xchange.bitcoinium.dto.marketdata.BitcoiniumOrderbook;
import org.knowm.xchange.bitcoinium.dto.marketdata.BitcoiniumOrderbook.CondensedOrder;
import org.knowm.x... | Java | xchange-bitcoinium/src/main/java/org/knowm/xchange/bitcoinium/BitcoiniumAdapters.java | gaborkolozsy/XChange | mit | 2,567 | 73 | codeparrot/github-code |
b27a36a54d55481a8a7feaa1c02469e859e9ddb742afd0024a213d110e483cdd | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arrow Navigator Skin 053 - Jssor Slider</title>
</head>
<body style="font-family:Arial, Verdana;background-color:#fff;">
<script src="../js/jssor.slider.min.js" type="text/... | HTML | src/PHBGTU/wwwroot/lib/jssor-slider/skin/arrow-053.html | osuarez1/PHBGTU | mit | 3,802 | 71 | codeparrot/github-code |
ec2626f3bba9e8f35394b34b5880921babdd3b0e633718159a38b06f64388539 | using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
namespace LiteDB
{
internal class JsonWriter
{
private const int INDENT_SIZE = 4;
private TextWriter _writer;
private int _indent;
private string _spacer = "";
... | C# | LiteDB/Document/Json/JsonWriter.cs | 89sos98/LiteDB | mit | 8,338 | 290 | codeparrot/github-code |
ef699a2b34416b19491a80c11c06514365fe5e907930563e185898b81e88ad57 | using System;
using System.Windows.Forms;
namespace SuperPutty.Utils
{
/// <summary>
/// Make a text box focus and select all on mouse click, tab in, etc.
/// http://stackoverflow.com/questions/97459/automatically-select-all-text-on-focus-in-winforms-textbox
/// </summary>
public class Te... | C# | SuperPutty/Utils/TextBoxFocusHelper.cs | djtms/superputty | mit | 1,942 | 61 | codeparrot/github-code |
48a447be21c3c6be399068acdd79d26a1247601292d995cc290aafde97c62093 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<title>Uses of Class org.apache.poi.poifs.filesystem.NPOIFSDocument (POI API Documentation)</title>
<link rel="stylesheet" type="text/css" href="../../../../../../styleshe... | HTML | eclipse/poi-3.12/docs/apidocs/org/apache/poi/poifs/filesystem/class-use/NPOIFSDocument.html | misuqian/ExcelTool | mit | 7,298 | 165 | codeparrot/github-code |
e1602bc1292eca8faa0359acb7886a3759499566fd412b42c15b81846b12d223 | #region using
using System.Collections.Generic;
using ProcessControlStandards.OPC.DataAccessClient;
using ProcessControlStandards.OPC.TestTool.Models;
#endregion
namespace ProcessControlStandards.OPC.TestTool
{
/// <summary>
/// Interaction logic for DAGroupItemResults.xaml
/// </summary>
p... | C# | TestTool/DAGroupItemResults.xaml.cs | voyachek/ProcessControlStandards.OPC | mit | 1,145 | 39 | codeparrot/github-code |
71119ca9327e7e12742115c320ee0b00f90eb17901f77653187399532959ea77 | import _ from 'lodash';
import fs from 'fs';
import gutil from 'gulp-util';
import path from 'path';
import hash from 'sha1';
import table from 'text-table';
const unquote = (str, quoteChar) => {
quoteChar = quoteChar || '"';
if (str[0] === quoteChar && str[str.length - 1] === quoteChar) {
return str.s... | JavaScript | test/utils/transform.js | i18next/i18next-scanner | mit | 4,774 | 137 | codeparrot/github-code |
8e4ee49d13303b901b1fe530867718f9f8b072653c86283ef0eae3e9d2d46fee | $.ajax({
url : 'customers.json',
dataType : 'json',
type : 'GET',
success : build_chart,
error: process_errors,
});
function process_errors(jqXHR, status, error_msg){
$('.alert-danger').show();
$('.alert-danger').html('<p>ERROR occurred: ' + error_msg + '</p>');
$('.alert-danger').append('<p>' + jqXHR.respons... | JavaScript | static/hot/js/chart.js | samuelcolvin/HotDjango | mit | 2,721 | 98 | codeparrot/github-code |
412d936b5cf382d0c1704810579754034e69dd844fdfcd70df3ab7b7a8088544 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LinqToDB.SqlQuery
{
public class SqlFunction : ISqlExpression//ISqlTableSource
{
public SqlFunction(Type systemType, string name, params ISqlExpression[] parameters)
: this(systemType, name, false, SqlQuer... | C# | Source/SqlQuery/SqlFunction.cs | lvaleriu/linq2db | mit | 4,724 | 160 | codeparrot/github-code |
2a021027d0c77a9386249b950a0a4d48e413d8e81269ba8430dc534977fde314 | using System;
using System.Collections.Generic;
using System.Linq;
namespace CLAP
{
public class TargetResolver
{
private readonly Dictionary<Type, Func<object>> targetHash = new Dictionary<Type, Func<object>>();
public TargetResolver()
{
}
public TargetResolver(param... | C# | CLAP/TargetResolver.cs | adrianaisemberg/CLAP | mit | 1,405 | 51 | codeparrot/github-code |
a7c420b8e5b9841be091c2d0a0b0803f6ca8b40ed4b65a3d5e1495dfc72ff06d | /*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | Java | src/test/java/org/spongepowered/common/util/ReflectionTest.java | lukegb/SpongeCommon | mit | 4,690 | 140 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.