identifier stringlengths 42 383 | collection stringclasses 1
value | open_type stringclasses 1
value | license stringlengths 0 1.81k | date float64 1.99k 2.02k ⌀ | title stringlengths 0 100 | creator stringlengths 1 39 | language stringclasses 157
values | language_type stringclasses 2
values | word_count int64 1 20k | token_count int64 4 1.32M | text stringlengths 5 1.53M | __index_level_0__ int64 0 57.5k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/luisdvalle/PayUsersApi_DemoExercise/blob/master/UsersApi/Storage/Repository.cs | Github Open Source | Open Source | Apache-2.0 | null | PayUsersApi_DemoExercise | luisdvalle | C# | Code | 195 | 698 | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Table;
using UsersApi.Util;
namespace UsersApi.Storage
{
public class Repository : IRepository
{
private readonl... | 24,083 |
https://github.com/papamarkou/eeyore/blob/master/eeyore/stats/mc_se_from_cov.py | Github Open Source | Open Source | MIT | 2,021 | eeyore | papamarkou | Python | Code | 6 | 29 | import torch
def mc_se_from_cov(x):
return torch.diag(x).sqrt()
| 8,379 |
https://github.com/jarradraumati/open-scd/blob/master/test/unit/editors/subscription/elements/__snapshots__/goose-message.test.snap.js | Github Open Source | Open Source | Apache-2.0 | null | open-scd | jarradraumati | JavaScript | Code | 41 | 142 | /* @web/test-runner snapshot v1 */
export const snapshots = {};
snapshots["goose-message looks like the latest snapshot"] =
`<mwc-list-item
aria-disabled="false"
graphic="large"
mwc-list-item=""
tabindex="-1"
>
<span>
GCB
</span>
<mwc-icon slot="graphic">
</mwc-icon>
</mwc-list-item>
`;
/* end sna... | 11,275 |
https://github.com/snapx-team/xkanban/blob/master/src/Actions/Columns/DeleteColumnAction.php | Github Open Source | Open Source | MIT | null | xkanban | snapx-team | PHP | Code | 110 | 371 | <?php
namespace Xguard\LaravelKanban\Actions\Columns;
use Lorisleiva\Actions\Action;
use Xguard\LaravelKanban\Models\Log;
use Illuminate\Support\Facades\Auth;
use Xguard\LaravelKanban\Repositories\ColumnsRepository;
class DeleteColumnAction extends Action
{
/**
* Get the validation rules that apply to the a... | 15,534 |
https://github.com/Bpirett/FundamentosArquitetura/blob/master/Exercicios-SOLID/SOLID/3 - LSP/LSP.Solucao/Paralelogramo.cs | Github Open Source | Open Source | MIT | 2,021 | FundamentosArquitetura | Bpirett | C# | Code | 52 | 118 | namespace SOLID.LSP.Solucao
{
public abstract class Paralelogramo
{
protected Paralelogramo(int altura, int largura)
{
Altura = altura;
Largura = largura;
}
public double Altura { get; private set; }
public double Largura { get; private set ; }
... | 16,324 |
https://github.com/TempleTickets/appcodes/blob/master/node_modules/smithy/index.js | Github Open Source | Open Source | MIT | 2,017 | appcodes | TempleTickets | JavaScript | Code | 98 | 266 | 'use strict';
//
// Define set of pre-processors to expose.
//
var processors = {
//styl: 'stylus',
stylus: 'stylus',
less: 'less',
sass: 'sass',
coffee: 'coffeescript',
coffeescript: 'coffeescript',
jsx: 'reactjsx',
css: 'rework'
};
//
// Generate lazy requiring statements to keep the memory footprin... | 30,918 |
https://github.com/MathieuLamiot/ntds_2018/blob/master/milestones/getBills.py | Github Open Source | Open Source | MIT | 2,019 | ntds_2018 | MathieuLamiot | Python | Code | 23 | 83 |
from getFromAPI import member_id, bills_cosponsored
senator = "Lamar Alexander"
member_id = member_id(*senator.split())
bills = bills_cosponsored(member_id)
print(f"Last {len(bills)} bills sponsored by {senator} : {bills}")
| 38,661 |
https://github.com/YoheiKakiuchi/choreonoid/blob/master/src/Body/JointTraverse.cpp | Github Open Source | Open Source | MIT | null | choreonoid | YoheiKakiuchi | C++ | Code | 116 | 522 | #include "JointTraverse.h"
#include "Body.h"
#include <cnoid/CloneMap>
using namespace cnoid;
JointTraverse::JointTraverse()
{
}
JointTraverse::JointTraverse(Body* body)
: linkTraverse_(body->linkTraverse())
{
joints_.reserve(body->numJoints());
for(auto& joint : body->joints()){
joints_.push_b... | 544 |
https://github.com/igormorgado/litcorpt/blob/master/tests/test_field_update.py | Github Open Source | Open Source | MIT | null | litcorpt | igormorgado | Python | Code | 78 | 250 | #!/usr/bin/env python
"""Test code to update a field and write book back to storage"""
import litcorpt
corpus_db = litcorpt.corpus_load()
query = litcorpt.Query()
search = (query.index == 'g39107')
creator = { 'role': 'author', 'name': 'Felix de Avellar Brotero'}
result = corpus_db.update({'creator': [creator]}, se... | 32,846 |
https://github.com/tkddlf4209/iotivity2.0.1/blob/master/resource/docs/cpp-doc/docs/html/struct_o_c_1_1_display_num_context.js | Github Open Source | Open Source | Apache-2.0 | null | iotivity2.0.1 | tkddlf4209 | JavaScript | Code | 15 | 118 | var struct_o_c_1_1_display_num_context =
[
[ "DisplayNumContext", "struct_o_c_1_1_display_num_context.html#ac0868275b2bc4abb4e964c0129028031", null ],
[ "callback", "struct_o_c_1_1_display_num_context.html#abbb5f4238e2363d29ca7464b53935a65", null ]
]; | 42,656 |
https://github.com/tryweirdier/accounts-graphql/blob/master/packages/graphql-api/src/graphql/schema.d.ts | Github Open Source | Open Source | MIT | 2,018 | accounts-graphql | tryweirdier | TypeScript | Code | 374 | 1,081 | // tslint:disable
// graphql typescript definitions
declare namespace GQL {
interface IGraphQLResponseRoot {
data?: IMutation | IQuery;
errors?: Array<IGraphQLResponseError>;
}
interface IGraphQLResponseError {
/** Required for all errors */
message: string;
locations?: Array<IGraphQLRespons... | 43,033 |
https://github.com/ccabrales/espn-fantasy-stats/blob/master/client/src/routes/PageNotFound/PageNotFound.js | Github Open Source | Open Source | MIT | null | espn-fantasy-stats | ccabrales | JavaScript | Code | 35 | 99 | import React from 'react';
import { Header, Icon } from 'semantic-ui-react';
const PageNotFound = () => (
<Header size='huge' textAlign='center' icon>
<Icon name='warning circle' size='huge' color='red' />
<Header.Content>Page Not Found</Header.Content>
</Header>
);
export default PageNotFound;
| 23,403 |
https://github.com/yanaderevianko726/CamDocScann-Android/blob/master/app/src/main/java/com/camdocscanner/pdfscanner/utils/SharedPrefManager.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | CamDocScann-Android | yanaderevianko726 | Java | Code | 68 | 274 | package com.camdocscanner.pdfscanner.utils;
import android.content.Context;
import android.content.SharedPreferences;
import static android.content.Context.MODE_PRIVATE;
public class SharedPrefManager {
private static SharedPreferences sharedPref;
private static String package_name = "";
private static... | 10,833 |
https://github.com/songfu1983/smack/blob/master/test/c/float/float_op_fail.c | Github Open Source | Open Source | MIT | 2,021 | smack | songfu1983 | C | Code | 39 | 114 | #include "smack.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
// @expect error
int main(void) {
float a;
float b;
float c;
a = 1.5f;
b = 2.25f;
c = a * (b / a);
assert(c == 2.0f);
return 0;
}
| 6,543 |
https://github.com/xintin/timemory-tutorials/blob/master/apps/lulesh/lulesh-util.cc | Github Open Source | Open Source | MIT | 2,020 | timemory-tutorials | xintin | C++ | Code | 883 | 2,529 | #include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if USE_MPI
# include <mpi.h>
#endif
#include "lulesh.h"
/* Helper function for converting strings to ints, with error checking */
int
StrToInt(const char* token, int* retVal)
{
const char* c;
char* endptr;
const int d... | 2,761 |
https://github.com/huanghe1993/AutoSend-Article/blob/master/src/main/java/com/github/codedrinker/util/TestGit2.java | Github Open Source | Open Source | MIT | 2,020 | AutoSend-Article | huanghe1993 | Java | Code | 26 | 80 | package com.github.codedrinker.util;
/**
* @Author huanghe
* @Date 2019/8/1 22:51
* @Description
*/
public class TestGit2 {
public static void main(String[] args) {
System.out.println("hello");
}
}
| 47,731 |
https://github.com/spurmoon/Firmware-Doxygen/blob/master/navtreeindex65.js | Github Open Source | Open Source | BSD-3-Clause | 2,018 | Firmware-Doxygen | spurmoon | JavaScript | Code | 255 | 12,530 | var NAVTREEINDEX65 =
{
"d8/d05/px4io_8h.html#a2556f6b9e2328fdd276e14cc1c44ed56":[16,0,1,3,23,9,44],
"d8/d05/px4io_8h.html#a264e5ddb87b71b8141f0afa94c904d4c":[16,0,1,3,23,9,23],
"d8/d05/px4io_8h.html#a2975a63469bac0f5a56699edb070d7bf":[16,0,1,3,23,9,77],
"d8/d05/px4io_8h.html#a297aac71f46157299f36ba68ad8d5698":[16,0,1,3... | 38,096 |
https://github.com/vergilw/imdota/blob/master/imdota_django/reasoning/serializers.py | Github Open Source | Open Source | MIT | null | imdota | vergilw | Python | Code | 138 | 494 |
from reasoning.models import User, Play, Platform, Studio, Author, Character, Tag
from rest_framework import serializers
class UserSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = User
fields = ('id', 'username', 'email', 'gender')
class CharacterSerializer(serializers.Hy... | 9,374 |
https://github.com/rcorrear/ceph-csi/blob/master/.gitignore | Github Open Source | Open Source | Apache-2.0 | 2,019 | ceph-csi | rcorrear | Ignore List | Code | 15 | 47 | # build directory
/_output*/
# docker build
/deploy/cephcsi/image/cephcsi
# git merge files
*.orig
*.patch
*.rej
| 14,076 |
https://github.com/benkoo/XLP_ServiceMesh/blob/master/Components/mediawiki/wiki_data/extensions/ContentTranslation/modules/widgets/translator/ext.cx.translator.js | Github Open Source | Open Source | MIT | null | XLP_ServiceMesh | benkoo | JavaScript | Code | 535 | 1,603 | /*!
* ContentTranslation extension - Translator Widget.
*
* @copyright See AUTHORS.txt
* @license GPL-2.0-or-later
*/
( function ( $, mw ) {
'use strict';
var statsRequest;
mw.cx.widgets = mw.cx.widgets || {};
/**
* CXTranslator constructor
*
* @param {string} translatorName Username of the translator ... | 47,544 |
https://github.com/EitanGayor/augur/blob/master/tests-unit/input/benchmark-node-wos/node_modules/node-wos/src/index.js | Github Open Source | Open Source | UPL-1.0 | 2,022 | augur | EitanGayor | JavaScript | Code | 500 | 1,274 | import os from 'os';
import { execSync } from 'child_process';
/**
* @class NodeWOS
* NodeJS utility for OS information
*/
class NodeWOS {
constructor() {
let platform, arch;
switch (process.platform) {
case 'win32':
platform = 'windows';
break;
case 'linux':
platform =... | 45,024 |
https://github.com/WUST-FOG/gnlse-python/blob/master/examples/test_nonlinearity.py | Github Open Source | Open Source | MIT | 2,022 | gnlse-python | WUST-FOG | Python | Code | 360 | 1,101 | """
Example: Example of soliton fission for a
central wavelength of 835 nm in a 15 centimeter long fiber.
Comparision of results obtained with two simulation input:
1. dispersion calculated from Taylor expansion,
and gamma value procided only for pump wavelength
2. dispersion calculated from Taylor expansion,
an... | 13,469 |
https://github.com/wang-shun/flute/blob/master/flute-agent/src/test/java/com/aitusoftware/flute/agent/annotation/MetricNameSubstitutionTest.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | flute | wang-shun | Java | Code | 211 | 735 | /*
* Copyright 2016 - 2017 Aitu Software Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 31,477 |
https://github.com/InMobi/oozie/blob/master/core/src/test/java/org/apache/oozie/action/hadoop/TestLauncher.java | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-jdom, CDDL-1.0, Apache-2.0 | 2,018 | oozie | InMobi | Java | Code | 1,140 | 4,925 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 17,533 |
https://github.com/heidiklumpe/bootcamp/blob/master/l34.py | Github Open Source | Open Source | CC-BY-4.0, MIT | 2,016 | bootcamp | heidiklumpe | Python | Code | 165 | 543 | # Lesson 34
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
# Pretty plot settings
import seaborn as sns
rc = {'lines.linewidth': 4, 'axes.labelsize': 25,
'axes.titlesize': 30, 'lines.markersize': 200,
'legend.fontsize': 16, 'xtick.labelsize': 16,
'ytick.labelsize': 16}
... | 211 |
https://github.com/cbusch-pivotal/Cloud-Native-Workshop/blob/master/cf-spring-trader/docs/lab_pushall.adoc | Github Open Source | Open Source | Apache-2.0 | 2,016 | Cloud-Native-Workshop | cbusch-pivotal | AsciiDoc | Code | 198 | 544 | # Deploying the Applications
In this exercise, we will be deploying all the applications in the project to the cloud.
### Perform the Gradle build
. Make sure you are in the `$COURSE_HOME/cf-spring-trader` directory.
. Kick off the Gradle build
+
----
$ ./gradlew clean assemble
----
### Push the applications to Cl... | 36,085 |
https://github.com/nicolascancino/DataflowTemplate/blob/master/src/main/java/com/mercari/solution/module/sink/TextSink.java | Github Open Source | Open Source | MIT | 2,021 | DataflowTemplate | nicolascancino | Java | Code | 1,205 | 4,450 | package com.mercari.solution.module.sink;
import com.amazonaws.services.s3.AmazonS3;
import com.google.api.services.storage.Storage;
import com.google.cloud.spanner.Struct;
import com.google.datastore.v1.Entity;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import com.mercari.solution.config.SinkConf... | 12,091 |
https://github.com/kalaiarasan33/aws-sdk-go-v2/blob/master/service/sagemaker/api_op_ListMonitoringSchedules.go | Github Open Source | Open Source | Apache-2.0 | 2,020 | aws-sdk-go-v2 | kalaiarasan33 | Go | Code | 753 | 2,020 | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package sagemaker
import (
"context"
"time"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/internal/awsutil"
)
type ListMonitoringSchedulesInput struct {
_ struct{} `type:"structure"`
// A filter that returns only monitori... | 16,975 |
https://github.com/yi-tuan/hooks/blob/master/packages/rc-hooks/date/src/hooks/useWeekView.ts | Github Open Source | Open Source | Apache-2.0 | 2,020 | hooks | yi-tuan | TypeScript | Code | 200 | 673 | /**
* @file useWeekPanel 获取周面板
*/
import {useCallback, useEffect} from 'react';
import {IWeekPanelViewData, IWeekPanelViewItem, PanelType} from '@co-hooks/date';
import {useShallowState} from '@rc-hooks/use';
import {usePanel} from './usePanel';
export interface IWeekPanelView extends IWeekPanelViewData {
setCu... | 31,924 |
https://github.com/Cloudandcompass/grapesjs-component-countdown/blob/master/src/blocks.js | Github Open Source | Open Source | BSD-3-Clause | 2,022 | grapesjs-component-countdown | Cloudandcompass | JavaScript | Code | 92 | 334 | import {
countdownRef
} from './consts';
export default function(editor, opt = {}) {
const c = opt;
const bm = editor.BlockManager;
const pfx = c.countdownClsPfx;
const style = c.defaultStyle ? `<style>
.${pfx} {
text-align: center;
font-family: Helvetica, serif;
}
.${pfx}-block {
... | 7,286 |
https://github.com/petraroso/BeBIO/blob/master/src/pages/login.js | Github Open Source | Open Source | RSA-MD | null | BeBIO | petraroso | JavaScript | Code | 35 | 107 | import React from "react"
import HeaderFooterLayout from "../layouts/headerFooter"
import LogInPage from "../components/LogInPage"
import { AuthProvider } from "../components/Contexts/AuthContext"
const login = () => (
<HeaderFooterLayout activeTab="Login">
<AuthProvider>
<LogInPage />
</AuthProvider>
... | 10,171 |
https://github.com/stylify/packages/blob/master/packages/nuxt-module/playground/stylify.config.js | Github Open Source | Open Source | MIT | 2,022 | packages | stylify | JavaScript | Code | 23 | 80 | export default {
sassVarsDirPath: './assets',
extend: {
compiler: {
components: {
button: 'color:blue'
}
},
loaders: [
{ test: /\.md/}
]
}
};
| 2,023 |
https://github.com/yu-jeffy/ibm-world-wire/blob/master/quotes-service/sql/create_functions.sql | Github Open Source | Open Source | Apache-2.0 | 2,021 | ibm-world-wire | yu-jeffy | PLpgSQL | Code | 761 | 2,490 | -- SQL function for updateQuote
-- RFI allows to update quote if : statusQuote <= _QUOTESTATUS_UPDATED OR statusQuote = _QUOTESTATUS_CANCELLED OR statusQuote = _QUOTESTATUS_FAILED
CREATE OR REPLACE FUNCTION UpdateQuote(
_quoteID varchar,
_rfiID varchar,
_statusQuote int,
_exchangeRate numeric ,
_timequote... | 8,899 |
https://github.com/cavcrosby/cs61a_2011/blob/master/book_exercises/E1-8.scm | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,021 | cs61a_2011 | cavcrosby | Scheme | Code | 72 | 166 | (define (cuberoot x) (cube-iter 1.0 x))
(define (cube-iter guess x)
(if (good-enough? guess x)
guess
(cube-iter (improve guess x) x)))
(define (improve guess x)
(average guess (/ (+ (/ x (square guess)) (* 2 guess)) 3)))
(define (average x y)
(/ (+ x y ) 2))
(define (good-enough? guess x)
(< (ab... | 2,323 |
https://github.com/HackYourFuture-CPH/web-dev-rooms/blob/master/src/client/components/Input/Input.stories.js | Github Open Source | Open Source | MIT | null | web-dev-rooms | HackYourFuture-CPH | JavaScript | Code | 59 | 163 | import React, { useState } from 'react';
import Input from './Input';
import { text, withKnobs } from '@storybook/addon-knobs';
export default { title: 'Components | Input', decorators: [withKnobs] };
export const Inputfield = () => {
const [name, setName] = useState('anil');
const handleInputChange = (e) => {
... | 11,624 |
https://github.com/huemulDeveloper/Huemul_BigDataGovernance_TestPlan/blob/master/src/main/scala/com/huemulsolutions/bigdata/test/prc_f100_testplan.scala | Github Open Source | Open Source | Apache-2.0 | null | Huemul_BigDataGovernance_TestPlan | huemulDeveloper | Scala | Code | 1,771 | 7,487 | package com.huemulsolutions.bigdata.test
import java.sql.Date
import com.huemulsolutions.bigdata.common.huemul_BigDataGovernance
import com.huemulsolutions.bigdata.control.{huemulType_Frequency, huemul_Control}
import org.apache.spark.sql.{Row, SaveMode}
import org.apache.spark.sql.types.{DateType, IntegerType, Strin... | 2,989 |
https://github.com/david-zhouyu/ides/blob/master/dsl/src/main/java/ides/dsl/parser/IdesParserBaseListener.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | ides | david-zhouyu | Java | Code | 1,459 | 4,076 | // Generated from /Users/sgr/develop/github/ides/dsl/src/main/resources/IdesParser.g4 by ANTLR 4.7.2
package ides.dsl.parser;
import org.antlr.v4.runtime.ParserRuleContext;
import org.antlr.v4.runtime.tree.ErrorNode;
import org.antlr.v4.runtime.tree.TerminalNode;
/**
* This class provides an empty implementati... | 20,408 |
https://github.com/nicolaslequeux/nicofinance.blog/blob/master/src/pages/blog.js | Github Open Source | Open Source | MIT | 2,020 | nicofinance.blog | nicolaslequeux | JavaScript | Code | 317 | 1,079 | import React, { useState } from "react"
import { graphql } from "gatsby"
//import { Form, Col }from "react-bootstrap"
//import Img from "gatsby-image"
import Card from "../components/card"
import { Container, Modal, Button } from "react-bootstrap"
import Layout from "../components/layout"
import SEO from "../compone... | 28,126 |
https://github.com/emkorybski/flutterclub/blob/master/custom/domain/selection.php | Github Open Source | Open Source | Apache-2.0 | 2,013 | flutterclub | emkorybski | PHP | Code | 189 | 745 | <?php
namespace bets;
require_once(PATH_LIB . 'dbrecord.php');
require_once(PATH_DOMAIN . 'sport.php');
require_once(PATH_DOMAIN . 'event.php');
class Selection extends DBRecord
{
protected static $_table = 'fc_selection';
public function getSport()
{
return Sport::get($this->idsport);
}
public function get... | 12,143 |
https://github.com/merhidev/docusign-java-client/blob/master/src/main/java/com/docusign/esign/model/EventResult.java | Github Open Source | Open Source | MIT | 2,020 | docusign-java-client | merhidev | Java | Code | 383 | 1,157 | package com.docusign.esign.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiMod... | 16,153 |
https://github.com/NERC-FSF/FieldSpecUtils/blob/master/setup.py | Github Open Source | Open Source | MIT | null | FieldSpecUtils | NERC-FSF | Python | Code | 106 | 267 | from setuptools import setup, find_packages
reqs = ['numpy', 'pandas', 'pathlib']
setup(
name = "FieldSpecUtils",
packages = find_packages(),
install_requires = reqs,
version = "1.0.13",
author = "NERC Field Spectro... | 682 |
https://github.com/jeremiedecock/snippets/blob/master/atmel_mega_avr/hello_with_build_scripts/write_fuse.sh | Github Open Source | Open Source | MIT | 2,021 | snippets | jeremiedecock | Shell | Code | 139 | 759 | #!/bin/sh
#avrdude -p ?
#avrdude -c ?
LFUSE="$1" # 0xHH
HFUSE="$2" # 0xHH
EFUSE="$3" # 0xHH
#AVRDUDE_MCU_ID=t85
#AVRDUDE_MCU_ID=m328
AVRDUDE_MCU_ID=m328p
#AVRDUDE_MCU_ID=
#AVRDUDE_PROGRAMMER_ID=avrisp
#AVRDUDE_PROGRAMMER_ID=avrispv2
#AVRDUDE_PROGRAMMER_ID=usbtiny
AVRDUDE_PROGRAMMER_ID=usbasp
OPTION=
echo -n "W... | 50,171 |
https://github.com/kyxg/AutoTrash/blob/master/pkg/cmd/pulumi/preview.go | Github Open Source | Open Source | Apache-2.0, MIT | 2,022 | AutoTrash | kyxg | Go | Code | 1,132 | 3,260 | // Copyright 2016-2018, Pulumi Corporation.
//
// Licensed under the Apache License, Version 2.0 (the "License"); // TODO: hacked by martin2cai@hotmail.com
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
... | 23,076 |
https://github.com/Jason-Turan0/nerd-dinner/blob/master/nerddinner-web/src/test/java/nerddinner/NerddinnerRepositoryTests.java | Github Open Source | Open Source | MIT | null | nerd-dinner | Jason-Turan0 | Java | Code | 194 | 1,057 | package nerddinner;
/*
import nerddinner.data.configuration.NerdRepositoryFactoryBean;
import nerddinner.data.models.Address;
import nerddinner.data.models.Nerd;
import nerddinner.data.models.NerdAddress;
import nerddinner.data.models.NerdContactType;
import nerddinner.data.repositories.NerdContactTypeRepository;
impor... | 43,293 |
https://github.com/tofuadmiral/tofuadmiral.github.io/blob/master/node_modules/svelte-icons/fa/FaShekelSign.svelte | Github Open Source | Open Source | MIT | 2,021 | tofuadmiral.github.io | tofuadmiral | null | Spoken | 61 | 284 | <script>
import IconBase from '../components/IconBase.svelte';
</script>
<IconBase viewBox="0 0 448 512" {...$$props}>
<path d="M248 168v168c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V168c0-75.11-60.89-136-136-136H24C10.75 32 0 42.74 0 56v408c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16... | 13,987 |
https://github.com/stwith/UniLogin/blob/master/universal-login-relayer/src/core/services/GasComputation.ts | Github Open Source | Open Source | MIT | 2,020 | UniLogin | stwith | TypeScript | Code | 43 | 151 | import {Message, ProviderService} from '@unilogin/commons';
import {calculateBaseGas, ContractService} from '@unilogin/contracts';
export class GasComputation {
constructor(private contractService: ContractService, private providerService: ProviderService) {
}
async calculateBaseGas(message: Omit<Message, 'gasL... | 15,989 |
https://github.com/JackHerring/AutoDI/blob/master/src/AutoDI/AssemblyInfo.cs | Github Open Source | Open Source | MIT | null | AutoDI | JackHerring | C# | Code | 8 | 43 | using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo( "AutoDI.Tests" )]
[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")] | 19,276 |
https://github.com/stelian56/bodymusic/blob/master/dotnet/Scheduler.cs | Github Open Source | Open Source | MIT | null | bodymusic | stelian56 | C# | Code | 70 | 212 | using System;
using System.Threading;
namespace BodyMusic
{
class Scheduler
{
private int tempo = 120;
private Player player;
private Timer timer;
public Scheduler(Player player)
{
this.player = player;
AutoResetEvent resetEvent = new AutoResetE... | 30,743 |
https://github.com/curoky/my-own-x/blob/master/lang/cpp/filesystem/path.cc | Github Open Source | Open Source | Apache-2.0 | null | my-own-x | curoky | C++ | Code | 208 | 571 | /*
* Copyright (c) 2018-2022 curoky(cccuroky@gmail.com).
*
* This file is part of my-own-x.
* See https://github.com/curoky/my-own-x for further info.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of... | 46,870 |
https://github.com/bangash-92/genealogy/blob/master/app/Models/enso/howto/Tag.php | Github Open Source | Open Source | MIT | 2,020 | genealogy | bangash-92 | PHP | Code | 111 | 443 | <?php
namespace App\Models\enso\howto;
use Illuminate\Database\Eloquent\Model;
use LaravelEnso\HowTo\Exceptions\Tag as Exception;
class Tag extends Model
{
// public function __construct(Array $attributes = [])
// {
// parent::__construct($attributes);
// $db = \Session::get('db');
// ... | 16,451 |
https://github.com/sho25/hive/blob/master/serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazyStruct.java | Github Open Source | Open Source | Apache-2.0 | null | hive | sho25 | Java | Code | 1,965 | 6,746 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses... | 51,581 |
https://github.com/Eafy/ZJLog/blob/master/ZJLogDemo_Android/ZJLog/src/main/java/com/eafy/zjlog/ZJLogConfig.java | Github Open Source | Open Source | MIT | null | ZJLog | Eafy | Java | Code | 425 | 1,646 | package com.eafy.zjlog;
import android.os.Environment;
import android.util.Log;
import org.apache.log4j.Appender;
import org.apache.log4j.Level;
import org.apache.log4j.PatternLayout;
import org.apache.log4j.RollingFileAppender;
import java.io.File;
import java.io.IOException;
import de.mindpipe.android.logging.log... | 45,015 |
https://github.com/jamie3/nodebooks/blob/master/plugins/records/index.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | nodebooks | jamie3 | JavaScript | Code | 253 | 914 | 'use strict';
const Boom = require('boom');
const Joi = require('joi');
const sqlite3 = require('sqlite3').verbose();
const dbFile = 'db.txt'
const wreckOptions = {
headers: {
'content-type': 'text/xml'
},
rejectUnauthorized: true
};
exports.register = function(server, options, next) {
const ... | 40,840 |
https://github.com/psvensson/magma/blob/master/src/Magma-Tester.package/MagmaTestCase.class/instance/setUpTestMultiKeywordMatching.st | Github Open Source | Open Source | MIT | 2,022 | magma | psvensson | null | Spoken | 41 | 119 | testMultiKeywordMatching
setUpTestMultiKeywordMatching
clientSession
abort ;
commit:
[ | c |
clientSession root
at: #testMultiKeywordMatching
put: (c := MagmaCollection new
addIndex: self newKeywordIndex ;
yourself).
1
to: 1000
do: [ : n | c add: n asWords subStrings -> n ] ... | 25,018 |
https://github.com/growolff/serial_data_plotter/blob/master/MainWindow.py | Github Open Source | Open Source | Unlicense | 2,021 | serial_data_plotter | growolff | Python | Code | 374 | 2,121 | from PyQt5.Qt import *
import pyqtgraph as pg
from pyqtgraph.dockarea import *
from pyqtgraph.Qt import QtCore, QtGui
from SensorPlot import *
# Operating system
import os
class MainWindow(QMainWindow):
# Constructor
def __init__(self, parent):
QMainWindow.__init__(self)
self.parent = parent... | 37,478 |
https://github.com/FDA/Termset-Generator/blob/master/bin/show_terms.py | Github Open Source | Open Source | MIT | null | Termset-Generator | FDA | Python | Code | 108 | 317 | """
Show the concepts found by annotate_docs.py and stored in a JSON file.
"""
import json
import sys
def main():
json_filename = sys.argv[1]
with open(json_filename, "r") as f:
js = json.load(f)
# If no CUIDs provided show all
if len(sys.argv) == 2:
for cuid, terms in sorted(js.items... | 10,431 |
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/p/playcanvas/src/main/scala/typingsSlinky/playcanvas/global/pc/AudioHandler.scala | Github Open Source | Open Source | MIT | 2,021 | SlinkyTyped | ScalablyTyped | Scala | Code | 49 | 175 | package typingsSlinky.playcanvas.global.pc
import typingsSlinky.playcanvas.pc.ResourceHandler
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
/**
* Resource handler used for ... | 12,083 |
https://github.com/chrisYiangou/OpenSourceJavaLessons/blob/master/src/com/chris/lessonfive/Static.java | Github Open Source | Open Source | MIT | 2,021 | OpenSourceJavaLessons | chrisYiangou | Java | Code | 434 | 964 | package com.chris.lessonfive;
public class Static {
// The Static Keyword is one that you would have seen quite a bit up till now
// In its simplest form it allows us to use a method without having to create an
// instance of the class
// Where have we seen a global method before
// - TASK let the students t... | 24,184 |
https://github.com/analogweb/core/blob/master/src/test/java/org/analogweb/core/DefaultReqestValueResolversTest.java | Github Open Source | Open Source | MIT | 2,019 | core | analogweb | Java | Code | 227 | 911 | package org.analogweb.core;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import java.lang.annotation.Annotation;
import java.util.Arrays;
import org.analogweb.AttributesHandler;
import org.analogweb.InvocationMetadata;
import org.analogweb.RequestContext;
import or... | 16,603 |
https://github.com/euphorika/gatsby-starter-untied/blob/master/gatsby-theme-untied/src/components/CallToAction/__tests__/call-to-action.test.js | Github Open Source | Open Source | MIT | null | gatsby-starter-untied | euphorika | JavaScript | Code | 43 | 123 | import React from "react"
import renderer from "react-test-renderer"
import CallToAction from "../"
describe("CallToAction", () => {
it("renders correctly", () => {
const button = {
text: "Text",
link: "/",
}
const callToAction = <CallToAction button={button} />
const tree = renderer.cr... | 14,172 |
https://github.com/WalterMalone/Brume/blob/master/fog/src/buildroot/package/partimage/partimage-0.6.9-nolibintl.patch | Github Open Source | Open Source | MIT | null | Brume | WalterMalone | null | Spoken | 86 | 379 | diff -pruN partimage-0.6.9/src/client/partimage.h partimage-0.6.9.new/src/client/partimage.h
--- partimage-0.6.9/src/client/partimage.h 2010-07-25 10:30:31.000000000 -0500
+++ partimage-0.6.9.new/src/client/partimage.h 2010-12-02 10:40:36.938076907 -0600
@@ -19,7 +19,9 @@
#define PARTIMAGE_H
#include <errno.h>
+#if... | 41,638 |
https://github.com/DonovanTFlood/Donovan-Flood-CHME5440-PS2/blob/master/Include.jl | Github Open Source | Open Source | MIT | null | Donovan-Flood-CHME5440-PS2 | DonovanTFlood | Julia | Code | 76 | 306 | # setup path -
_PATH_TO_PROJECT = pwd()
_PATH_TO_SRC = joinpath("execute_me_PS2.jl", "src")
_PATH_TO_CONFIG = joinpath("execute_me_PS2.jl", "config")
# import PKG, activate the project and instaintiate -
import Pkg
Pkg.activate("execute_me_PS2.jl")
Pkg.instantiate()
# load packages -
using DifferentialEquations
using... | 9,881 |
https://github.com/TonyTangAndroid/santa-tracker-android/blob/master/doodles/src/main/java/com/google/android/apps/santatracker/doodles/tilt/BounceActor.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | santa-tracker-android | TonyTangAndroid | Java | Code | 598 | 1,517 | /*
* Copyright (C) 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 50,103 |
https://github.com/13660139155/WanAndroid/blob/master/app/src/main/java/com/example/hy/wanandroid/widget/dialog/ThemeDialog.java | Github Open Source | Open Source | Apache-2.0 | null | WanAndroid | 13660139155 | Java | Code | 137 | 678 | package com.example.hy.wanandroid.widget.dialog;
import android.view.View;
import android.widget.RadioButton;
import com.example.hy.wanandroid.App;
import com.example.hy.wanandroid.R;
import com.example.hy.wanandroid.base.fragment.BaseDialogFragment;
import com.example.hy.wanandroid.event.LanguageEvent;
import com.ex... | 8,271 |
https://github.com/joshuakfarrar/vets-website/blob/master/src/applications/edu-benefits/1995/pages/index.js | Github Open Source | Open Source | CC0-1.0 | 2,022 | vets-website | joshuakfarrar | JavaScript | Code | 38 | 90 | import * as benefitSelection from './benefitSelection';
import * as dependents from './dependents';
import * as militaryHistory from './militaryHistory';
import * as newSchool from './newSchool';
import * as servicePeriods from './servicePeriods';
export {
benefitSelection,
dependents,
militaryHistory,
newScho... | 39,477 |
https://github.com/marc-mrt/Eniverse-Showcase/blob/master/src/components/atoms/SectionTitle.jsx | Github Open Source | Open Source | MIT | 2,018 | Eniverse-Showcase | marc-mrt | JavaScript | Code | 33 | 114 | // @flow
import styled from 'styled-components';
const SectionTitle = styled.h1`
font-family: 'Anton', sans-serif;
text-transform: uppercase;
font-size: 2.5em;
color: rgb(30, 53, 138);
margin-bottom: 0.5em;
border-bottom: 2px solid rgb(30, 53, 138);
`;
export default SectionTitle;
| 20,766 |
https://github.com/SIIS-cloud/pileus/blob/master/libvirt/pileus-libvirt-1.2.12/src/conf/nwfilter_conf.c | Github Open Source | Open Source | Apache-2.0 | 2,018 | pileus | SIIS-cloud | C | Code | 8,057 | 35,768 | /*
* nwfilter_conf.c: network filter XML processing
* (derived from storage_conf.c)
*
* Copyright (C) 2006-2014 Red Hat, Inc.
* Copyright (C) 2006-2008 Daniel P. Berrange
*
* Copyright (C) 2010-2011 IBM Corporation
* Copyright (C) 2010-2011 Stefan Berger
*
* This library is free software; you... | 10,931 |
https://github.com/neobradley/simple-app-archetype/blob/master/simple-service/application/src/main/java/lab/neobradley/simple/application/dto/response/StatusCode.java | Github Open Source | Open Source | MIT | 2,021 | simple-app-archetype | neobradley | Java | Code | 72 | 217 | package lab.neobradley.simple.application.dto.response;
public enum StatusCode {
SUCCESS(200, "success"),
NO_PERMISSION(401, "User has no permission"),
NO_PATHPAGE(404, "Path or page does not exist"),
SERVER_ERROR(500, "Server error"),
SERVER_CONNECTION_ERROR(504, "Server connection upstream servic... | 50,835 |
https://github.com/sqli-nantes/ethereum-java/blob/master/ethereum-java-core/src/main/java/ethereumjava/exception/EthereumJavaException.java | Github Open Source | Open Source | MIT | null | ethereum-java | sqli-nantes | Java | Code | 40 | 115 | package ethereumjava.exception;
/**
* Created by gunicolas on 17/08/16.
*/
/**
* EthereumJava exception that acts as a RuntimeException
*/
public class EthereumJavaException extends RuntimeException {
public EthereumJavaException(Exception e) {
super(e.getMessage(), e.getCause());
}
public E... | 7,504 |
https://github.com/MurakamiKennzo/venus/blob/master/medium/BulbSwitch.hs | Github Open Source | Open Source | MIT | 2,021 | venus | MurakamiKennzo | Haskell | Code | 169 | 259 | -- There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, you toggle every third bulb (turning on if it's off or turning off if it's on). For the i-th round, you toggle every i bulb. For the n-th round, you only toggle the last bulb. Find how... | 44,706 |
https://github.com/igiu1988/iOS13.4.1-Runtime-Headers/blob/master/protocols/HAPWACAccessoryBrowserDelegate.h | Github Open Source | Open Source | MIT | 2,020 | iOS13.4.1-Runtime-Headers | igiu1988 | Objective-C | Code | 24 | 153 | /* Generated by EzioChiu.
*/
@protocol HAPWACAccessoryBrowserDelegate
@required
- (void)wacBrowser:(HAPWACAccessoryBrowser *)arg1 didFindHAPWACAccessory:(HAPWACAccessory *)arg2;
- (void)wacBrowser:(HAPWACAccessoryBrowser *)arg1 didFindUnconfiguredPairedHAPWACAccessory:(HAPWACAccessory *)arg2;
- (void)wacBrowser:(HA... | 26,774 |
https://github.com/ycdoubleb/eeketang/blob/master/common/models/Buyunit.php | Github Open Source | Open Source | BSD-3-Clause | null | eeketang | ycdoubleb | PHP | Code | 636 | 2,764 | <?php
namespace common\models;
use Yii;
use yii\db\ActiveQuery;
use yii\db\ActiveRecord;
use yii\db\Query;
use yii\helpers\ArrayHelper;
/**
* This is the model class for table "agent_buyunit_user".
*
* @property string $id
* @property string $user_id 创建人id
* @property... | 16,041 |
https://github.com/emirbeyhatun/1010/blob/master/Assets/Scripts/Stats.cs | Github Open Source | Open Source | MIT | null | 1010 | emirbeyhatun | C# | Code | 64 | 187 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(menuName ="Stats")]
public class Stats : ScriptableObject {
public int highScore = 0;
public float totalTimeSpent = 0;
public int numberOfGames = 0;
public int gold = 0;
public List<skills> unlockedSkil... | 3,211 |
https://github.com/nevesnunes/env/blob/master/common/code/snippets/sysadmin/audio.sh | Github Open Source | Open Source | MIT | 2,021 | env | nevesnunes | Shell | Code | 11 | 32 | # Disable auto mute
/usr/bin/amixer -c 0 sset "Auto-Mute Mode" Disabled
| 19,312 |
https://github.com/foolite/panda/blob/master/panda-core/src/main/java/panda/task/TaskScheduler.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | panda | foolite | Java | Code | 1,093 | 1,915 | package panda.task;
import java.util.Date;
import java.util.concurrent.ScheduledFuture;
/**
* Task scheduler interface that abstracts the scheduling of
* {@link Runnable Runnables} based on different kinds of triggers.
*
* <p>The 'default' implementation is
* {@link ThreadPoolTaskScheduler},
* wrapping a nativ... | 35,973 |
https://github.com/7kbird/chrome/blob/master/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos_browsertest.cc | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | 2,019 | chrome | 7kbird | C++ | Code | 420 | 2,206 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string>
#include "base/command_line.h"
#include "base/compiler_specific.h"
#include "base/file_util.h"
#include "base/files/file_path.h"
#inclu... | 9,296 |
https://github.com/soasme/runflow/blob/master/tests/community/test_notion.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | runflow | soasme | Python | Code | 40 | 227 | import pytest
from runflow import runflow
pytest.importorskip("notion_client")
def test_update_notion_title(mocker):
client = mocker.MagicMock()
mocker.patch("notion_client.AsyncClient", client)
runflow(
path="examples/notion_update_title.hcl",
vars={
"notion_token": "any",
... | 15,841 |
https://github.com/frederickk/Sketch-Creator/blob/master/src/Sketch Creator/LibraryTableController.h | Github Open Source | Open Source | Unlicense, MIT | 2,021 | Sketch-Creator | frederickk | C | Code | 65 | 183 | //
// LibraryTable.h
// Sketch Creator
//
// Created by Ken Frederick on 2014.06.17.
// Copyright (c) 2014 Ken Frederick. All rights reserved.
//
#import "FDragController.h"
#import "FPreferences.h"
@interface LibraryTableController : FDragController {
NSArray *extensions;
}
// ----------------------------... | 45,919 |
https://github.com/AlphaWang/VirtualFittingRoom/blob/master/main/static/main/assets/js/addcustomimage.js | Github Open Source | Open Source | MIT | 2,014 | VirtualFittingRoom | AlphaWang | JavaScript | Code | 106 | 408 | function checkValidImageType(image){
if(image=="" || jQuery.type(image)!="string"){
return false;
}
var arr = image.split('.');
if(arr.length!=2){
return false;
}else if(!(arr[1]=="jpg" || arr[1]=="jpeg")){
return false;
}
return true;
}
function checkEmptyInput(map){
var string = "";
$.map(map,function(... | 30,316 |
https://github.com/nbinh1995/ecommerce_v2/blob/master/resources/views/partials/common/section-banner.blade.php | Github Open Source | Open Source | MIT | 2,022 | ecommerce_v2 | nbinh1995 | PHP | Code | 49 | 207 | <section class="section-box section-banner">
<div class="container-fluid">
<div class="row">
<div class="col-6">
<img src="https://via.placeholder.com/300x300" alt="img" />
</div>
<div class="col-6">
<div class="section-banner__content">
... | 11,363 |
https://github.com/ArcadeData/arcadedb/blob/master/engine/src/main/java/com/arcadedb/query/sql/method/collection/SQLMethodValues.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | arcadedb | ArcadeData | Java | Code | 212 | 520 | /*
* Copyright © 2021-present Arcade Data Ltd (info@arcadedata.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | 41,914 |
https://github.com/The-Don-Himself/embersy/blob/master/embersy-backend/src/AppBundle/Security/Core/User/FOSUBUserProvider.php | Github Open Source | Open Source | MIT | 2,017 | embersy | The-Don-Himself | PHP | Code | 597 | 2,396 | <?php
namespace AppBundle\Security\Core\User;
use HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface;
use HWI\Bundle\OAuthBundle\Security\Core\User\FOSUBUserProvider as BaseClass;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpF... | 34,274 |
https://github.com/jmsardina/location-autocomplete/blob/master/index.js | Github Open Source | Open Source | MIT | 2,019 | location-autocomplete | jmsardina | JavaScript | Code | 636 | 2,046 | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... | 11,863 |
https://github.com/IbraheemOsama/PhpHelloWorldRepo/blob/master/index.php | Github Open Source | Open Source | Apache-2.0 | 2,016 | PhpHelloWorldRepo | IbraheemOsama | PHP | Code | 1,580 | 7,255 | <?php
/*
* this example shows a number of different things. in it, we'll:
* - use functions like isset(), in_array() and array_keys() to build basic routing
* - use alternative syntax to loop inside our HTML template to include a file and update a class in our nav
*/
// create a nav array
$nav = array(
... | 7,830 |
https://github.com/jorr13/muitu/blob/master/web/app/themes/muitu/app/controllers/app.php | Github Open Source | Open Source | MIT | 2,018 | muitu | jorr13 | PHP | Code | 455 | 1,885 | <?php
namespace App;
use Sober\Controller\Controller;
class App extends Controller
{
public function siteName()
{
return get_bloginfo('name');
}
public static function title()
{
if (is_home()) {
if ($home = get_option('page_for_posts', true)) {
return ... | 12,948 |
https://github.com/code-bringer/ZyRabbit/blob/master/src/ZyRabbit.Operations.Request/Configuration/RequestConfigurationFactory.cs | Github Open Source | Open Source | MIT | 2,022 | ZyRabbit | code-bringer | C# | Code | 106 | 395 | using System;
using ZyRabbit.Configuration.Consumer;
using ZyRabbit.Configuration.Publisher;
using ZyRabbit.Operations.Request.Configuration.Abstraction;
namespace ZyRabbit.Operations.Request.Configuration
{
public class RequestConfigurationFactory : IRequestConfigurationFactory
{
private readonly IPublisherConfi... | 34,558 |
https://github.com/arieltan/rucksack/blob/master/tests/test.lisp | Github Open Source | Open Source | MIT | 2,011 | rucksack | arieltan | Common Lisp | Code | 1,617 | 4,967 | ;; $Id: test.lisp,v 1.2 2008/02/11 12:47:53 alemmens Exp $
(in-package :rucksack-test)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; A few quick tests to make sure the basics work.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defparameter *tes... | 29,584 |
https://github.com/rexwangcc/RecoverGAN/blob/master/Beta_version/Inception/models/test.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | RecoverGAN | rexwangcc | Python | Code | 24 | 69 | def mapper(google):
return str(google) + '-a', str(google) + '-b'
files = ['amazon', 'google', 'apple']
list = map(mapper, files)
for item in list:
print(item)
print(list)
| 1,629 |
https://github.com/DaySloth/The-Littlest-Pet-Shop/blob/master/controllers/petController.js | Github Open Source | Open Source | MIT | null | The-Littlest-Pet-Shop | DaySloth | JavaScript | Code | 462 | 2,151 | const db = require("../models");
const short = require('short-uuid');
var petfinder = require("@petfinder/petfinder-js");
var client = new petfinder.Client({ apiKey: process.env.API_KEY, secret: process.env.SECRET_KEY });
let express = require("express");
let router = express.Router();
router.get("/", function (req,... | 21,974 |
https://github.com/apiqcms/kms_shop/blob/master/spec/factories/variants.rb | Github Open Source | Open Source | MIT | 2,020 | kms_shop | apiqcms | Ruby | Code | 12 | 36 | FactoryGirl.define do
factory :variant, class: 'Kms::Variant' do
product
price 100
end
end
| 4,950 |
https://github.com/MachineLearningJournalClub/MLJC-UniTo-ProjectX-2020-public/blob/master/Model_Selection/DiffEqFlux/Burger.jl | Github Open Source | Open Source | MIT | 2,022 | MLJC-UniTo-ProjectX-2020-public | MachineLearningJournalClub | Julia | Code | 833 | 2,340 | #___ ____ ___ _____ _ _ _ _
#| \/ | | |_ / __ \ | | | | (_| |
#| . . | | | | / \/ | | | |_ __ _| |_ ___
#| |\/| | | | | | | | | | '_ \| | __/ _ \
#| | | | |___/\__/ | \__/\ | |_| | | | | | || (_) |
#_______\_____\____/ \____/ _____|_|___|_____\_____ _____ _____
#| ___ \... | 27,829 |
https://github.com/Ironholds/olctools/blob/master/man/shorten_olc.Rd | Github Open Source | Open Source | MIT | 2,016 | olctools | Ironholds | R | Code | 135 | 373 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{shorten_olc}
\alias{shorten_olc}
\title{Shorten Full Open Location Codes}
\usage{
shorten_olc(olcs, lats, longs)
}
\arguments{
\item{olcs}{a vector of open location codes, generated with \code{\link{encode_olc}} or through... | 35,969 |
https://github.com/cgmb/guardonce/blob/master/tests/data/newline-crlf-once.h | Github Open Source | Open Source | MIT | 2,022 | guardonce | cgmb | C | Code | 8 | 17 | #pragma once
struct Match {
bool ok;
};
| 29,867 |
https://github.com/Bazzinga/CodeFramework/blob/master/CodeFramework.Core/Utils/FireAndForgetTask.cs | Github Open Source | Open Source | Apache-2.0 | 2,014 | CodeFramework | Bazzinga | C# | Code | 47 | 141 |
namespace System.Threading.Tasks
{
public static class FireAndForgetTask
{
public static void FireAndForget(this Task task)
{
task.ContinueWith(t =>
{
if (t.IsFaulted)
{
var aggException = t.Exception.Flatten();
... | 16,937 |
https://github.com/glotovapolina/Bridge/blob/master/Common/src/main/java/com/d3lph1/bridge/common/network/codecs/GameStartedCodec.java | Github Open Source | Open Source | MIT | 2,019 | Bridge | glotovapolina | Java | Code | 38 | 198 | package com.d3lph1.bridge.common.network.codecs;
import com.d3lph1.bridge.common.network.io.DecodingCodec;
import com.d3lph1.bridge.common.network.io.EncodingCodec;
import com.d3lph1.bridge.common.network.packets.GameStartedPacket;
import io.netty.buffer.ByteBuf;
public class GameStartedCodec implements EncodingCodec... | 51,159 |
https://github.com/duracellko/EntityFrameworkCore/blob/master/src/EFCore.SqlServer.NTS/NetTopologySuite.IO/Serialization/OpenGisType.cs | Github Open Source | Open Source | Apache-2.0 | 2,020 | EntityFrameworkCore | duracellko | C# | Code | 29 | 110 | namespace NetTopologySuite.IO.Serialization
{
internal enum OpenGisType : byte
{
Unknown,
Point,
LineString,
Polygon,
MultiPoint,
MultiLineString,
MultiPolygon,
GeometryCollection,
CircularString,
CompoundCurve,
CurvePolygo... | 50,068 |
https://github.com/dropecamargo/signsupply/blob/master/resources/assets/js/views/chequesdevueltos/main.js | Github Open Source | Open Source | MIT | null | signsupply | dropecamargo | JavaScript | Code | 173 | 639 | /**
* Class MainChequesDevueltosView
* @author KOI || @dropecamargo
* @link http://koi-ti.com
*/
//Global App Backbone
app || (app = {});
(function ($, window, document, undefined) {
app.MainChequesDevueltosView = Backbone.View.extend({
el: '#chequesdevueltos-main',
/**
* Constructor Me... | 32,674 |
https://github.com/GlenIku/Perplex.ContentBlocks/blob/master/src/Perplex.ContentBlocks/PropertyEditor/Configuration/ContentBlocksConfiguration.cs | Github Open Source | Open Source | MIT | 2,021 | Perplex.ContentBlocks | GlenIku | C# | Code | 89 | 192 | using System;
namespace Perplex.ContentBlocks.PropertyEditor.Configuration
{
[Flags]
public enum Structure
{
None = 0,
Blocks = 1,
Header = 2,
All = Blocks | Header,
}
public class ContentBlocksConfiguration
{
/// <summary>
/// Added for detec... | 21,374 |
https://github.com/przell/openeo-r-client/blob/master/man/estimate_job.Rd | Github Open Source | Open Source | Apache-2.0 | 2,019 | openeo-r-client | przell | R | Code | 91 | 176 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/jobs.R
\name{estimate_job}
\alias{estimate_job}
\title{Estimates job costs}
\usage{
estimate_job(con, job)
}
\arguments{
\item{con}{authenticated Connection}
\item{job}{the job or the id of the job}
}
\value{
JobCostsEstimation containing in... | 47,379 |
https://github.com/Infoss/conf-profile-4-android/blob/master/ConfProfile/jni/ocpa/tun_private.h | Github Open Source | Open Source | MIT | null | conf-profile-4-android | Infoss | C | Code | 64 | 301 | /*
* tun_private.h
*
* Author: Dmitry Vorobiev
*/
#ifndef TUN_PRIVATE_H_
#define TUN_PRIVATE_H_
#include "tun.h"
struct tun_ctx_private_t {
tun_ctx_t public;
refcount_t __ref_count;
refcount_t __ref_generation;
pthread_rwlock_t* rwlock;
int local_fd; //router side
int remote_fd; //vpn implementatio... | 28,623 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.