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 |
|---|---|---|---|---|---|---|---|---|
8f79d2842ea6bf93c3a3cbe30de01377f5d1b553701097b8240b9d5aa6239eb5 | #--------------------------------------------------------------------------#
# Prior to running:
# Download chromedriver.exe from https://sites.google.com/a/chromium.org/chromedriver/
# and save in Python27\Scripts. Make sure packages are installed and in the correct
# folder: likely something like "C:\Python27\ArcGIS1... | Python | sensor_QC/PS_reference_scraper.py | kaufman-lab/uw-radical | mit | 8,186 | 182 | codeparrot/github-code |
c49e9186dfeba2f10741a9f847e6587b6c51b89069ef52fa0b630e269ed9c45c | #ifndef ANIMATION_CLIPCHANNEL_HPP
#define ANIMATION_CLIPCHANNEL_HPP
#include "build.hpp"
#include "util/dyn_array.hpp"
#include "util/objectnodetraits.hpp"
#include "util/str8.hpp"
#include "util/vector.hpp"
namespace clover {
namespace animation {
enum class ClipChannelType {
translation,
rotation,
scale
};
str... | C++ | code/source/animation/clipchannel.hpp | crafn/clover | mit | 856 | 46 | codeparrot/github-code |
ae3bbfbc71803ea5cbb90baccaf796504cd59740cb1e23512152b306e076da93 | var express = require('express');
var passport = require('passport');
var LocalStrategy = require('passport-local').Strategy;
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var a... | JavaScript | app.js | lacquered/node-lacquer | mit | 1,914 | 77 | codeparrot/github-code |
0770bba3397aa8c57abe3fd087450cae51ca840e4b70009103869d04add12ea7 | <?php
/**
* Created by PhpStorm.
* User: Michael Haenzi
* Date: 29.11.2016
* Time: 14:06
*/
class MessageEntity implements JsonSerializable
{
private $id;
private $text;
private $date;
private $chatId;
private $userId;
public function __construct(array $data)
{
if (isset($data... | PHP | src/api/classes/entities/MessageEntity.php | michaelhaenzi/Modul-335 | mit | 1,467 | 82 | codeparrot/github-code |
eaca57ff3fa0c01511af1ad26f3d7ee0e84dbc2dd445327c3520313e58e4b486 | package org.jabref.gui.maintable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.stream.Collectors;
import javax.swing.undo.UndoManager;
import javafx.beans.property.ReadOnlyObjectWrapper;
import javafx.geometry.Insets;
i... | Java | src/main/java/org/jabref/gui/maintable/MainTableColumnFactory.java | sauliusg/jabref | mit | 10,766 | 248 | codeparrot/github-code |
dac818d2373ffbe35e105e377f3b3c7756a76bf4fd495ae5ccd0b18a06185457 | package mongodb
import (
"fmt"
"reflect"
"strconv"
"github.com/influxdata/telegraf"
)
type MongodbData struct {
StatLine *StatLine
Fields map[string]interface{}
Tags map[string]string
DbData []DbData
ColData []ColData
ShardHostData []DbData
}
type DbData struct {
Name ... | GO | plugins/inputs/mongodb/mongodb_data.go | srfraser/telegraf | mit | 9,185 | 307 | codeparrot/github-code |
ed6f3f923e7a6a3df372155866a5dfadb3a9facfebb26d0c9bdef124b2d9d8c5 | "use strict";
var request = require("request");
var MotionSensorItem = function(widget,platform,homebridge) {
this.platform = platform;
this.uuidAction = widget.uuidAction;
this.motiondetected = false;
MotionSensorItem.super_.call(this, widget,platform,homebridge);
};
// Register a listener to be n... | JavaScript | items/MotionSensorItem.js | Sroose/homebridge-loxone-ws | mit | 1,413 | 46 | codeparrot/github-code |
2c26087bf98879c09c9188bf5f2a016ade5e83da5d73778b08054937aa817ef8 | /* globals window, document*/
'use strict';
var React = require('react');
window.React = React; // for dev
var DOM = React.DOM;
var TabBar = React.createFactory(require('../../../src'));
// FRIENDS
var FriendsView = React.createFactory(React.createClass({
render: function(){
return DOM.div({}, 'FRIENDS');
}
... | JavaScript | samples/sandbox/src/index.js | wearefractal/react-tabbar | mit | 1,276 | 62 | codeparrot/github-code |
215431fd1fe86018692e91888c4ce9979ebde2a6997b1efcf0dd7b1f1fe0fae0 | import json
import os
import shutil
import zipfile
from build import cd
def create_template(name, path, **kw):
os.makedirs(os.path.join(path, 'module'))
with open(os.path.join(path, 'module', 'manifest.json'), 'w') as manifest_file:
manifest = {
"name": name,
"version": "0.1",
"description": "My module t... | Python | .trigger/module_dynamic/module.py | mnaughto/trigger-statusbar | mit | 2,707 | 81 | codeparrot/github-code |
c777d967bb4ef967589f0a77d169a3f949af9adac533b5594061d2da8cc3ed8c | // Copyright (c) 2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <core_memusage.h>
#include <policy/policy.h>
#include <primitives/transaction.h>
#include <streams.h>
#include <test/fuzz... | C++ | src/test/fuzz/tx_out.cpp | thelazier/dash | mit | 965 | 35 | codeparrot/github-code |
a89094fd8c654236ba66d291e1ca2409f42b2f9325e3dbe0bd88e9e117470489 | <div>
<div class="page-bar">
<ul class="page-breadcrumb">
<li>
<a href="<?php base_url();?>">Home</a>
<i class="fa fa-circle"></i>
</li>
<li>
<a href="#">Dekomposisi</a>
<i class="fa fa-circle"></i>
</li>
<li>
<span>Batch Billing</span>
</li>
</ul>
</div>
<di... | PHP | application/views/process/process_prebill_batch2.php | isyageri/optima | mit | 13,183 | 339 | codeparrot/github-code |
9201769af2b77448cfe50090f8aad2dc0e5f9114fedcea688a4cb28f97d343fd | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace Wve
{
/// <summary>
/// expandable dialog form; intended as a class
/// to inherit, but don't - better to copy and edit... | C# | Wve/ExpandableForm/ExpandableFormBase.cs | weastridge/MinhaCor | mit | 4,110 | 134 | codeparrot/github-code |
7db762189441cc926762959a03b76b742b124717e825d8440f8b2f7b806171d3 | /* **********************************************************
* File: e2e.spec.js
*
* Brief: Contains the End to End specifications for testing
* the mica Application.
*
* Author: Craig Cheney
* Date: 2017.04.26
*
********************************************************* */
import { Application } from 'spectron';
imp... | JavaScript | test/e2e/e2e.spec.js | TheCbac/MICA-Desktop | mit | 1,745 | 59 | codeparrot/github-code |
c5058d72b5244b3f7c6f0c40c709fff39526a842deff728827f2b9370cab2726 | <?php
/**
*
* @author Adam Bukowski <abukowski@telaxus.com>
* @copyright Copyright © 2011,2012 Telaxus LLC
* @license MIT
* @version 20121013
* @package epesi-Base
* @subpackage EpesiStore
*/
defined("_VALID_ACCESS") || die('Direct access forbidden');
class Base_EpesiStore extends Module {
// colors... | PHP | modules/Base/EpesiStore/EpesiStore_0.php | georgehristov/EPESI | mit | 31,070 | 776 | codeparrot/github-code |
75af0db2150304012aaa8d4c832e12dbbdd4356c13c51b8eb8eb28f58f930393 | <?php
// Include & load the variables
// ############################
$variables = SYS_PATH.'/core/json/variables.json';
$config = json_decode(file_get_contents($variables));
$pokedex_tree_file = file_get_contents(SYS_PATH.'/core/json/pokedex.tree.json');
$trees = json_decode($pokedex_tree_file);
if (!defined('SYS_... | PHP | core/process/data.loader.php | brusselopole/Worldopole | mit | 12,588 | 396 | codeparrot/github-code |
7927654d1cc78b3be83204edbc72fb20422e6847066c59b946694b2fc764aa89 | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
import DatePicker from 'material-ui/DatePicker';
import TextField from 'material-ui/TextField';
/**
* Dialogs can be nested. This example opens a D... | JavaScript | src/DialogAddProperty.js | gordongordon/propertytodos | mit | 1,416 | 65 | codeparrot/github-code |
e00dcd28466589475b4562cc63db7cd6a4079126d4144a1d39772710f2203eb5 | package net.katagaitai.phpscan.php.builtin;
import net.katagaitai.phpscan.compiler.BuiltinBase;
import net.katagaitai.phpscan.compiler.PhpCallable;
import net.katagaitai.phpscan.interpreter.Interpreter;
import net.katagaitai.phpscan.symbol.Symbol;
import net.katagaitai.phpscan.symbol.SymbolOperator;
public class Cspr... | Java | src/main/java/net/katagaitai/phpscan/php/builtin/Csprng.java | AsaiKen/phpscan | mit | 863 | 33 | codeparrot/github-code |
df111c85fe6f0db12f311e17c0598b363381defe39af087af8be55eb654e7a15 | package com.ellychou.todo.rest.service;
import com.ellychou.todo.rest.dao.EventDao;
import com.ellychou.todo.rest.entities.Event;
import com.ellychou.todo.rest.entities.User;
import com.ellychou.todo.rest.util.MsgUtils;
import org.apache.log4j.Logger;
import org.jboss.logging.FormatWith;
import org.springframework.bea... | Java | src/main/java/com/ellychou/todo/rest/service/EventRestService.java | Ellychou/Todo-Jersey-Spring-MyBatis | mit | 11,550 | 315 | codeparrot/github-code |
940698745bc2505dfa8896df4b3ef48a8a77a77c32aeb084251f810c5d234b23 | #include "HOffsetManager.h"
#include <sstream>
#include <fstream>
#include <iomanip>
#include "../Utilis/HUtilis.h"
#include "../NetVarManager/HNetVarManager.h"
namespace Dumper
{
namespace OffsetManager
{
void COffsetManager::Dump( void )
{
if( !pProcess->GetModuleByName( "client... | C++ | Dumper/src/OffsetManager/OffsetManager.cpp | Y3t1y3t/CSGO-Dumper | mit | 14,229 | 253 | codeparrot/github-code |
8e81e382286345b5cab7d0982a7e730c96eaede9e508db9ba6e1bea4c03b8d90 | namespace xMaterialControls
{
partial class InkControl
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
... | C# | xMaterialForms/xMaterialControls/InkControl.Designer.cs | xwcg/xMaterialForms | mit | 1,100 | 42 | codeparrot/github-code |
6b8e12a71006393fa05f193f86a130b1ba50c7d0b31b90f035f342879a670c22 | using System;
using System.Collections.Generic;
using System.Linq;
namespace Duomo.Common.Lib.MOVE
{
public class BasicOperationPipelineRunner : IOperationNodeRunner
{
#region IOperationNodeRunner Members
public IRun Run(IOperationNode operationNode, IModelHolder modelHolder)
... | C# | Source/Common/Lib/Lib/Lib/Code/MOVE/Operations/Classes/Runners/Classes/BasicOperationPipelineRunner.cs | CosimoDeMedici/Duomo | mit | 2,558 | 80 | codeparrot/github-code |
03d9627a41abed07cd347f1fa74d24b4511f23f7b454a7e38fb50c32bad84f4b | #pragma once
#include <vector>
#include <cstdint>
#include <string>
#include <unordered_map>
#include <cstring>
#include <cstdlib>
#include <cassert>
#include <vector>
#include <map>
#include <set>
namespace nls{
namespace IL{
enum op_t{
//!*@param 0*/
hlt = 0, nop,
dup,
pushNewObj, //* u... | C++ | src/ncodegen.hpp | TakeOver/yet-another-useless-scripting-language-with-javascript-like-syntax-and-non-optimized-virtual-machine | mit | 12,440 | 415 | codeparrot/github-code |
7244fec313f736d542f38da1b7d81130ab35d019e3d9bb4bb43fdf4d448ef2a6 | /*
* This file is part of Industrial Foregoing.
*
* Copyright 2019, Buuz135
*
* 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 righ... | Java | src/main/java/com/buuz135/industrial/proxy/client/entity/RenderPinkSlime.java | Buuz135/Industrial-Foregoing | mit | 3,512 | 70 | codeparrot/github-code |
c693da00eae6efe13206f50c162299cad0de08fd2fefde3d1625f7c56732e0db | // helper function
const findEnd = (listy, last, term) => {
if (last === undefined && term === undefined) {
last = 0;
term = 1;
// edge case where listy is empty
if (listy.elementAt(last) === -1) {
return 0;
}
}
if (listy.elementAt(last) !== -1 && listy.elementAt(term) !== -1) {
retu... | JavaScript | javascript/chapter10/10.04 - Sorted Search No Size/sortedSearchNoSize.js | Kiandr/CrackingCodingInterview | mit | 2,278 | 79 | codeparrot/github-code |
4d4e2db0d96ee265dd1976fb123fe9a75024705848936c7e634c53968187b998 | #ifndef PATTERNSVIEW_H
#define PATTERNSVIEW_H
#include <QtGui/QGroupBox>
#include <QtGui/QWidget>
#include <QtGui/QTableWidget>
#include <QtGui/QVBoxLayout>
#include <QtGui/QHBoxLayout>
#include <QtGui/QPushButton>
class PatternsView : public QWidget
{
Q_OBJECT
public:
PatternsView( QWidget* parent = 0 );
pr... | C | src/ui/PatternsView.h | mmalicki2/QOczko | mit | 692 | 36 | codeparrot/github-code |
194a66b825ba1653ecbd59635242f810324d12691be10629ee334f11d3b006c7 | \hypertarget{class_singa}{}\section{Singa Class Reference}
\label{class_singa}\index{Singa@{Singa}}
{\ttfamily \#include $<$Singa.\+h$>$}
Inheritance diagram for Singa\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=4.000000cm]{class_singa}
\end{center}
\end{figure}
\subsection*{Public Member ... | TeX | docs/latex/class_singa.tex | kebunit/xperiEmacs2016 | mit | 8,566 | 181 | codeparrot/github-code |
df7569104d244e1d4b1ae9080e51e568ccf269165cc7a3cd5ae00eb8c97bbd65 | require 'json_bunny/exchange'
require 'json_bunny/queue'
require 'json_bunny/rpc_client'
require 'json_bunny/rpc_server'
module JsonBunny
class Channel
def initialize(raw_channel)
@raw_channel = raw_channel
end
def queue(name, opts={})
Queue.new(@raw_channel.queue(name, opts))
end
d... | Ruby | lib/json_bunny/channel.rb | yashke/json_bunny | mit | 1,272 | 61 | codeparrot/github-code |
5b6f789cd5e1bf6f977ebad2111f53821c57ae38947495ed0ef040ed322f4c71 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>dpdgraph: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | HTML | clean/Linux-x86_64-4.04.2-2.0.5/released/8.9.0/dpdgraph/0.5.1.html | coq-bench/coq-bench.github.io | mit | 6,607 | 168 | codeparrot/github-code |
55319db1363bfc45da03d6deb5b4b4b0eeb495609967199f765425109878cd5a | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>maple-mode: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.... | HTML | clean/Linux-x86_64-4.11.2-2.0.7/released/8.14.0/maple-mode/8.9.0.html | coq-bench/coq-bench.github.io | mit | 7,184 | 177 | codeparrot/github-code |
09ea392d29252aa6f93bae2a6e2b2d130a2e5103f8e72aef9adb03f9cbc88e42 | using System;
using System.Collections.Generic;
using System.Linq;
// Credit: http://github.com/lordofduct/spacepuppy-unity-framework/blob/master/SpacepuppyBase/Collections/SerializableDictionaryBase.cs
public abstract class DrawableDictionary{}
[System.Serializable]
public class SerializableDictionaryBase<TKey, TVa... | C# | Assets/scripts/utils/SerializableDictionaryBase.cs | wildrabbit/jamrabbit | mit | 5,266 | 193 | codeparrot/github-code |
e750b95c82b69b475aabe9529bc014c7652662ea6c38f2332c43c18e0cbe3616 | var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var routes = require('./routes/index');
var users = require('./routes/users');
var app = express()... | JavaScript | app.js | am1tanaka/photo-sender | mit | 1,414 | 60 | codeparrot/github-code |
ccaf19c2c9f681ea24130a2f3254bc4ac72a05e660418522fdf12fbc55b760d8 | // Copyright (c) 2010 Aubrey Barnard. This is free software. See
// LICENSE for details.
/*
* Tests the functions in proportionTest.c.
*/
#define PROPORTION_TEST_TEST_C
#include <stdlib.h>
#include <math.h>
#include <check.h>
#include "proportionTest.c"
#define SIG_DIGITS 10
// Function to compare doubles (... | C | proportionTestTest.c | afbarnard/proportion-test | mit | 10,176 | 453 | codeparrot/github-code |
de44fc353a2af331c2df986e0c8ceb700bfc15e0bb732abaf9528958877bd2e5 | <!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title> Analytics & Metrics </title>
<link rel="stylesheet" href="stylesheets/styles.css">
<link rel="stylesheet" href="stylesheets/pygment_trac.css">
<script src="https://ajax.... | HTML | SocioEconomicEcosystem/WORLDSTOCKVOLATILITIESxxxxxx.html | efaysal/efaysal.github.io | mit | 53,642 | 1,278 | codeparrot/github-code |
67eef130e13c3ce8a49abd1c1a83fa6d5e1b58d42adb4aeaba8b805bfe987c1d | 'use strict';
var util = require('util');
var yeoman = require('yeoman-generator');
var path = require('path');
var cgUtils = require('../utils.js');
var chalk = require('chalk');
var _ = require('underscore');
var fs = require('fs');
_.str = require('underscore.string');
_.mixin(_.str.exports());
var DirectiveGenera... | JavaScript | directive/index.js | jonathanwax/generator-jw-ng-gen | mit | 1,730 | 59 | codeparrot/github-code |
777437eb5169e242248314a47010b347bfe16f4e391fd6b9ff9bc96a88b9ac29 | namespace Caliburn.PresentationFramework.Screens
{
using System;
using System.Linq;
using ViewModels;
/// <summary>
/// Hosts extension methods for <see cref="IScreen"/> classes.
/// </summary>
public static class ScreenExtensions
{
static IViewModelFactory viewModel... | C# | src/Caliburn/PresentationFramework/Screens/ScreenExtensions.cs | CaliburnFx/Caliburn | mit | 5,999 | 147 | codeparrot/github-code |
f3bf1f58af0a2e2e13851f169243d8772456368d3ca0fcf17f4d90be9cad7056 | using System;
using System.ComponentModel;
namespace CslaGenerator.Metadata
{
public class ProjectParameters : INotifyPropertyChanged
{
#region State Fields Stored Procedures
string _spGeneralPrefix = string.Empty;
string _spGetPrefix = "Get";
string _spDeletePrefix ... | C# | branches/V4-3-RC/Solutions/CslaGenFork/Metadata/ProjectParameters.cs | CslaGenFork/CslaGenFork | mit | 23,661 | 761 | codeparrot/github-code |
761bf49e31c0fd75d81580d9e27de28cba6334bd257ccdabaa9d7b282ac00e1f | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Store_model extends CI_Model {
function __construct(){
date_default_timezone_set("Asia/Jakarta");
}
function all_list(){
$this->db->select('*');
$this->db->from('mst_store');
$this->db->where('is_active', '1'... | PHP | application/models/Store_Model.php | sugihartono/ci_event | mit | 2,552 | 101 | codeparrot/github-code |
61dfff2476d026481e67db32e5dc4986eb3743adfe744e22b9d843253129cbe7 | #!/bin/sh
#echo 'Sleeping for 3 seconds...'
#sleep 3
SOURCE=
for f in *.go; do
# ../genericsite/*.go ../simpleredis/*.go ../siteengines/*.go ../webhandle/*.go; do
SOURCE+="$f "
done
BIN=archweb
PIDFILE=/tmp/$BIN.pid
LOG=errors.err
M5=nop
SUMFILE=/tmp/$BIN.sumfile.txt
echo 'Starting compilation loop'
echo 'Reading pid... | Shell | compileloop.sh | xyproto/archlinuxno | mit | 1,313 | 64 | codeparrot/github-code |
c319d7f248a479a66d74d03da0398238bc222af2bbbfdecd8c23e35ce05302d2 | using Foundation;
using System;
using UIKit;
using System.Collections.Generic;
using BaitNews.Models;
using System.Linq;
using MikeCodesDotNET.iOS;
namespace BaitNews
{
public partial class ResultsViewController : UIViewController
{
public List<Answer> Answers;
public ResultsViewController (In... | C# | DailyFail/ViewControllers/ResultsViewController.cs | MikeCodesDotNet/Bait-News | mit | 1,425 | 52 | codeparrot/github-code |
f3810807c50aff7cea416e22f222b0464c8662c4beea419fd3a022d4041f68a3 |
import {FRAME_OBSERVER, FRAME_EVENT_ID} from './constants/Config';
import {MESSAGE, SEND} from './constants/Event';
import {METHOD, REGISTER_EVENT, UNREGISTER_EVENT, STATE, EVENT} from './constants/MessageType';
import util from './utils/util';
import guid from './utils/guid';
import EventObserver from './EventObserve... | JavaScript | src/js/frameObserver.js | eHanlin/frame-observer | mit | 5,997 | 243 | codeparrot/github-code |
9779e5fec0cb3c0cf01a5d52e2826dba39f1d2b7ace0583820f952f16526da6e | 'use strict';
angular.module('copayApp.services')
.factory('backupService', function backupServiceFactory($log, $timeout, profileService, sjcl) {
var root = {};
var _download = function(ew, filename, cb) {
var NewBlob = function(data, datatype) {
var out;
try {
out = new Blo... | JavaScript | src/js/services/backupService.js | Groestlcoin/GroestlPay | mit | 2,584 | 88 | codeparrot/github-code |
36b6305f1c634378e7c173cbd3b6a4aa436fde40cb94d51ae339495a5f52c273 | /*!
@file
@author Albert Semenov
@date 08/2010
*/
#ifndef __TEXTURE_TOOL_CONTROL_H__
#define __TEXTURE_TOOL_CONTROL_H__
#include "TextureControl.h"
namespace tools
{
class TextureToolControl : public TextureControl
{
public:
TextureToolControl(MyGUI::Widget* _parent);
virtual ~TextureToolControl();
vo... | C | src/tools/HonViewer/TextureToolControl.h | wangyanxing/Demi3D | mit | 1,110 | 52 | codeparrot/github-code |
41ce4f930d6eeada03d6a8e4ab5e2db272dc810df87e7f1d9f4db390e0ba668e | ---
layout: default
cover: 'assets/images/cover2.jpg'
class: 'tag-template'
navigation: True
logo: 'assets/images/utilities/home_icon.png'
current: tag
---
<!-- < dynamically overriding backgrounds for tags as well as descriptions -->
{% if page.url contains 'tutorials' %}
{% assign new_cover='assets/images/cover7.... | HTML | _layouts/tag.html | hellodk/staging.hellodk.in | mit | 2,163 | 58 | codeparrot/github-code |
426ca090539556ccf416240ec37e789547b8b866d3c14233212a1aee30aae163 | import * as Sequelize from "sequelize";
import {Comment as ApiComment} from "../resources/comment";
import {PartialUser as ApiPartialUser} from "../resources/partial-user";
import {User} from "./user";
/**
* Sequelize instance of a Comment
*/
export interface Comment {
id: string;
author: User;
text: string;
... | TypeScript | src/lib/db-models/comment.ts | o10if/guido-backend | mit | 1,436 | 49 | codeparrot/github-code |
484bd52506f02389fddfa52fcc9ca61b1e90cd6ca50bbc2b4f4a38a42366366f | /**
* This file is part of DubzHud, licensed under the MIT License (MIT)
*
* Copyright (c) Brian Wood
*
* 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... | Java | src/main/java/io/github/redpanda4552/DubzHud/notifications/NotificationSwingCooldown.java | RedPanda4552/DubzHud | mit | 2,258 | 61 | codeparrot/github-code |
8400508f194c7eb1b8d3b542fd72d7e4adb2ca495e0c71995d5c6c7b05536d6c |
var q = require('q');
var async = require('async');
var EventEmitter = require('events').EventEmitter;
var util = require('util');
// Define the window zoom manager
function createWindowZoomManager() {
this.zoomLevel = 1;
this.zoomIncrement = 0.05;
this.keyboardEventHandler = undefined;
// Set the... | JavaScript | lib/js/window_zoom_manager.js | chrisJohn404/ljswitchboard-kipling | mit | 1,387 | 50 | codeparrot/github-code |
c04cd995b1ab4cf55e50a13eaadb0924723466436aa9af102ed1f1ff5f403b00 | <?php
namespace Reactor\Gekkon;
use Reactor\Gekkon\Interfaces\TemplateInterface;
class TemplateFS implements TemplateInterface {
protected $module;
protected $short_name;
protected $file;
public function __construct($module, $short_name, $file) {
$this->module = $module;
$this->short... | PHP | Reactor/Gekkon/TemplateFS.php | webreactor/reactor4-dev | mit | 827 | 39 | codeparrot/github-code |
76fcfa9db2aa55825a23c0770797e58494431ee14eaae2857cb9d0ff5a11b7de | 'use strict'
const vm = require('vm')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const omit = require('lodash/omit')
const ReactDocument = require('react-document')
const path = require('path')
class JsxHtmlWebpackPlugin {
constructor(options) {
// Default options
this.options = Object.assign(
... | JavaScript | utilities/jsx-html-webpack-plugin/index.js | aranja/tux | mit | 1,519 | 59 | codeparrot/github-code |
40e843041e82eb6bf2c7a0f46d75ae395fa806a63044f265bc208f7b7a8f0dc7 | <?php
namespace JobsityChallenge\EntriesBundle\Controller;
use JobsityChallenge\EntriesBundle\Entity\Entry;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Symfony\Component\HttpFou... | PHP | src/JobsityChallenge/EntriesBundle/Controller/DefaultController.php | lordkayzer/jobtest | mit | 16,968 | 346 | codeparrot/github-code |
8696ada4ab81c4e58c715daaf6ab463107d7e5d5e35cfc86daf81c4efb93052f | # vim: set sw=4 ts=4 softtabstop=4 expandtab:
import copy
import logging
import os
import math
import pprint
import statistics
from collections import namedtuple
from . import kleedir
from .kleedir import test
from .kleedir import KleeDir, KleeDirProxy
from . import analyse
from enum import Enum
_logger = logging.get... | Python | kleeanalysis/rank.py | delcypher/klee-runner | mit | 43,340 | 959 | codeparrot/github-code |
4cb290d5c0824a361894158886b7476f0ef30ab598dbf1a42af8d50f42e74fd3 | // Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2011-2012 Litecoin Developers
// Copyright (c) 2013-2014 Diaoyudaocoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_NETBASE_H
#d... | C | src/netbase.h | Franconomasky/DiaoyudaoCoin | mit | 6,183 | 154 | codeparrot/github-code |
df9dc0751de3064f148dbcbc7c4c03782681adba8ccbe1376785cd4e8fbd06b8 | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
using System.Threading;
using Microsoft.Azure.WebJobs.Host.Executors;
using Microsoft.Azure.WebJobs.Host.Lease;
using Microsoft.Azure.WebJobs.Host.Storag... | C# | src/Microsoft.Azure.WebJobs.Host/Lease/LeaseFactory.cs | shrishrirang/azure-webjobs-sdk | mit | 992 | 35 | codeparrot/github-code |
a96b74cd900a0ff3e27ecbecd3898acb68e63dedb7b602334510189669a4ae77 | {% import "partials/language.html" as lang %}
<!DOCTYPE html>
<html lang="{{ lang.t('language') }}" class="no-js">
<head>
{% block site_meta %}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
{... | HTML | material/base.html | DatanestIO/mkdocs-material | mit | 8,768 | 185 | codeparrot/github-code |
c51a0c7e8693accf2a9cc2bcc79554784641282072c707bf18b53d946ce52768 | import {Component} from '@angular/core';
import {Router} from '@angular/router';
import {UserService} from '../shared/services/user';
const styles = require('./login.component.scss');
const template = require('./login.component.html');
@Component({
selector:'login',
template:template,
styles:[styles]
})
expo... | TypeScript | src/app/login/login.component.ts | feiyang90/admin | mit | 952 | 43 | codeparrot/github-code |
214dd349d5dfb071f011b42ae5c42db762988a0a8077d6067ab3f88a880343ad | ///////////////////////////////////////////////////////////////////////////////
//
/// \file tuklib_integer.h
/// \brief Various integer and bit operations
///
/// This file provides macros or functions to do some basic integer and bit
/// operations.
///
/// Endianness related integer operations (XX = 16, 3... | C | LibLzma/src/common/tuklib_integer.h | sim9108/SDKS | mit | 11,377 | 525 | codeparrot/github-code |
ec85b14e4ee61dd53a3aedfcefbbdb1c838328dea841c1756cb79cfd1eeacc2e | import { FunctionComponent } from 'react';
import { useAsync } from 'react-use';
import { CopyToClipboardContainer } from '@waldur/core/CopyToClipboardContainer';
import { translate } from '@waldur/i18n';
import { Field } from '@waldur/resource/summary';
import { getSlurmAssociations } from '@waldur/slurm/details/api'... | TypeScript | src/slurm/details/SubmitWithField.tsx | opennode/waldur-homeport | mit | 1,751 | 62 | codeparrot/github-code |
61262e17c66219ae0ef603eb121e9ba3e2f0fc404f7b6f1485e68e3ee07c7f2c | /*
* This file is subject to the terms and conditions defined in
* file 'LICENSE', which is part of this source code package.
*
* @author Christopher Armenio
*/
#include "cxa_esp32_btle_central.h"
#include <sdkconfig.h>
#ifdef CONFIG_BT_ENABLED
// ******** includes ********
#include <cxa_runLoop.h>
#include <e... | C | src/arch-esp32/btle/cxa_esp32_btle_central.c | OpenCXA/common-c | mit | 4,957 | 170 | codeparrot/github-code |
0fadbb12333d103ce26bbf155fa1e56c878f115f14cf7e81272db31401163bb7 | app.controller('CreateEvent', ['$scope', '$resource', 'Session', '$location', 'Upload', 'fileUpload', 'ngDialog', '$loadingOverlay', 'configuration', function($scope, $resource, Session, $location, Upload, fileUpload, ngDialog, $loadingOverlay, configuration) {
var Event = $resource(configuration.api + '/event?token=... | JavaScript | Insapp-web/app/js/createEvent.js | fthomasmorel/Insapp | mit | 7,504 | 238 | codeparrot/github-code |
ab1e71c0d6230fd7ac5016592c076f06168186fbef08feab1936fb698988d6fd | package controller.experiment.analyzer;
public class PhaseUtils {
/**
* @param value
* @return positive angle (from 0 to 2 * Pi)
*/
public static double truncatePositive(double value) {
while (value < 0) {
value += Math.PI * 2.0;
}
while (value > Math.PI * 2.0) {
value -= Math.PI * 2.0;... | Java | src/controller/experiment/analyzer/PhaseUtils.java | MikhailChe/TemperatureWaveMethod | mit | 633 | 32 | codeparrot/github-code |
50c9597e7ee208fcd46c8f2600dc0224574545598278e7996c4c6925912cb144 | # -*- coding: utf-8 -*-
'''
Created on 9 déc. 2012
@author: Vincent Bruneau, Johann Verbroucht
'''
import unicodedata
from Student import Student
from Teacher import Teacher
class Code(object):
'''
Pour réaliser ces exercices il n'y a pas besoin de modifier les autres
classes, il suffit d'écrire les fonc... | Python | correction/Code.py | johannv/pythonTestEasy | mit | 5,099 | 160 | codeparrot/github-code |
ab7be5eb93a291b396e7d616211c033d8ff449bbdb0134963077d28841d0e67f | ---
---
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>directives | @uirouter/angular</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" hr... | HTML | _ng2_docs/2.0.2/modules/directives.html | ui-router/ui-router.github.io | mit | 36,754 | 662 | codeparrot/github-code |
dd39c445fa69677af931dc82926415f2f75d8498978a4eab91b8abaa155e05ff | // Copyright (c) Microsoft Corporation. All rights reserved.
//
// Licensed under the MIT License. See LICENSE.txt in the project root for license information.
using System;
using System.Linq;
using System.Collections.Generic;
using System.Reflection;
using Windows.Foundation;
using Windows.UI;
using Microsoft.VisualS... | C# | winrt/test.managed/Shared/EffectTests.cs | zjsxwc/Win2D | mit | 42,357 | 1,094 | codeparrot/github-code |
b4c719cd01b09178caca926687c6a7eb327edb522fa740567be869f551d012da | 'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
mochaTest: {
test: {
options: {
reporter: 'spec',
clearRequireCache: true
},
src: ['test/**/*.js']
},
simple: {
options: {
reporter: 'sp... | JavaScript | Gruntfile.js | rkrdo/node-shipping-tracker | mit | 2,059 | 83 | codeparrot/github-code |
2c0a4dd80ccaa8345bc1ba9c3fa5d5f5211454d481ba023d1feeb582f9b5bc80 | package de.gurkenlabs.litiengine.entities;
import de.gurkenlabs.litiengine.graphics.animation.IEntityAnimationController;
import java.util.Map;
import java.util.Optional;
import java.util.concurrent.ConcurrentHashMap;
/**
* This class holds all controllers for the entities in the game. It is used as a single hub to ... | Java | core/src/main/java/de/gurkenlabs/litiengine/entities/EntityControllers.java | gurkenlabs/litiengine | mit | 2,977 | 97 | codeparrot/github-code |
69c334cac4d58a1256d74b0c0f04de6e1474019b34dedc550f8b2b562aa8ab52 | require 'edgecase'
class AboutStrings < EdgeCase::Koan
def test_double_quoted_strings_are_strings
string = "Hello, World"
assert_equal true, string.is_a?(String)
end
def test_single_quoted_strings_are_also_strings
string = 'Goodbye, World'
assert_equal true, string.is_a?(String)
end
def tes... | Ruby | koans/about_strings.rb | ozzloy/ruby_koans | mit | 4,726 | 177 | codeparrot/github-code |
fabfd73616a3ff0794a57007b7d4145b4d6bf120203834f75e3b22363ac34182 | package com.example.actors
import akka.actor.{ActorRef, Actor, ActorLogging}
// Note: Usually the message object (GreeterMessages) and the actor class (GreeterActor) will be called the same thing (eg. Greeter)
object GreeterMessages {
case object Done
case object Stop
}
class GreeterActor extends Actor with Act... | Scala | src/main/scala/com/example/actors/GreeterActor.scala | kononowicz24/scala_akka_integral | mit | 1,123 | 41 | codeparrot/github-code |
efa2eb8c03268390f35702b5d06c06c2aa2cd32e86a82b9e9599437730414572 | <!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>AdobeImageEditorRender Protocol Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link re... | HTML | Frameworks/CreativeSDK/AdobeCreativeSDKImage.framework/Versions/A/Docs/html/Protocols/AdobeImageEditorRender.html | LifePics/iOS-SDK | mit | 11,736 | 438 | codeparrot/github-code |
09cc7612501daa3625df095df397985920229922d4465290dbbe8fb7c57c7fea | package OAuth::Lite2::ParamMethod::AuthHeader;
use strict;
use warnings;
use bytes ();
use parent 'OAuth::Lite2::ParamMethod';
use URI;
use MIME::Base64 qw(decode_base64);
use Hash::MultiValue;
use HTTP::Request;
use HTTP::Headers;
use Params::Validate;
use OAuth::Lite2::Util qw(encode_param decode_param build_content... | Perl | plugins/GoogleOpenIDConnect/extlib/OAuth/Lite2/ParamMethod/AuthHeader.pm | movabletype/mt-plugin-google-openid-connect | mit | 6,145 | 232 | codeparrot/github-code |
2d9693e1e86249d0521598ddec50ddc34df29288d759b7d3171a077ea08479ca | using System;
using System.Collections.Generic;
namespace WvsGame.Maple.Scripting
{
public class Inventory
{
public const int MAX_STACK_COUNT = 100;
private Player _player;
private Item[] _items;
public Inventory(Player player, int capacity)
{
_player = pl... | C# | WvsMapleNpcs/Inventory.cs | Tagette/WvsNpcSimulator | mit | 7,614 | 262 | codeparrot/github-code |
aef8dbbaa6561956a60aae093161f18945dc6339014848e6fb04ce34c4811ca2 | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <memory>
#include <unordered_map>
#include <vector>
#include <folly/fibers/FiberManager.h>
#include <gtest/gtest.h>
#i... | C++ | mcrouter/routes/test/LoadBalancerRouteTest.cpp | facebook/mcrouter | mit | 22,936 | 631 | codeparrot/github-code |
a70dfaf3f2c2e03df34df7905ad4eea0846094712672e8cfe52318feed5b160b | #include <mi/VolumeInfo.hpp>
namespace mi
{
class VolumeInfo::iterator::Impl : public NonCopyable
{
public:
Impl ( void )
{
return;
}
~Impl ( void )
{
return;
... | C++ | src/VolumeInfoIterator.cpp | tmichi/mivol | mit | 5,344 | 191 | codeparrot/github-code |
8bf76075cdcc98b06c0463140a0b231f96001c15cc6ded5a4f3e7053e5ae021d | //
// SoundOSX.h
// CocoaExecutor
//
// Created by C.W. Betts on 8/2/14.
// Copyright (c) 2014 C.W. Betts. All rights reserved.
//
#ifndef __CocoaExecutor__SoundOSX__
#define __CocoaExecutor__SoundOSX__
#include <CoreAudio/CoreAudio.h>
#include <AudioUnit/AudioUnit.h>
#include "rsys/common.h"
#include "rsys/soun... | C | OSX-only/CocoaExecutor/NeXT Classes/SoundOSX.h | MaddTheSane/executor | mit | 1,006 | 43 | codeparrot/github-code |
d1e343c7b091f21920eb9a50199ff3a954c3860efb36d510ffd66715b88f3294 | package main
import (
"bytes"
"log"
"strings"
)
type message struct {
DisplayName string
Mod bool
Sub bool
Command string
RoomID string
UserID string
Args []string
}
func parse(line []byte) *message {
if line[len(line)-2] != '\r' || line[len(line)-1] != '\n' {
log.Pr... | GO | message.go | Fugiman/kaet | mit | 1,879 | 124 | codeparrot/github-code |
62f8b431d19120e9488e6473f2c3873794230727e786fe924ce0a3ab5b62c9ab | import { getEmissions, getEmissionsLossOTF } from 'services/analysis-cached';
import { shouldQueryPrecomputedTables } from 'components/widgets/utils/helpers';
import biomassLossIsos from 'data/biomass-isos.json';
import {
POLITICAL_BOUNDARIES_DATASET,
CARBON_EMISSIONS_DATASET,
} from 'data/datasets';
import {
... | JavaScript | components/widgets/climate/emissions-deforestation/index.js | Vizzuality/gfw | mit | 3,890 | 156 | codeparrot/github-code |
10e96b0d6c671dd0dc4cd82644999cc3674f9a47af0c0f558af7a36ec7c63120 | /*
* Copyright 2015 Hewlett-Packard 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.frontend.find.hod.configuration;
import com.hp.autonomy.frontend.configuration.ConfigService;
import com.hp.aut... | Java | find-hod/src/main/java/com/hp/autonomy/frontend/find/hod/configuration/IodConfigValidator.java | ExperisIT-rav/Bifhi-release | mit | 1,670 | 40 | codeparrot/github-code |
0fe50ece30bc32970b8890eb6abb7b41933e2b311ec484d1cda279e21545c8a0 | /*
Stockfish, a UCI chess playing engine derived from Glaurung 2.1
Copyright (C) 2004-2008 Tord Romstad (Glaurung author)
Copyright (C) 2008-2010 Marco Costalba, Joona Kiiski, Tord Romstad
Stockfish is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License a... | C++ | ext/stockfish/src/ucioption.cpp | certik/chess | mit | 5,295 | 171 | codeparrot/github-code |
5d0f46d55605bcccee8d943f925b207ac3f1821011bb135d04183f7776638342 | using System;
using System.Threading;
using System.Threading.Tasks;
using RawRabbit.Configuration.Get;
using RawRabbit.Operations.Get;
using RawRabbit.Operations.Get.Middleware;
using RawRabbit.Operations.Get.Model;
using RawRabbit.Pipe;
using RawRabbit.Pipe.Middleware;
namespace RawRabbit
{
public static class GetO... | C# | src/RawRabbit.Operations.Get/GetOfTOperation.cs | pardahlman/RawRabbit | mit | 1,830 | 50 | codeparrot/github-code |
9c860a6f4e84f081eed9d6080d6a3f54c9ceb88b90314674d48dc2b72598e5e0 | package soottocfg.test.optimization_test;
import java.util.HashSet;
import java.util.Set;
import java.util.TreeSet;
import org.jgrapht.DirectedGraph;
import org.jgrapht.graph.DefaultDirectedGraph;
import org.jgrapht.graph.DefaultEdge;
import org.junit.Assert;
import org.junit.Test;
import soottocfg.cfg.util.Dominato... | Java | soottocfg/src/test/java/soottocfg/test/optimization_test/LoopFinderTest.java | jayhorn/jayhorn | mit | 2,985 | 113 | codeparrot/github-code |
50021fbe6c742f57ccd2721bfdc6ffc1cf29826e46c1b4e75dc732fa95e452fd | use rustc_serialize::{Encodable, Encoder};
#[derive(Debug, PartialEq)]
pub enum SolrValue {
I64(i64),
U64(u64),
F64(f64),
String(String),
Boolean(bool),
Null
}
impl Encodable for SolrValue {
fn encode<E: Encoder>(&self, e: &mut E) -> Result<(), E::Error> {
match *self {
... | Rust | src/document.rs | Valve/heliotrope | mit | 1,713 | 63 | codeparrot/github-code |
684be75966b7612040da9f12d4f5861957f5cf083a75efeb84463bf5e83e55d1 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using System.Threading;
using OpenTK;
using OpenTK.Graphics;
using ... | C# | AGame/Src/States/MapEditor.cs | cartman300/AGame | mit | 3,479 | 119 | codeparrot/github-code |
7a441e3af5bbdc08ae215b1ed06ecfb61713c0c23623cc0f11d2ac7acf3a40dc | /*
====================================
Javascript Library Skeleton
Message Container
====================================
*/
/*
============
Core Library
============
*/
"use strict";
(function(){
/*
============================
Initialise module definition
============================
*/
var m... | JavaScript | sample-js-library.js | darrensmith/random-things | mit | 2,347 | 127 | codeparrot/github-code |
7cba5b51862c2d23eeb5fdc5bad24f2af51f169ac0fa8d27c59370730eca313a | /*******************************************************************************
The content of this file includes portions of the AUDIOKINETIC Wwise Technology
released in source code form as part of the SDK installer package.
Commercial License Usage
Licensees holding valid commercial licenses to the AUDIOKINETIC W... | C | AK/include/AK/Tools/Common/AkKeyArray.h | CITMProject3/Project3 | mit | 12,248 | 445 | codeparrot/github-code |
0eabc6328412a0a4ea74a73b4e3033dded5d59517dd380a80eee316978c131d1 | import { Component } from '@nestjs/common';
import { ScreenerDto } from './screener.dto';
import { Client } from "elasticsearch";
import { ClientService } from "../db.elasticsearch/client.service"
import { Observable } from "rxjs/Observable";
import { ConstantsReadonly } from "../constants.readonly"
import "rxjs/add/ob... | TypeScript | src/modules/screener/screener.service.ts | yeg-relief/api-server | mit | 1,685 | 48 | codeparrot/github-code |
0c8432556a38bfeced4c5e983c1ea72c75b04fa4e50b963e4b2fb642a6483d9f | local class = require 'lib/30log'
local GameObject = require 'src/GameObject'
local Transform = require 'src/component/Transform'
local Renderable = require 'src/component/Renderable'
local Interfaceable = require 'src/component/Interfaceable'
local Polygon = require 'src/datatype/Polygon'
local TouchDelegate = require... | Lua | src/ui/TurnStartView.lua | Sewerbird/Helios2400 | mit | 4,669 | 130 | codeparrot/github-code |
51e4ccfc2759a2485bae99bcd94494b867e490ec692ea96380e9336465d6bbcd | /**
*
*/
package fr.minibilles.basics.system;
import fr.minibilles.basics.error.Diagnostic;
import fr.minibilles.basics.error.ErrorHandler;
import fr.minibilles.basics.progress.ActionMonitor;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import jav... | Java | basics-core/src/main/java/fr/minibilles/basics/system/BatchCommand.java | jeancharles-roger/fr.minibilles.basics | mit | 4,621 | 130 | codeparrot/github-code |
ef306fb927630d7b36342e284009bf2da44362d0256ba98af700bca2916375d4 | #pragma warning disable 1998
namespace SubBot1.Navigation
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Dialogs;
using Microsoft.Bot.Builder.Dialogs;
using Microsoft.Bot.Builder.Dialogs.Internals;
us... | C# | CSharp/SubBot1/Navigation/NavigationScorable.cs | cmayomsft/BotToBot-Handoff | mit | 3,069 | 89 | codeparrot/github-code |
76582b905ae3aa8d16532fdc54174af7c86cdf0557e5ffb59f6f1c471ba13f74 | 'use strict';
const _ = require('lodash'),
bluebird = require('bluebird'),
components = require('./components'),
layouts = require('./layouts'),
expect = require('chai').expect,
filename = __filename.split('/').pop().split('.').shift(),
lib = require('./' + filename),
notifications = require('./notificat... | JavaScript | lib/services/pages.test.js | nymag/amphora | mit | 14,342 | 402 | codeparrot/github-code |
14573cce613db1ff79b8c005bd782e5e352c8161fb91beb41916597ab6f4a674 | module Zucy
module Routing
class Router
[:get, :post, :put, :patch, :delete].each do |method_name|
define_method(method_name) do |path, to:|
path = "/#{path}" unless path[0] = "/"
klass_and_method = controller_and_action_for(to)
@route_data = { path: path,
... | Ruby | lib/zucy/routing/router.rb | andela-iokonkwo/zucy | mit | 1,236 | 48 | codeparrot/github-code |
f4498d663f641364fb9ea2f480380ca7f0e43b650dbfba6b5f5065b3088cbaa5 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Cólera da Ordem</title>
<meta name="description" content="Uma lista de fácil acesso de magias para TRPG baseado no grimoire do the... | HTML | _site/spells/colera-da-ordem.html | RoenMidnight/grimorio-trpg | mit | 7,231 | 259 | codeparrot/github-code |
a391355c2d71a364fee03ac50421fdc02ca46a9c1500534414c4edd5f226d835 |
/* This file was generated automatically by Zephir do not modify it! */
#ifndef PHP_ZMAILER_H
#define PHP_ZMAILER_H 1
#ifdef PHP_WIN32
#define ZEPHIR_RELEASE 1
#endif
#include "kernel/globals.h"
#define PHP_ZMAILER_NAME "zmailer"
#define PHP_ZMAILER_VERSION "0.0.1"
#define PHP_ZMAILER_EXTNAME "zmail... | C | ext/php_zmailer.h | dred86/ZMailer | mit | 1,774 | 79 | codeparrot/github-code |
ec792f12c3aed292eda88949ab2d51a59782edca4167cfa5083f452f46565e9b | import {Injectable} from '@angular/core';
import {AuthHttp} from 'angular2-jwt';
import {authEndpoint} from '../../constants';
import {Observable} from 'rxjs';
import {AbstractService} from '../abstract-service/abstract.service';
import {UsersDTO} from '../../model/users.dto';
import {RegistrationDTO} from '../../model... | TypeScript | src/app/service/auth-service/auth.service.ts | Andrzej997/Streamer-Web-App | mit | 2,850 | 80 | codeparrot/github-code |
a82f1aafc33ede147197c0a9ad122557a8685edfce4a8607b8d24d2f8b289039 | <?php
/*
* Plugin Name: Youtube Playlist Gallery
* Description: Create a responsive YouTube gallery from a playlist with a simple shortcode.
* Version: 1.0
* Author: Jack Jamieson
* Author URI: http://jackjamieson.me
*/
// Use shortcode to display YT Gallery and pull in params to populate yt data api.
function gallery... | PHP | src/yt-playlist-gal/ytgal-plugin.php | jackjamieson/wordpress-simple-youtube-gallery | mit | 1,242 | 35 | codeparrot/github-code |
966526cc4c1785376dc6b44748f82170ef905580763c18a5db716d68916d264a | # -*- coding: utf-8 -*-
import simplejson as json
from functools import wraps
from flask import current_app, jsonify, request
from ..core import FogspoonError
from ..helpers import JSONEncoder
from .. import factory
def create_app(settings_override=None):
"""Returns the Fogspoon API application instance"""
... | Python | fogspoon/api/__init__.py | tkalus/fogspoon | mit | 1,585 | 63 | codeparrot/github-code |
0863f8d83c1d61b0916980ec6cc7c9f81ab3c7c7022a9f259d54bcd43223c5ad | <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>The DevOps 2.4 Toolkit: Continuous Deployment To Kubernetes</title>
<meta name="author" content="Viktor Farcic">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="bla... | HTML | devops24/workshop-eks.html | vfarcic/vfarcic.github.io | mit | 10,330 | 259 | codeparrot/github-code |
73b0617dfdb991048ccf9041824c6b5735274f299dde0bc4ec6b0e3759bb4e55 | @extends('emails.master_layout')
@section('title')
Your integration team / Ton équipe d'intégration
@endsection
@section('content')
<div style="text-align:left;">
<span style="font-size:30px">Hi {{ $user->first_name }} !</span>
<p> Welcome to UTT ! It's time for us to talk about what's going to happen at... | PHP | resources/views/emails/templates/foreigners.blade.php | ungdev/integration-UTT | mit | 11,466 | 189 | codeparrot/github-code |
6bc40163a62328b19f3d5758230ea2a7330443572623f461d29ec84200efb7b1 | using System;
using System.Collections.Generic;
using Moq;
using NUnit.Framework;
using PopForums.Controllers;
using PopForums.Models;
using PopForums.Services;
namespace PopForums.Test.Controllers
{
[TestFixture]
public class ModeratorControllerTests
{
private ModeratorController GetController()
{
_mockTop... | C# | POPForums/PopForums.Test/Controllers/ModeratorControllerTests.cs | COTB/Hackathon2014 | mit | 5,757 | 169 | codeparrot/github-code |
8149a0a8d1d0163171cc84fb87bcf941c3a30a39f916fe164b2cf5fc9887b120 | const assert = require('assert');
const configHelper = require('../utils/configHelper');
module.exports = Factory;
function Factory({db, amqpConnection, protocol} = {}) {
assert(!!amqpConnection, 'amqpConnection must be defined');
assert(!!protocol, 'protocol must be defined');
amqpConnection.createChannel((err,... | JavaScript | source/protocols/index.js | mujichOk/imcb | mit | 1,568 | 58 | codeparrot/github-code |
4ff5d30dff1c2acddd9fcfc2b69b45c2868d994bff7158c422c91fad6c1f90f8 | <div id="body_header">
<div id="body_header_page_title">
<?php
echo $page_title;
$account_complete = $GLOBALS['User']->AccountComplete();
?>
</div>
<div id="body_header_nav_container">
<?php if ($_SESSION && $_SESSION['admin']): ?>
<span class="body_header_nav_option">
... | PHP | www/module/body_header.php | mikeknoop/knoopvszombies | mit | 3,571 | 93 | codeparrot/github-code |
61cd82dc9918b4ec6c24953efbbfd9a44c5f6de4f959f0577ef9319e20d30b7f | class Rumember
class List < Abstract
reader :name, :filter
boolean_reader :archived, :deleted, :locked, :smart
integer_reader :id, :position
alias to_s name
def params
{'list_id' => id}
end
def tasks(params = {})
list = dispatch('tasks.getList', params)['tasks']['list']
... | Ruby | lib/rumember/list.rb | tpope/rumember | mit | 837 | 35 | codeparrot/github-code |
ad0df06563c7f10a689970905f10f933ed00d78f4ec230f2549ba066dc928768 | <link rel="import" href="/bower_components/prism-js/prism-js.html">
<template><div class="wikiArticle text-content redesign">
<div></div>
<h2 id="Summary" name="Summary">Summary</h2>
<p>The <strong><code>getUTCDay()</code></strong> method returns the day of the week in the specified date according to universal time, wh... | HTML | docs/Date.prototype.getUTCDay().html | mvasilkov/blazin_docs | mit | 3,159 | 50 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.