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
200bacba869c43391cf79ed4ebcd54dd078e72370631eac6e29807cd439c01fc
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html xmlns:fn="http://www.w3.org/2005/02/xpath-functions"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" href="../../../../doc/otp_doc.css" type="text/css"> <title>Erlang -- et_viewer</title> </head> <bo...
HTML
tools/erlang/tools/binary/lib/et-1.5.1/doc/html/et_viewer.html
Thuzi/RabbitMQ2Go
mit
13,626
273
codeparrot/github-code
f296113ee6d1b0a71acf0eb3a49ee5ab594b5d916da562e17b99f17111f91638
# Copyright (C) 2006-2011, University of Maryland # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge,...
Python
direfl/gui/simulation_page.py
reflectometry/direfl
mit
41,666
1,030
codeparrot/github-code
17a219c921de13bea6dabaee2add5fdc75c002b6ddf094ea54862af15be173ba
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import AnimateSimple from './components/AnimateSimple'; import AnimateTransitionGroup from './components/AnimateTransitionGroup'; import animationClasses from './animateClasses.json'; export const getAnimationTiming = (anim) => { switc...
JavaScript
src/index.js
lolJS/react-animate.css
mit
1,790
76
codeparrot/github-code
fc0f81e9c0539dabcaf06ead4830765bbfd6b057c63c4a2b0c86f93e0d890986
package com.example.chatHead.service; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.ServiceConnection; import android.os.IBinder; import com.example.chatHead.service.GestureListener.OnSingleClickListener; public class ChatHeadLauncher { p...
Java
chatHead/src/com/example/chatHead/service/ChatHeadLauncher.java
simpleton/chatHead
mit
1,569
57
codeparrot/github-code
2ed8851a1a5305b983c8e9db7ea093aae9e927245f52604c74bb225a083aab11
\documentclass[12pt,letterpaper]{article} \usepackage[latin1]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \title{Math 141 GR3 Study Sheet} \date{December 3, 2015} \setlength{\jot}{15pt} \begin{document} \maketitle \section{Linearization/Tangent line approximation} T...
TeX
Handouts/GR3 Review.tex
hbutler/math141
mit
4,617
59
codeparrot/github-code
fb2f48ecaa20fd858e9134cfadd960ec1a2b820f9f1ea015c11382a047840154
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2016 The PlanBcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_SCRIPT_SIGCACHE_H #define BITCOIN_SCRIPT_SIGCACHE_H #include "scrip...
C
src/script/sigcache.h
planbcoin/planbcoin
mit
1,907
57
codeparrot/github-code
1a429a00e4c6859704c466620b504f1de7c9b943854d8a5cd05845061bfa8adf
<? defined('C5_EXECUTE') or die("Access Denied."); class Concrete5_Controller_Dashboard_Blocks_Stacks extends DashboardBaseController { public function on_start() { parent::on_start(); Loader::model('stack/list'); $stm = new StackList(); $stm->filterByGlobalAreas(); $this->set('globalareas', $stm->get());...
PHP
concrete/core/controllers/single_pages/dashboard/blocks/stacks.php
mrogelja/website-concrete5
mit
2,994
96
codeparrot/github-code
fcc8dfe1b97c25919bb12fc53cd7d28ba85fa7d7b19d61cf27a2d934702cceb9
<?php namespace AppBundle\Component\Payment\Wxpay; use AppBundle\Component\Payment\Request; use Topxia\Service\Common\ServiceKernel; class WxpayRequest extends Request { protected $unifiedOrderUrl = 'https://api.mch.weixin.qq.com/pay/unifiedorder'; protected $orderQueryUrl = 'https://api.mch.weixin.qq.com/pa...
PHP
src/AppBundle/Component/Payment/Wxpay/WxpayRequest.php
richtermark/SMEAGOnline
mit
7,205
253
codeparrot/github-code
75b2c0a0db00b4c964328389adac7677dcd3b958f51b8d133b5fae8ce484a777
 using Company.EtlTool.Domain.Helpers; using Company.EtlTool.Domain.ServiceContracts; using Company.EtlTool.Representations; using Company.EtlTool.Representations.Objects; using NLog; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Text; using System...
C#
EtlTool/Company.EtlTool.Domain/Services/MergingService.cs
marcrabadan/EtlTool
mit
1,338
43
codeparrot/github-code
dd79bb21526c7215a45f3d5b5c056f84f750e50229f553a150bc5f7dd510bf3d
package hostelproject; import java.io.IOException; import java.net.URL; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ResourceBundle; import javafx.animation.Animation; import javafx.animation.Transition; import javafx.beans.property.ReadOnlyObjectWrapper; import ...
Java
Hostel Management System (NetBeans Project)/src/hostelproject/MainProgramSceneController.java
pranavjindal999/Hostel-Management-System
mit
11,935
382
codeparrot/github-code
47e28a70b8b11fef6b026584d1d85a1d16b997f0a853ba6cefd7761c3edf98e7
const Server = require('./server') const PortFinder = require('portfinder') const PACKAGE_NAME = '[Prerenderer]' const OPTION_SCHEMA = { staticDir: { type: String, required: true }, indexPath: { type: String, required: false } } function validateOptionsSchema (schema, options, parent) { var...
JavaScript
es6/index.js
Tribex/prerenderer
mit
3,713
123
codeparrot/github-code
e7b310e55c81bd1b68d2ba4c150e43b40bb12adcdd66c49321042d1e71efe3b3
namespace Caliburn.ShellFramework.Services { using System; using System.Collections.Generic; using System.Linq; using System.Windows; using System.Windows.Markup; using Core; using Core.Logging; using PresentationFramework; using PresentationFramework.ApplicationModel; ...
C#
src/Caliburn/ShellFramework/Services/DefaultBusyService.cs
CaliburnFx/Caliburn
mit
9,595
277
codeparrot/github-code
d6b0154325f39025adf590ef3b0000b870e00ccd6b7b80e275ef128240f9f182
'use strict'; import createCustomerTpl from 'lib/views/modals/customer.create.html!text'; /** * Customer namespace controller * @constructor * @property {*} fixtures - fixtures handler * @property {Boolean} fixtures.busy - fixtures loading indicator * @property {Function} fixtures.load - fixtures loader */ expo...
JavaScript
app/lib/controllers/CustomerController.js
katrotz/cm
mit
1,586
79
codeparrot/github-code
491431195022a172aeb4fe17a1cf2e2e781c55cc080be43b8a3536d47899d321
package discovery.contentful.activities; import android.os.Bundle; import android.support.v4.app.LoaderManager; import android.support.v4.content.Loader; import android.webkit.WebView; import android.webkit.WebViewClient; import butterknife.Bind; import butterknife.ButterKnife; import discovery.contentful.R; import di...
Java
app/src/main/java/discovery/contentful/activities/TextPreviewActivity.java
contentful/discovery-app-android
mit
1,984
69
codeparrot/github-code
550ea39e94c6a4681ccd86404b4844b8168ee9f240e50cc7411fff3f56f08305
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel.DataAnnotations; using MyStik.TimeTable.Data; namespace MyStik.TimeTable.Web.Models { /// <summary> /// /// </summary> public class SubscriptionViewModel { /// <summary> ...
C#
Sources/TimeTable/MyStik.TimeTable.Web/Models/SubscriptionModels.cs
AccelerateX-org/NINE
mit
5,336
242
codeparrot/github-code
2a40933f626f9da0a86f49bdaf384b0925bfcc416ba30a1f0d5f5f635c45b287
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package verification; import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.I...
Java
TrafficData/src/verification/TrafficDataDelhiVerification.java
manglakaran/TrafficKarmaSent
mit
1,619
41
codeparrot/github-code
60f294bda58787c103652923422c0e1bcfb1af0ea9a78493b13d6dbaa7d47414
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Ovitur.Portal.Core; using Ovitur.Portal; public partial class TemplateContentArea : System.Web.UI.UserControl { protected void Page_Load(object sender, EventArgs e) ...
C#
Ovitur.WebPortal/UserControls/TemplateContentArea.ascx.cs
ovicus/ovitur
mit
1,235
48
codeparrot/github-code
d4618a9bcafd9e1409236669bdf32706ad139f3d5eeab7298c980a04ee10a5db
// #define QUICKTEST using UnityEngine; using System.Collections; using System.Collections.Generic; public abstract class CutScene : CutSceneElements { private const float _blackBarWait1 = 0.1f; #if QUICKTEST private const float _blackBarWait2 = 0.1f; #else private const float _blackBarWait2 = 2.5f; #en...
C#
Assets/Scripts/CutScenes/CutScene.cs
CyberCRI/Hero.Coli
mit
4,074
147
codeparrot/github-code
3d423b272a2cf0854fa27d0a5985572ee2bb72a51a0821c5d312d10410f811da
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>finished | picturepark-sdk-v1-pickers API</title> <meta name="description" content="Documentation for picturepark-sdk-v1-pickers API"> <meta name="viewport" content="width=device-...
HTML
docs/picturepark-sdk-v1-pickers/api/modules/_stream_.internal.finished.html
Picturepark/Picturepark.SDK.TypeScript
mit
7,048
155
codeparrot/github-code
822e3cf05825ca93f6d5c3d01b1d5f2a37146e2b3552d028d13d8d3625cf8f6c
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * User class. * * @extends CI_Controller */ class Users extends CI_Controller { /** * __construct function. * * @access public * @return void */ public function __construct() { parent::__construct(); $this->load->library(...
PHP
application/controllers/Users.php
honeynatividad/ubeltv2
mit
5,447
148
codeparrot/github-code
4c0601ffb0d6c524482d8c7a33a556c13a026333ae5eb4d00c8e2bcd7368dee2
// Copyright (c) 2011-2015 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 "addresstablemodel.h" #include "guiutil.h" #include "walletmodel.h" #include "base58.h" #include "wallet...
C++
src/qt/addresstablemodel.cpp
realzzt/BitCoin2013
mit
14,802
456
codeparrot/github-code
7c62f4ede5fa947ea4e0365d79beb46a357d92c61f7465dda2aa02ffbb179b65
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Timeliner.js Demo</title> <link rel="stylesheet" href="css/screen.css" type="text/css" media="screen"> <link rel="stylesheet" href="css/responsive.css" type="text/css" media=...
HTML
timeline/php/timeliner.html
hritupon/wikitimeline
mit
17,472
306
codeparrot/github-code
9bbbce38d111de177a1a2834d867e75b59724be453832b7abc0a59c8b838a3cc
#!/bin/sh # LPD_Printer_Queue_via_CocoaDialog_List # Copyright (c) Joel Reid 2015 # Distributed under the MIT License (terms at http://opensource.org/licenses/MIT) # Sadly unsure of original author # adapted from a script snippet posted unattributed. possibly adapted from: # https://github.com/glarizza/cart-exam...
Shell
LPD_Printer_Queue_via_CocoaDialog_List/lpdFromList.bash
joelreid/Scripts_for_Mac_Administration
mit
2,045
56
codeparrot/github-code
e8b38bf8355667a380213836be94d8faa7375b0781e8e518f68bc7ce7845f6e8
import os import sys from PyQt4.QtCore import * from PyQt4.QtGui import * import numpy as np import threading import time ########################################################## ########################################################## ########################################################## ##...
Python
informatica/class_python/ejemplo_qt_server.py
miltonsarria/dsp-python
mit
2,390
78
codeparrot/github-code
124e02e0f6bce0ba169e14911b622d2a57e8efec27e3b4153d38c6c1b9944a38
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * Description of User * * @author GonzaH */ class User extends Admin_Controller { public function __construct() { parent::__construct(); $this->load->library(array('form_validation')); $this->load->helper(array(...
PHP
application/controllers/admin/User.php
HerreraG/codeigniterCMS
mit
2,927
107
codeparrot/github-code
3dcf1f7d3945b7e9f8122db1c34b06fa1965e09de8c9c58c1097104d8fd94ee5
// // Created by CaoTao, 2018/03/11 // /* * LeetCode link: * https://leetcode.com/problems/reshape-the-matrix/description/ */ /** * @param {number[][]} nums * @param {number} r * @param {number} c * @return {number[][]} */ var matrixReshape = function(nums, r, c) { var originRows = nums.length if (originR...
JavaScript
Problems/Array/easy/566_reshape_the_matrix.js
Tao-Oak/LeetCodeProblems
mit
986
43
codeparrot/github-code
afb09a509d662689b1963afae3576123a4e5ef99df5ae5bf751e0ce214d7d78a
/* * W.J. van der Laan 2011-2012 */ #include "bitcoingui.h" #include "clientmodel.h" #include "walletmodel.h" #include "optionsmodel.h" #include "guiutil.h" #include "guiconstants.h" #include "init.h" #include "ui_interface.h" #include "qtipcserver.h" #include <QApplication> #include <QMessageBox> #include <QTextCo...
C++
src/qt/bitcoin.cpp
Capricoinofficial/Capricoin
mit
9,151
272
codeparrot/github-code
965b2d3ff5ef2e140c504c78f9d689c8eaea057bc41452cd1d78ee94d7ec71e2
package choco; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; import java.util.logging.Logger; p...
Java
choco/src/test/java/choco/Count.java
Hibataki/choco
mit
2,082
85
codeparrot/github-code
47eec2ab60fdd6918129b3f342e1dc5e07ffa862632194724182bf19c209a330
<?php namespace AppBundle\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; use AppBundle\Entity\TimeEntry; use AppBundle\Form\TimeEntryType; /** * TimeEntry controller. * * @Route("/time_...
PHP
src/AppBundle/Controller/TimeEntryController.php
bigboss86/gestion_tareas
mit
2,808
116
codeparrot/github-code
b5b8ea42d4baf108bfa468a3cd40dce672843a6dca2d588c5a88f29e1d0c5860
/** * * * ConfigPage actions * */ import { GET_SETTINGS, GET_SETTINGS_SUCCEEDED, ON_CANCEL, ON_CHANGE, SET_ERRORS, SUBMIT, SUBMIT_ERROR, SUBMIT_SUCCEEDED, } from './constants'; export function getSettings(env) { return { type: GET_SETTINGS, env, }; } export function getSettingsSuccee...
JavaScript
gatsby-strapi-tutorial/cms/plugins/upload/admin/src/containers/ConfigPage/actions.js
strapi/strapi-examples
mit
1,141
78
codeparrot/github-code
4e6709328cc94079d2c0e5a7147a3dc0728df1a0cd9c6b966d4c6c5d06db97f6
package com.wt.studio.plugin.querydesigner.gef.model; import org.eclipse.ui.views.properties.IPropertyDescriptor; import org.eclipse.ui.views.properties.IPropertySource; import org.eclipse.ui.views.properties.PropertyDescriptor; public class QueryHorizontalBlockModel extends AbstractBlockModel implements IPropertySou...
Java
com.wt.studio.plugin.querydesigner/src/com/wt/studio/plugin/querydesigner/gef/model/QueryHorizontalBlockModel.java
winture/wt-studio
mit
1,429
79
codeparrot/github-code
fc5eb99a6025f90dc5f7708c15f1969af2d0239a5ff531539723569d3c10ffc3
function loginUser(actionUrl, userName, userPassword) { var userNameValue = document.forms['userloginext'].elements[userName].value; var userPasswordValue = document.forms['userloginext'].elements[userPassword].value; // $j = jQuery.noConflict();//{foo:"bar", bar:"foo"} $.post(actionUrl, {option:"login", userN...
JavaScript
assets/extensions/login/js/login.js
milligan22963/PageBuilder
mit
5,444
154
codeparrot/github-code
f704a7c443eebcecbaf257279f50c6c0342b97878a304e8ac423755957be4a43
import BMSClipboard import System.Environment import Data.List import Debug.Trace import Data.Maybe sortObject a b | t1 < t2 = LT | t1 > t2 = GT | otherwise = compare c1 c2 where t1 = row(a) t2 = row(b) c1 = rawChannel(a) c2 = rawChannel(b) movePlayableNotesToBGM ([], bgmNotes) = bgmNot...
Haskell
src/BGMize.hs
bemusic/bms-clipboarder
mit
1,142
38
codeparrot/github-code
025990a189b253901a61e0d38ead785cb9b67e27dde5a6dfe5fe27ec468302be
namespace _12MasterNumber { using System; using System.Linq; public class Program { public static void Main(string[] args) { //// A master number is an integer that holds the following properties: ////Is symmetric (palindrome), e.g. 5, 77, 282, 14341, 9553559. ...
C#
02Methods/MethodsHomeworkLab/12MasterNumber/Program.cs
tanyta78/ProgramingFundamentals
mit
1,842
68
codeparrot/github-code
d91ac2c4f8293fb826102477dd32cc2d88998ae371d698a9f986725dbc542123
// When customizing `templateSettings`, if you don't want to define an // interpolation, evaluation or escaping regex, we need one that is // guaranteed not to match. var noMatch = /(.)^/; // Certain characters need to be escaped so that they can be put into a // string literal. var escapes = { "'": "'", ...
JavaScript
lib/templating.js
Remigius1974/templating.js
mit
5,359
169
codeparrot/github-code
ed4dc403f6b8025084a7043ac8d95a5891982df3e6388e6eb19c9f60425b0078
/* * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
C
Boss2D/addon/_old/webrtc-qt5.11.2_for_boss/api/audio_codecs/opus/audio_encoder_opus_config.h
koobonil/Boss2D
mit
2,457
74
codeparrot/github-code
2b52eca4bf18757d361ac5f038afa6a89930d517fd858f124a79cb899a69a7c5
'use strict'; /** * Module dependencies. */ var _ = require('lodash'), errorHandler = require('../errors.server.controller'), mongoose = require('mongoose'), passport = require('passport'), User = mongoose.model('User'), config = require('../../../config/config'), nodemailer = require('nodemailer'), async = r...
JavaScript
app/controllers/users/users.password.server.controller.js
serializedowen/Kick-Start-Up
mit
5,949
246
codeparrot/github-code
81621eb16bcabcf35862dfa874df6271c5259438519b12e04ac791e06ef707ea
/* global require, describe, it */ 'use strict'; // MODULES // var // Expectation library: chai = require( 'chai' ), // Module to be tested: reverse = require( './../lib' ); // VARIABLES // var expect = chai.expect, assert = chai.assert; // TESTS // describe( 'compute-reverse', function tests() { it( 'sh...
JavaScript
test/test.js
compute-io/reverse
mit
2,689
159
codeparrot/github-code
6741e804559daf447f383a8f9562de89cbcc7af121a4b6985a10d96b30ebaa88
/* The MIT License (MIT) Copyright (c) 2014 Stephan Kesper Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge...
Java
src/main/java/de/kesper/software/bootstrap/utils/Utils.java
skesper/jsf-bootstrap
mit
1,584
43
codeparrot/github-code
715628f9c666a518a613ad7f1d3c99a1ab3a7a95e033f5f5737e7df4922b9008
//===--------------------------------------------------------------------------------*- C++ -*-===// // _ // | | // __| | __ ___ ___ ___ // / _` |/ _` \ \ /\ / / '_ | // | (_| | (_| |\ V V /| | | | // ...
C
src/dawn/Support/StringSwitch.h
twicki/dawn
mit
8,490
221
codeparrot/github-code
ac30f9c926ccbf23aa3cad714d5f6867bd7269db3de6bd26fcdac438dd4dde09
package main import ( "github.com/emicklei/go-restful" "log" "net/http" "time" ) type User struct { Id, Name string } type UserList struct { Users []User } // This example show how to create and use the three different Filters (Container,WebService and Route) // When applied to the restful.D...
GO
Godeps/_workspace/src/github.com/emicklei/go-restful/examples/restful-filters.go
spacexnice/ctlplane
mit
3,669
115
codeparrot/github-code
33c44909e5bffda9bfe825dce3666e58bdccb5f81dd6e2b5d93a9e697bf1942b
<?php /** * The main template file * * This is the most generic template file in a WordPress theme * and one of the two required files for a theme (the other being style.css). * It is used to display a page when nothing more specific matches a query. * e.g., it puts together the home page when no home.php file ex...
PHP
index.php
AdrienPignet/kairos-pignet
mit
5,311
129
codeparrot/github-code
f54a494435c28f4681ba9682975acd391cf151989141558b63b5124b0ca21c4d
"use strict"; const _ = require("lodash"); const Msg = require("../../models/msg"); module.exports = function (irc, network) { const client = this; // The following saves the channel key based on channel mode instead of // extracting it from `/join #channel key`. This lets us not have to // temporarily store the...
JavaScript
src/plugins/irc-events/mode.js
metsjeesus/lounge
mit
2,863
136
codeparrot/github-code
a3f5b2bb3e32366f89136fcb73cf0336ec29de0bf5583140c393d088506a35ca
// *********************************************************************** // Assembly : ACBr.Net.NFSe // Author : Rodolfo Duarte // Created : 05-15-2017 // // Last Modified By : RFTD // Last Modified On : 07-11-2018 // *********************************************************************** ...
C#
src/ACBr.Net.NFSe.Shared/Providers/SaoPaulo/SaoPauloServiceClient.cs
rafd75/ACBr.Net.NFSe
mit
6,543
172
codeparrot/github-code
084c83f7be461f511d133a264e2ad16c737fef4ac557b8928dd823ad5b18592a
package RegoFormNrsUtils; require Exporter; @ISA = qw(Exporter); @EXPORT = qw(getNrsConfig getNrsOverrideFields checkHierarchicalPerms checkHierarchicalAdds); @EXPORT_OK = qw(getNrsConfig getNrsOverrideFields checkHierarchicalPerms checkHierarchicalAdds); use lib '.', '..'; use strict; use Defs; use Utils; ...
Perl
fifs/web/RegoFormBuilder/RegoFormNrsUtils.pm
facascante/slimerp
mit
4,541
144
codeparrot/github-code
574b49e0069ad6faef0ee58a47c646a9656d1cd650c50f6ebd1e44b13abbf57f
#include <stdio.h> #include "mfm_input.h" #include "mfm_general.h" #include "mfm_simple_menu.h" /** * Run simple menu * @param variants for selecting * @return */ int mfm_simple_menu(char** variants) { //Select input directory or from bookmarks int act = 0; int pos = 0; char buf[8]; int f; ...
C
mfm_simple_menu.c
aashlykov/mfm
mit
1,611
74
codeparrot/github-code
c07bc318981bf62f11d27caf32bde02325e884a4861253a1d2f2510aadc9c3a5
#!/usr/bin/env python # # Copyright 2010 Eric Entzel <eric@ubermac.net> # from google.appengine.api import mail from google.appengine.ext.webapp import template from google.appengine.api import memcache from datetime import datetime import os from_address = '"EventBot" <admin@myeventbot.com>' email_interval = 10 #...
Python
outgoing_mail.py
eentzel/myeventbot
mit
1,865
52
codeparrot/github-code
556320b87eddf964aa8659da094cd1f3fe25c8af1a195e77080bebdac5454bc3
<?php /** * This file is part of the DVSA MOT FeatureToggle package. * * @link http://gitlab.clb.npm/mot/featuretoggle */ namespace Dvsa\Mot\Frontend\SecurityCardModule\Support; use Interop\Container\ContainerInterface; use Zend\ServiceManager\Factory\FactoryInterface; use Zend\ServiceManager\ServiceLocatorInterf...
PHP
mot-web-frontend/module/SecurityCardModule/src/Support/TwoFaFeatureToggleViewHelperFactory.php
dvsa/mot
mit
919
32
codeparrot/github-code
3942021acf2e28170cad83c1e887d31998a6088dac8a492a9bc597f6c5f39ad1
#!/usr/local/bin/python # Code Fights Weak Numbers Problem def weakNumbers(n): def get_divisors(n): divs = [] for i in range(1, n + 1): count = 0 for d in range(1, i + 1): if i % d == 0: count += 1 divs.append(count) r...
Python
CodeFights/weakNumbers.py
HKuz/Test_Code
mit
1,030
45
codeparrot/github-code
42f5718cacf85f2bfb6e13c24257366bde15afb3f56126793a899a42e5599747
# # SDK Makefile for x86 Linux # # ############################################################################# # Developer configurable items ############################################################################# # the name of the mod binary (_i486.so is appended to the end) NAME=server # the location of the...
Makefile
linux_sdk/Makefile
TotallyMehis/ZM-Updated
mit
4,258
113
codeparrot/github-code
c4c18cae0b03e17faaeac509ae8d7962252b4850645f8bb78a18f273ecc06aa0
# -*- coding: utf-8 -*- ''' # Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. # # This file was generated and any changes will be overwritten. ''' from ..request_base import RequestBase from ..model.item import Ite...
Python
src/python2/request/item_request.py
OneDrive/onedrive-sdk-python
mit
3,549
88
codeparrot/github-code
64632a36ccb17b54b55315b10931050455a18073e6a61142bb7e8bcd3373d96a
import Utils from './utils'; function log(e) { console.log(e); } function logDesync(e) { log(`DESYNC : ${JSON.stringify(e)}`); } function error(res, err) { if (err.code) { Utils.reason(res, err.code, err.text); } else { log(err); Utils.reason(res, 500, 'Unknown error'); } } function trace(req,...
JavaScript
src/console.js
secretin/secretin-server
mit
667
39
codeparrot/github-code
861b837e6011c8928f92e813e039f3f9a6a2daeef0388b3bec24cecaeece37f7
package org.xcolab.service.content.domain.contentfolder; import org.jooq.DSLContext; import org.jooq.Record; import org.jooq.SelectQuery; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; import org.springframework.util.Assert; import org.xcolab.client.co...
Java
microservices/services/content-service/src/main/java/org/xcolab/service/content/domain/contentfolder/ContentFolderDaoImpl.java
CCI-MIT/XCoLab
mit
4,375
117
codeparrot/github-code
aa08c9d7292d492b81dc521ad70e63f6f3ce5cb123a762621f0a18a6c6389a60
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="de"> <head> <title>Uses of Interface org.eclipse.emf.cdo.admin.CDOAdminClientManager (CDO Model Repository Documentation)</title> <meta name="date" content=""> <link rel="stylesheet" type...
HTML
WASP-turtlebot-DSL/.metadata/.plugins/org.eclipse.pde.core/Eclipse Application/org.eclipse.osgi/142/0/.cp/javadoc/org/eclipse/emf/cdo/admin/class-use/CDOAdminClientManager.html
kribe48/wasp-mbse
mit
7,606
170
codeparrot/github-code
a39032eb4a7c66859dae52e55e7726817bcb88bfabca115c71db42f4bf9e6fe0
/* * NoteTag.java * * Created on October 4, 2002, 7:17 PM */ package gov.nist.sip.proxy.presenceserver.pidfparser; /** * * @author deruelle * @version 1.0 */ public class NoteTag { private String note; /** Creates new NoteTag */ public NoteTag() { note=null; ...
Java
code/sipproxy/gov/nist/sip/proxy/presenceserver/pidfparser/NoteTag.java
dsarlis/SoftEng
mit
659
40
codeparrot/github-code
f3acfe678541137495a96975084b885dbde08b1ef01a1608c3e52c62314f3e68
require 'rubygems' require 'json' require 'eventmachine' module KinectMachine @leds = [:led_off, :led_green, :led_red, :led_yellow, :led_blink_green, :led_blink_red_yellow, :led_off] @led = 0 class << self attr_accessor :leds, :led end def post_init puts "CONNECTED" EventMachine.next_tick{send...
Ruby
examples/led.rb
troystribling/kinect_machine
mit
1,277
59
codeparrot/github-code
88de61242856bcd92dae6ff60153a1346bba1d99ca54a09db328e45654fe0ddd
namespace Macabresoft.Macabre2D.UI.Common; using Macabresoft.Macabre2D.Framework; /// <summary> /// A model for a single tile of an <see cref="AutoTileSet" />. /// </summary> public class AutoTileIndexModel : NotifyPropertyChanged { private readonly AutoTileSet _tileSet; private byte? _spriteIndex; /// ...
C#
UI/Common/Models/Rendering/AutoTileIndexModel.cs
BrettStory/Macabre2D
mit
1,423
47
codeparrot/github-code
bcc812248fa3c4a784849ed8427ae35b40c400333d6206a1dd5c4d82370b9737
import { State } from "../state"; export default function (this: State, deviceName: string, command: string) { var cmd = command; var mainDevice = this.getMainDevice(deviceName); if (deviceName != mainDevice.name) { switch (deviceName.substring(mainDevice.name.length + 1)) { ...
TypeScript
packages/iscp/src/commands/exec.ts
npenin/domojs
mit
2,047
67
codeparrot/github-code
d4e6a53b9f9e98a4e36385050dfd0d84362d8d838e97a53edb511d2021ab412b
// // Constants.h // HeartRateWatchSample // // Created by Luis Castillo on 10/4/16. // Copyright © 2016 LC. All rights reserved. // #import <Foundation/Foundation.h> #pragma mark - messenger //Keys typedef enum {monitor_key, monitorKey_Command, monitorKey_Response, monitorKey_Error} hrModelKeys; #define hrMode...
C
watchOS3/HeartRateWatchSample/HeartRateWatchSample/HeartRate Model/HeartRateModelConstants.h
LuAndreCast/iOS_WatchProjects
mit
1,381
41
codeparrot/github-code
b18b7f9ca92f9995fa6e5e9ca1e2df02c342b3fa6133e68469451c259474549b
// Copyright 2012-2015 Oliver Eilhard. All rights reserved. // Use of this source code is governed by a MIT-license. // See http://olivere.mit-license.org/license.txt for details. package elastic import ( "encoding/json" "fmt" "log" "net/url" "strings" "github.com/sevein/guggmeta/Godeps/_workspace/src/github.c...
GO
Godeps/_workspace/src/github.com/olivere/elastic/index_get.go
sevein/guggmeta
mit
5,007
187
codeparrot/github-code
2f45e055c34cef9e7b42f3ea8b022bb9ccb7c923515bd75da8f682334f64781c
<?php namespace Atom\AuthenticationBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * AccessKey */ class AccessKey { /** * @var integer */ private $id; /** * @var string */ private $public_key; /** * @var string */ private $private_key; /** * @v...
PHP
Entity/AccessKey.php
frodosghost/AtomAuthenticationBundle
mit
2,806
187
codeparrot/github-code
9b3406b13f8f51ca24f950c9a3e27ff53f5024d96b8f21aa270f612928469c1d
import json import sys from controller.framework.ControllerModule import ControllerModule import controller.framework.ipoplib as ipoplib class TincanDispatcher(ControllerModule): def __init__(self, CFxHandle, paramDict): super(TincanDispatcher, self).__init__() self.CFxHandle = CFxHandle ...
Python
controller/modules/svpn/TincanDispatcher.py
kyuhojeong/controllers
mit
6,332
145
codeparrot/github-code
17957ef6e6f3c58f02de7881f6e2886b3158691aa26c8b62608b3ff7eeb3be1d
package org.blendee.assist; import java.util.function.Function; import org.blendee.orm.DataObject; import org.blendee.sql.Relationship; import org.blendee.sql.RuntimeId; /** * 一対多検索の内部の振る舞いを定義したインターフェイスです。<br> * これらのメソッドは、直接使用しないでください。 * @author 千葉 哲嗣 */ public class OneToManyBehavior { private final OneToMany...
Java
src/main/java/org/blendee/assist/OneToManyBehavior.java
blendee/blendee
mit
1,453
74
codeparrot/github-code
fc7f6fcb1a4f36ed743ba60ae263f4113911c2706b39ab377bcc83e037baa10f
var fs = require("fs-extra"), path = require("path"), cleanAddress = require("../clean_address"); module.exports = function(loader, buildLoader, options){ return new Configuration(loader, buildLoader, options); }; function Configuration(loader, buildLoader, options){ this.loader = loader; this.buildLoader = bu...
JavaScript
lib/configuration/make.js
mcanthony/steal-tools
mit
1,306
66
codeparrot/github-code
457376e9fb2a59c361016c8da84ce22a1eda6fb5d185b3d982e0b2beb6cc6a30
var Engine = require('./view'); var util = require('./util'); var emitter = require('events').EventEmitter; exports = module.exports = Base; function Base() { // empty class } Base.prototype = { extend: function(props) { return util.object.extendThis(this, props); }, get: func...
JavaScript
lib/base.js
janbiasi/supernova
mit
883
40
codeparrot/github-code
dc1a47986d0774ec1f5bb25e08d5a03f93ad3effdc6c688012bb8a8740db0062
#include <bits/stdc++.h> using namespace std; const int MOD = 1000000007; // 998244353; // 998244853; template <typename T> struct modular { constexpr modular() : val(0){} constexpr modular(const modular<T>& _m) : val(_m.val) {} template <typename U> constexpr modular(const U& _r = U()) { val = -...
C++
atcoder/arc066c.cpp
sogapalag/problems
mit
5,281
94
codeparrot/github-code
1d3c87ed543612fd587f7a359eb74e7a762ef98c9d1edb3cfa344f30a7ede52a
_.extend(Template.loginForm, { /** * event mapping */ events: { 'submit #login-form': function(event, element) { event.preventDefault(); Template.loginForm.login(element); }, 'click a.google' : function(){ var self = this; ...
JavaScript
client/module/account/view/LoginView.js
eichie/area51
mit
1,925
81
codeparrot/github-code
c02bb80af4f836aada2eefe839f2ab87076b7611750b8593fee1eec21c6809b7
# -*- encoding : utf-8 -*- class UserExtend < ActiveRecord::Base belongs_to :user serialize :settings, Hash DEFAULT_SETTINGS = { add_bread_crumb: 'true', add_related_cat: 'true', show_shop_title: 'false', show_item_title: 'false', show_parent_cat: 'false', logoff_taobao: 'false' }.freez...
Ruby
app/models/user_extend.rb
mangege/inav
mit
1,832
69
codeparrot/github-code
58c03bff2e8993c48cd2e236c4d83422d691d93e1f9e8507f77acc0ff2e4ecba
package endpoints package akkahttp.client import endpoints.algebra.{Decoder, Encoder, MuxRequest} import scala.concurrent.Future trait MuxEndpoints extends algebra.MuxEndpoints { self: Endpoints => class MuxEndpoint[Req <: algebra.MuxRequest, Resp, Transport]( request: Request[Transport], response: Respo...
Scala
akka-http/client/src/main/scala/endpoints/akkahttp/client/MuxEndpoints.scala
Krever/endpoints
mit
976
37
codeparrot/github-code
c62011d9d37984ba2c320e88a4327ff5bb9d484655898e875a84c9293d356661
#pragma once #include "oxygine_include.h" #include "vertex.h" namespace oxygine { class VertexDeclaration { public: VertexDeclaration():bformat(0), numElements(0), size(0){} bvertex_format bformat; int size; int numElements; }; template <class T> class VertexDeclarations { public: const T *get(bver...
C
oxygine/src/core/VertexDeclaration.h
unitpoint/oxygine-objectscript
mit
609
40
codeparrot/github-code
cbe01f9550b5052a3961b4905f0c9d570a722384fed2ee43cfe7c456ad24d620
""" EXAMPLE USAGE: opts = Opts(environ, opt('q', default=''), opt('pages', default=2), opt('split', default=0), opt('simple', default=0), opt('max_topics', default=40), opt('ncol', default=3), opt('save', default=False), opt('load', default=False), opt('smoothing...
Python
recipes/Python/576784_WSGI_optiparsing__type/recipe-576784.py
ActiveState/code
mit
2,550
89
codeparrot/github-code
0d9c4c9c546142964cb75438e065906b8c88c5f3c800a29c3885ffc3887a9ad0
import { Rule } from './rules/rule'; import { CostRule } from './rules/CostRule'; import { InverseCostRule } from './rules/InverseCostRule'; import { Group } from './group'; import { Player } from './player'; import { PointsContainer } from './PointsContainer'; export abstract class Ruleable { public Rules: Array<...
TypeScript
src/model/ruleable.ts
alexisbssn/SkillTree
mit
3,064
107
codeparrot/github-code
91e87d9873aeda6494ab598ac58022988afaaac408bf5cc43be85f5b762cdb24
var test = require('blue-tape'); var poll = require('../utils').poll; test('works in normal, delayed case', function(t) { var resolvesAt = Date.now() + 50; return poll(function() { if (Date.now() >= resolvesAt) { return 'RESOLVED'; } }, 100000000, 10).then(function(result) { t.equal(result, '...
JavaScript
test/poller.js
allain/servicify-http
mit
1,289
51
codeparrot/github-code
12689590cb58e9c8426dcc725f796d939e5692b0b53de4c8fdc4a8c21cbd3323
/* * Copyright (C) 2015-2017 Pavel Dolgov * * See the LICENSE file for terms of use. */ #include <bits/stdc++.h> typedef std::vector<int> Ints; Ints z_function(const std::string& s) { int n = s.size(); Ints z(n, 0); z[0] = n; for (int i = 1, l = 0, r = 0; i < n; i++) { if (i <= r) { ...
C++
mshp/algo/strings/z_func.cpp
zer0main/problems
mit
769
39
codeparrot/github-code
664902e8dfe87c851d850c57204faa6ef97a9aca8bfa83a63dd4b98f04cde2e7
'use strict'; const os = require('os'); const PQueue = require('p-queue'); const clientEvents = require('../constants/client-events'); const {RUNNING} = require('../../constants/test-statuses'); const {getSuitePath} = require('../../plugin-utils').getHermioneUtils(); const createWorkers = require('../../workers/create...
JavaScript
lib/gui/tool-runner/report-subscriber.js
gemini-testing/html-reporter
mit
4,325
118
codeparrot/github-code
0c65d946c4c53a34584af6937fa6431b4d5679046a227d283072660cca841113
package com.ain.engine.domain.csos; import lombok.Getter; import lombok.Setter; import lombok.ToString; import javax.persistence.*; import java.math.BigDecimal; /** * Created by Young Gyu Park on 1/10/2015. */ @Entity @Table(name="CUSTOMER") @Getter @Setter @ToString public class Customer { @Id @Generated...
Java
src/main/java/com/ain/engine/domain/csos/Customer.java
ygpark2/spring-boot-template
mit
686
34
codeparrot/github-code
48249ea4d33dad17e50c60e7b1cee56ade196b06fe43eb4da0a66e3e2b984c1b
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ByteSharp.Entities.Posts; using ByteSharp.Entities.Star; using ByteSharp.Interfaces; using ByteSharp.Tools; using Newtonsoft.Json; namespace ByteSharp.Managers { public class StarManager : ISt...
C#
ByteSharp/Managers/StarManager.cs
drasticactions/ByteSharp
mit
1,410
41
codeparrot/github-code
b8aadafb08f91b299dfd4dd11139ae464debe3b53f669922a7c67ebeefe31dad
using System; using System.Management; namespace Net.Tools { public class ComputerInfo { public string CpuId; public string MacAddress; public string DiskId; public string IpAddress; public string LoginUserName; public string SystemType; public string T...
C#
CSharpExample/Net.Tools/ComputerInfo.cs
ifairy/CSharpExample
mit
4,509
157
codeparrot/github-code
25250a04254361478b1fe1596fc9b067e4d422f933985684e48667d0a199336d
// Domain Public by Eric Wendelin http://eriwen.com/ (2008) // Luke Smith http://lucassmith.name/ (2008) // Loic Dachary <loic@dachary.org> (2008) // Johan Euphrosine <proppy@aminche.com> (2008) // Oyvind Sean Kinsey http://kinsey.no/blog (2010) // ...
JavaScript
public/stacktrace.js
tobico/gusto
mit
17,140
446
codeparrot/github-code
0663f5d05a84bb66b6528eb82efcb8c17baa0d25c298aefb72560a9b6bb51f2d
import * as t from "../../types"; import { types as tt } from "horchata/lib/tokenizer/types"; import { Token } from "horchata/lib/tokenizer"; import { wb, sp, fsp, tab, nl } from "../token/types"; /** * Prints WithStatement, prints object and body. */ export function WithStatement(node) { this.keyword("with"); ...
JavaScript
packages/tacoscript/src/gen-taco/generators/statements.js
forivall-old-repos/tacoscript-prehistory
mit
6,372
288
codeparrot/github-code
b3f6eb222860b74cbcc56e67059bd553db0aaa8a5816a0b73f50a45e63efd9a7
package scuff.web import org.junit._, Assert._ class RangeHeaderTests { @Test def simple(): Unit = { val Some(header) = RangeHeader("bytes=0-99") val Seq(r1) = header.ranges assertEquals("bytes", header.unit) assertEquals(Some(100L), r1.length) assertEquals(0L, r1.start) assertEquals(Some...
Scala
src/test/scala/scuff/web/RangeHeaderTests.scala
nilskp/scuff
mit
1,809
66
codeparrot/github-code
6985289075e931fd31277548af674dfd3259fb44b053b201f1a95046719f35f1
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="ViewModelWrapperService.cs" company="Catel development team"> // Copyright (c) 2008 - 2015 Catel development team. All rights reserved. // </copyright> // ----------------------...
C#
src/Catel.MVVM/Catel.MVVM.Shared/Services/ViewModelWrapperService.cs
blebougge/Catel
mit
2,298
55
codeparrot/github-code
fd15a10509c6e163f4f1f67c8f30570b1bbf09b1688ba077ada1a92b710ca1cc
package com.yzc.lovehuali; import android.content.Intent; import android.graphics.Color; import android.os.Build; import android.os.Bundle; import android.os.Handler; import android.support.v4.view.ViewPager; import android.support.v4.widget.DrawerLayout; import android.support.v7.app.ActionBarActivity; import android...
Java
app/src/main/java/com/yzc/lovehuali/MainActivity.java
Zhangsongsong/LoveHuaLi-1
mit
12,830
357
codeparrot/github-code
a9b9938f3fcc608201985a7dd033bf6134479296a69c0bf0a2247e1f2df6d621
package main import ( "net" "net/url" "path/filepath" "github.com/cerana/cerana/acomm" "github.com/cerana/cerana/pkg/errors" "github.com/cerana/cerana/providers/clusterconf" "github.com/cerana/cerana/providers/zfs" "github.com/cerana/cerana/tick" ) func datasetHeartbeats(config tick.Configer, tracker *acomm....
GO
cmd/dataset-heartbeat/dataset.go
cerana/cerana
mit
3,954
147
codeparrot/github-code
d9f472dd25552ed969c2f4fc879bde5eab38a46db88cc1ecf7b6951c64d02423
<?php class CharacteristicBrave implements ICharacteristic { public static function get_id() { return "valiente"; } public function get_bonusses() { return array( 'Tus ataques hacen mas daño', 'Tu defensa aumenta', 'Tus puntos de vida aumentan' ); } public function get_descrip...
PHP
application/models/characteristicbrave.php
Ruk33/AresLands
mit
550
32
codeparrot/github-code
33c3596abe6f2af101080ea4b39559493cf3b6b092e6af1fade822fe7b44b191
package com.nulabinc.backlog.migration.service import com.google.inject.Guice import com.google.inject.util.Modules import com.nulabinc.backlog.migration.common.client.params.ImportUpdateIssueParams import com.nulabinc.backlog.migration.common.conf.BacklogApiConfiguration import com.nulabinc.backlog.migration.common.d...
Scala
core/src/test/scala/com/nulabinc/backlog/migration/service/CommentServiceImplSpec.scala
nulab/backlog-migration-common
mit
5,713
143
codeparrot/github-code
9375c0908e72695203e915b453821269a2fc8d895eee95ecb88e57bef883e279
<?php /** * This file is part of the easybib-codesniffs package. * * (c) EasyBib Copyright 2014 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * Class EasyBib_Sniffs_Commenting_CommentPublicApiSniff */ class EasyBib_Sniffs_...
PHP
CodeSniffer/Standards/EasyBib/Sniffs/Commenting/CommentPublicApiSniff.php
easybiblabs/easybib-codesniffer
mit
2,057
71
codeparrot/github-code
bc4cdb600f8b11e6fdb3fa0b06259967c4e942958b5f1e41696a02f080db6baf
import React, { useState } from 'react' import * as EditorMode from '../../constants/EditorMode' import { Menu, MenuItem, Fab } from '@mui/material' import { SwapVert } from '@mui/icons-material' const styles = { btn: { position: 'fixed', right:(theme) => theme.spacing(3), bottom:(theme) => theme.spacing...
JavaScript
src/renderer/components/editor/EditorSwich.js
joostory/tistory-editor
mit
1,519
58
codeparrot/github-code
bd7977cb424941cc80e067318e17260a3d918809b93ed040d37b9cbbd3779f22
using System; using System.Threading.Tasks; namespace TinyLittleMvvm { /// <summary> /// Base class for dialog view models without a specific result. /// </summary> public abstract class DialogViewModel : ValidationPropertyChangedBase, IDialogViewModel { private readonly TaskCompletionSource<i...
C#
src/TinyLittleMvvm/DialogViewModel.cs
thoemmi/TinyLittleMvvm
mit
2,263
70
codeparrot/github-code
b6d5bbf911d7d99c0fb55e5ac70d0b3fe62b0213ffc41beff11f9b8c2541f20d
<?php /** * Created by PhpStorm. * User: ghujk * Date: 2016/5/2 * Time: 21:09 */ ?> <?php echo form_open_multipart("AdminVoteController/saveConfig",array("class"=>"form-horizontal","id"=>"config-form"))?> <?php foreach ($properties as $p):?> <div class="form-group"> <label class="col-sm-2 control-l...
PHP
application/views/admin_vote_config.php
ghujki/wxvote
mit
1,841
43
codeparrot/github-code
a6108311db1b7ca5b9b60c7cbc654ce3c8512bd72d16c2c900ad4f71057a9960
package controllers import java.net.URLEncoder import java.nio.charset.StandardCharsets import common.ref.MtrConfigRef import common.util.DiscordApiUtil import javax.inject.Inject import play.api.libs.json.Json import play.api.libs.json.Reads._ import play.api.mvc._ import util.AuthUtil import scala.concurrent.{Exec...
Scala
app/controllers/Auth.scala
Cobbleopolis/MonsterTruckBot
mit
4,483
79
codeparrot/github-code
a4c5e02bd6727fd09e12c33738b184be71ee14d6109cdd85eafdd30cbb833394
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the 'Software'), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
JavaScript
showcase/data/mini-data-examples.js
Apercu/react-vis
mit
1,851
62
codeparrot/github-code
d3544542c1b299885808ab22b999090a18bea7bedbaa4cbf7e603bc2abd05c67
using Foundation; using UIKit; namespace HapticFeedback { // The UIApplicationDelegate for the application. This class is responsible for launching the // User Interface of the application, as well as listening (and optionally responding) to application events from iOS. [Register("AppDelegate")] public class AppD...
C#
ios10/HapticFeedback/HapticFeedback/AppDelegate.cs
xamarin/monotouch-samples
mit
2,138
60
codeparrot/github-code
53196ea3df2efe4584d58e79ce30fdacf1107e8e8795a4788c65d2eaff2700c2
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "walletdb.h" #include "wallet.h" #include <boost/version.hpp> #include <b...
C++
src/walletdb.cpp
classicsxdx/troutcoin
mit
23,829
720
codeparrot/github-code
5dd1715d4100f3e26d56dc29cea59a2c7f9ee2fc06e63e7b6eb2b9416f861d19
/* * Copyright 2001-2018 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/lice...
C
Boss2D/addon/openssl-1.1.1a_for_boss/include/openssl/ossl_typ.h
koobonil/Boss2D
mit
6,265
197
codeparrot/github-code
0c87b16930fedeba97fe52b66729ddd82fe51e5bc2eca91595347e76ff2fb207
'use strict' angular.module('Index', [ 'ngRoute', 'Services' ]) .config([ '$routeProvider', function ($route) { $route .when('/login', { controller: 'Main', templateUrl: 'login.html' }) .when('/forget', { controller: 'Forget', templateUrl: 'forget.html' }) .when('/register', { controller: 'Regi...
JavaScript
assets/js/core/main.js
topics-im/topics
mit
2,290
63
codeparrot/github-code
d5fc04b6181bfd7cd5c899b3627792b951fc4331e8aff0ba1aa403960cebe263
import numpy as np import uncertainties.unumpy as unp from uncertainties import ufloat import math from scipy.optimize import curve_fit import matplotlib.pyplot as plt from pint import UnitRegistry u = UnitRegistry() Q_ = u.Quantity #umrechnung einheiten mit var.to('unit') # Einheiten für pint:dimensionless, meter, s...
Python
PHY341/V_302_Brueckenschaltung/Messdaten/auswertung.py
stefangri/s_s_productions
mit
10,599
351
codeparrot/github-code
e8a2155d7fc195c634c3feff1214ee0f9ee77a14162e58e17c55ee2dba96ce91
<div class="pageFormListing"> <h2 class="sub-header"><?php echo $page_title; ?> <button type="button" class="btn btn-primary navbar-right" onclick="window.open('<?php echo site_url('module/tips/edit/'.$id) ?>','_self');"><?=lang("button_back")?></button> <?php if ($error){ ?> Error: <?php echo $error; ?> <?php } ?> ...
PHP
dev/cms/application/views/tips/version.php
superkon/web_template
mit
2,111
87
codeparrot/github-code
0cfc3d6f72e3beeabeca792c71c64c2e9f16e26ccefafbaf857336abc74b97c0
module Http.Response ( Response (..) , response ) where import Text.ParserCombinators.Parsec hiding (token) data Response = Response { statusLine :: StatusLine , headers :: [(String,String)] , body :: String } deriving (Show) data StatusLine = StatusLine { code :: Int , reasonPhras...
Haskell
src/Http/Response.hs
ndreynolds/hsURL
mit
2,472
85
codeparrot/github-code
a577db95011bb64aa44449623560159f36c5e8ae6d9cc998ac467903badae64f
using System; using System.Diagnostics; using System.Reactive.Linq; using System.Runtime.CompilerServices; using System.Threading.Tasks; using Obvs.Types; namespace Obvs.Logging { public class ServiceEndpointClientLoggingProxy : ServiceEndpointClientLoggingProxy<IMessage, ICommand, IEvent, IRequest, IResponse>, I...
C#
Obvs/Logging/ServiceEndpointClientLoggingProxy.cs
inter8ection/Obvs
mit
4,868
131
codeparrot/github-code