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/josedu90/demo14/blob/master/web/app/themes/massive-dynamic/lib/shortcodes/md_blog/index.php
Github Open Source
Open Source
MIT
null
demo14
josedu90
PHP
Code
360
1,771
<?php /** * Blog Calendar Shortcode * * @author Pixflow */ /*Blog*/ add_shortcode('md_blog', 'pixflow_get_style_script'); // pixflow_sc_blog /*---------------------------------------------------------------- Calendar Blog -----------------------------------------------------------------*/ funct...
11,662
https://github.com/nick-prat/Opal-Engine/blob/master/src/Resources/resource.hpp
Github Open Source
Open Source
MIT
2,017
Opal-Engine
nick-prat
C++
Code
35
100
#ifndef _RESOURCE_H #define _RESOURCE_H #include <string> // NOTE Is there any data on resources i should track? class IResource { public: virtual ~IResource(); std::string getType(); protected: IResource(const std::string& type); std::string m_type; }; #endif // _RESOURCE_H
54,683
https://github.com/iloghyr/easy_python/blob/master/t_mongo.py
Github Open Source
Open Source
Apache-2.0
2,018
easy_python
iloghyr
Python
Code
44
159
#!/bin/env python #coding: utf-8 import pymongo print [x for x in range(2)] con = pymongo.MongoClient("localhost", 27017) db = con.mars collection = db.users data = collection.find_one({"username":"hyr"}) print data data['age'] = 225 print collection.update({"_idd":data['_id']}, data) print collection.find_one({"u...
13,690
https://github.com/adiyosefi/rocket-launch/blob/master/src/components/LaunchDetails/missions/Payloads/PayloadsList.js
Github Open Source
Open Source
MIT
null
rocket-launch
adiyosefi
JavaScript
Code
42
142
import React from "react"; import PayloadItem from "./PayloadItem"; const PayloadsList = ({ payloads }) => { const payloadsList = payloads.map((payload) => ( <li key={payload.id} className="payload-item"> <PayloadItem name={payload.name} /> </li> )); return ( <div class...
20,051
https://github.com/imbybio/elm-indexeddb/blob/master/src/IndexedDB/Error.elm
Github Open Source
Open Source
BSD-3-Clause
2,020
elm-indexeddb
imbybio
null
Spoken
165
315
module IndexedDB.Error exposing ( Error(..), RawError(..), promoteError, formatError ) {-| IndexedDB Error handling. @docs Error, RawError, promoteError, formatError -} import Json.Decode as Json {-| Main error structure, including errors triggered by the underlying native implementation as well as errors trigg...
26,845
https://github.com/Dawtt/dntp/blob/master/src/log/Log.java
Github Open Source
Open Source
MIT
2,019
dntp
Dawtt
Java
Code
886
2,013
/** * File Created by Joshua Zierman on Sep 24, 2018 */ package log; import java.io.PrintStream; /** * A Log that can be used with Loggable * * @author Joshua Zierman [py1422xs@metrostate.edu] * */ public class Log { public static enum ByteDisplayMode { INTEGER, HEX, BINARY } private static ByteDisplay...
19,792
https://github.com/power4454/studio/blob/master/function/python/brightics/function/extraction/bucketizer.py
Github Open Source
Open Source
Apache-2.0
null
studio
power4454
Python
Code
182
656
import pandas as pd import numpy as np import math def _place(a, splits, bucket_type): for i in range(len(splits) - 1): if(bucket_type=='left_closed'): if splits[i] <= float(a) < splits[i + 1]: return i else: if splits[i] < float(a) <= splits[i + 1]: ...
25,253
https://github.com/olabini/yarbl/blob/master/app/controllers/application.rb
Github Open Source
Open Source
MIT
2,016
yarbl
olabini
Ruby
Code
135
311
# Filters added to this controller apply to all controllers in the application. # Likewise, all the methods added will be available for all controllers. require 'beeu' class ApplicationController < ActionController::Base layout 'blog' helper :all # include all helpers, all the time include BeeU before_filter...
38,975
https://github.com/klmzfyf/opentelemetry-java-instrumentation/blob/master/instrumentation/jsf/jsf-common/library/build.gradle
Github Open Source
Open Source
Apache-2.0
2,021
opentelemetry-java-instrumentation
klmzfyf
Gradle
Code
11
71
plugins { id("otel.library-instrumentation") } dependencies { compileOnly "jakarta.faces:jakarta.faces-api:2.3.2" compileOnly "jakarta.el:jakarta.el-api:3.0.3" }
50,583
https://github.com/jpaw/bonaparte-java/blob/master/bonaparte-core-test/src/test/java/testcases/json/JsonListTest.java
Github Open Source
Open Source
Apache-2.0
2,018
bonaparte-java
jpaw
Java
Code
142
521
package testcases.json; import java.util.ArrayList; import java.util.List; import org.testng.Assert; import org.testng.annotations.Test; import de.jpaw.bonaparte.core.JsonComposer; import de.jpaw.bonaparte.pojos.jsonTest.TestSimple; public class JsonListTest { private static final TestSimple t1 = new TestSimple...
42,829
https://github.com/luismayta/zsh-alacritty/blob/master/config/osx.zsh
Github Open Source
Open Source
MIT
2,020
zsh-alacritty
luismayta
Shell
Code
9
41
#!/usr/bin/env ksh # -*- coding: utf-8 -*- export ALACRITTY_APPLICATION=/Applications/Alacritty.app
41,719
https://github.com/qingfengyang101/vue-avue/blob/master/src/views/business/grouplist/index.vue
Github Open Source
Open Source
MIT
2,020
vue-avue
qingfengyang101
Vue
Code
1,222
6,060
<template>  <div class="app-container"> <el-card class="filter-container" shadow="never"> <div> <i class="el-icon-search"></i> <span>筛选搜索</span> <el-button style="float: right" @click="handleSearchList()" type="primary" size="small"> ...
15,841
https://github.com/NNRUG/it52-rails/blob/master/app/helpers/events_helper.rb
Github Open Source
Open Source
MIT
2,022
it52-rails
NNRUG
Ruby
Code
15
63
# frozen_string_literal: true module EventsHelper def admin_event_icon_class(event) if event.published? 'fa-eye' else 'fa-eye-slash' end end end
50,459
https://github.com/codecentric/reedelk-module-mail/blob/master/src/main/java/de/codecentric/reedelk/mail/internal/smtp/attachment/ExpressionType.java
Github Open Source
Open Source
Apache-2.0
2,021
reedelk-module-mail
codecentric
Java
Code
148
685
package de.codecentric.reedelk.mail.internal.smtp.attachment; import de.codecentric.reedelk.mail.component.smtp.AttachmentDefinition; import de.codecentric.reedelk.mail.internal.commons.ContentType; import de.codecentric.reedelk.mail.internal.exception.MailAttachmentException; import de.codecentric.reedelk.runtime.api...
21,194
https://github.com/rdale/objective_prolog/blob/master/wam_interpreter/eg2/12.pro
Github Open Source
Open Source
MIT
2,020
objective_prolog
rdale
Prolog
Code
4
12
main :- p(A), q(B).
40,324
https://github.com/ifzz/membuffers/blob/master/go/membufc/e2e/protos/unions.proto
Github Open Source
Open Source
MIT
2,019
membuffers
ifzz
null
Spoken
100
279
syntax = "proto3"; option go_package = "github.com/orbs-network/membuffers/go/membufc/e2e/protos/types"; package types; import "membuffers"; message ExampleMessage { string str = 1; } enum ExampleEnum { EXAMPLE_ENUM_OPTION_A = 0; EXAMPLE_ENUM_OPTION_B = 1; EXAMPLE_ENUM_OPTION_C = 2; } message Comple...
13,243
https://github.com/simonep77/bdo/blob/master/Business.Data.Objects/Logging/CustomLogger.cs
Github Open Source
Open Source
MIT
null
bdo
simonep77
C#
Code
304
982
using System; using System.Text; using System.IO; using Bdo.Common; namespace Bdo.Logging { /// <summary> /// Classe per log su file di testo /// </summary> public class CustomLogger: LoggerBase { #region FIELDS private bool _Active = true; private LogText _FnLog; ...
31,836
https://github.com/Epi-Info/Epi-Info-iOS/blob/master/EpiInfo/ChiSquareCalculatorViewController.m
Github Open Source
Open Source
Apache-2.0
2,023
Epi-Info-iOS
Epi-Info
Objective-C
Code
4,317
19,692
// // ChiSquareCalculatorViewController.m // EpiInfo // // Created by John Copeland on 10/12/12. // #import "ChiSquareCalculatorViewController.h" #import "EpiInfoScrollView.h" #import "ChiSquareCalculatorCompute.h" @interface ChiSquareCalculatorViewController () @property (nonatomic, weak) IBOutlet EpiInfoScrollVi...
43,463
https://github.com/ZackKingS/TaskBaooo/blob/master/task/Classes/Tasking/Controller/taskdetail/ViewController.h
Github Open Source
Open Source
Apache-2.0
2,017
TaskBaooo
ZackKingS
Objective-C
Code
37
123
// // ViewController.h // sinaPersonalV // // Created by 唐超 on 6/7/17. // Copyright © 2017 apple. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @property(strong,nonatomic)NSString * taskid; @property(strong,nonatomic)NSString * taskName; @property(strong,nonatomic...
47,554
https://github.com/carlykube/VirtualScada/blob/master/html/namespace_psy.js
Github Open Source
Open Source
MIT
2,015
VirtualScada
carlykube
JavaScript
Code
100
641
var namespace_psy = [ [ "CodeCleaner", "namespace_psy_1_1_code_cleaner.html", "namespace_psy_1_1_code_cleaner" ], [ "Command", "namespace_psy_1_1_command.html", "namespace_psy_1_1_command" ], [ "Exception", "namespace_psy_1_1_exception.html", "namespace_psy_1_1_exception" ], [ "ExecutionLoop", "namespac...
49,696
https://github.com/Phoen1x84/LabelAnimation/blob/master/assets/less/main.less
Github Open Source
Open Source
MIT
2,015
LabelAnimation
Phoen1x84
Less
Code
132
509
@import "assets/less/utilities/_normalize.less"; // Notes // #1 will only work in IE8> @border:#c2c2c2; // mixins .input-style(@radius:5px, @pad:12px, @border-color:#c2c2c2){ border-radius:@radius; // #1 background-color:transparent; padding:@pad; border:1px solid @border-color; } // This is just to cent...
18,127
https://github.com/kalyan610/react-datatable-withfilter-V1.0/blob/master/node_modules/@pnp/spfx-property-controls/lib/propertyFields/termPicker/PropertyFieldTermPicker.js
Github Open Source
Open Source
LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-generic-cla, MIT
2,021
react-datatable-withfilter-V1.0
kalyan610
JavaScript
Code
445
1,483
var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } r...
46,483
https://github.com/bernatdsitumeang/Sistem-Informasi-dan-Permohonan-Sidang-Nikah-Dinas-Polda/blob/master/application/controllers/auth.php
Github Open Source
Open Source
MIT
null
Sistem-Informasi-dan-Permohonan-Sidang-Nikah-Dinas-Polda
bernatdsitumeang
PHP
Code
48
222
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class auth extends CI_Controller { public function index() { $data['title']= 'Login Page'; $this->load->view('nikah/login'); } public function regist() { $this->load->view('nikah/regist'); } public function user() { $this->lo...
3,849
https://github.com/Lupino/sshakyll/blob/master/fay/editor.hs
Github Open Source
Open Source
BSD-3-Clause
2,020
sshakyll
Lupino
Haskell
Code
1,734
3,907
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RebindableSyntax #-} module Main (main) where import Prelude hiding (null, concat, putStrLn, lines, unlines) import FFI (ffi) import DOM (getElementById, addClass, removeClass, Event, Element, Timer, XMLHttpRequest, setTimeout, clearTimeout, responseText) im...
49,700
https://github.com/dsofowote/KW-Tool/blob/master/keywordTool/pubfiles/src/code/thechelseamagazinecompanyltd/129905/domainInfo.inc.js
Github Open Source
Open Source
MIT
null
KW-Tool
dsofowote
JavaScript
Code
6
29
integration.whiteRootDomains = ['sailingtoday.co.uk']; integration.blackSubDomains = [];
10,432
https://github.com/zuochi/YearBook/blob/master/WebRoot/js/followOperationSmall.js
Github Open Source
Open Source
MIT, BSD-3-Clause
2,015
YearBook
zuochi
JavaScript
Code
122
882
function followSmall(elementId,socialUserId){ $.ajax({ url:'/YearBook/user/follow_execute', type:'post', data:"userId="+socialUserId+"&type=follow", async:false, success:function (msg) { if(msg=="success"){ $("#"+elementId).html("<a href='javascript:...
33,805
https://github.com/jaymins/appzio/blob/master/packages/actionMfitness/Controllers/Controller.php
Github Open Source
Open Source
Apache-2.0
2,019
appzio
jaymins
PHP
Code
243
410
<?php /** * This example shows a simple registration form. Usually this action would be used in conjuction with * Mobilelogin action, which provides login and logout functionalities. * * Default controller for your action. If no other route is defined, the action will default to this controller * and its default ...
30,929
https://github.com/INOS-soft/pbi/blob/master/modules/databases/kmysqladmin/xdg-desktop/kmysqladmin.desktop
Github Open Source
Open Source
MIT
2,021
pbi
INOS-soft
null
Spoken
12
112
#!/usr/bin/env xdg-open [Desktop Entry] Value=1.0 Type=Application Name=KMysqladmin GenericName=KMysqladmin Exec=%%PBI_EXEDIR%%/kmysqladmin Path=%%PBI_APPDIR%% Icon=%%PBI_APPDIR%%/share/icons/hicolor/32x32/apps/kmysqladmin.png StartupNotify=true
7,917
https://github.com/talithanurinaaa/Allah/blob/master/application/views/home.php
Github Open Source
Open Source
MIT
null
Allah
talithanurinaaa
PHP
Code
204
1,108
<!DOCTYPE html> <html lang=""> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Title Page</title> <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3....
20,638
https://github.com/alexcheng1982/spring-native-samples/blob/master/reactive-jdbc-webflux/src/main/java/io/vividcode/springnative/reactive/WebConfig.java
Github Open Source
Open Source
MIT
null
spring-native-samples
alexcheng1982
Java
Code
36
208
package io.vividcode.springnative.reactive; import static org.springframework.web.reactive.function.server.RequestPredicates.accept; import static org.springframework.web.reactive.function.server.RouterFunctions.route; import io.vividcode.springnative.reactive.user.UserHandler; import org.springframework.context.anno...
52,396
https://github.com/shehir12/covid19-app-system-public/blob/master/src/aws/lambdas/incremental_distribution/cta/src/test/java/uk/nhs/nhsx/analyticslogs/LogInsightsAnalyticsServiceTest.kt
Github Open Source
Open Source
MIT
null
covid19-app-system-public
shehir12
Kotlin
Code
721
3,889
@file:Suppress("TestFunctionName") package uk.nhs.nhsx.analyticslogs import com.amazonaws.services.logs.AWSLogs import com.amazonaws.services.logs.model.GetQueryResultsResult import com.amazonaws.services.logs.model.StartQueryResult import io.mockk.every import io.mockk.mockk import org.junit.jupiter.api.Test import ...
42,336
https://github.com/bytemaster/fc/blob/master/src/network/ip.cpp
Github Open Source
Open Source
MIT
2,018
fc
bytemaster
C++
Code
437
1,539
#include <fc/network/ip.hpp> #include <fc/crypto/city.hpp> #include <fc/variant.hpp> #include <boost/asio.hpp> #include <boost/lexical_cast.hpp> #include <string> namespace fc { namespace ip { address::address( uint32_t ip ) :_ip(ip){} address::address( const fc::string& s ) { _ip = boost::asio::ip::addres...
56,110
https://github.com/francis-pouatcha/forgelab/blob/master/adpharma/adpharma.modules/adpharma.client.frontoffice/src/main/java/org/adorsys/adpharma/client/jpa/insurrance/InsurranceInsurerListCell.java
Github Open Source
Open Source
Apache-2.0
null
forgelab
francis-pouatcha
Java
Code
31
154
package org.adorsys.adpharma.client.jpa.insurrance; import org.adorsys.javafx.crud.extensions.model.PropertyReader; import org.adorsys.javafx.crud.extensions.view.AbstractToStringListCell; public class InsurranceInsurerListCell extends AbstractToStringListCell<InsurranceInsurer> { @Override protected String ge...
9,072
https://github.com/ivan-petrovic/pk/blob/master/POPSTAM.PRG
Github Open Source
Open Source
MIT
2,017
pk
ivan-petrovic
null
Spoken
363
955
* - nije pregledano - * SET DATE GERMAN POR = "OTKUCAJTE NEKU TIPKU ZA DALJE..." SELECT 1 USE POPDAT INDEX POPINDAT SELECT 2 USE ARTPANE INDEX APINSIF DO WHILE .T. CLEAR SCREEN DO ESCK @ 1,30 SAY "STAMPA POPISA" WPOPBROJ = 0 WPOPDAT = CTOD(" . . ") @ 10,10 SAY "DATUM POPISA:" GET WPOPDAT VALI...
21,843
https://github.com/AndrewKhitrin/antlr_psql/blob/master/src/test/resources/sql/create_table/7487219c.sql
Github Open Source
Open Source
MIT
2,018
antlr_psql
AndrewKhitrin
SQL
Code
11
30
-- file:create_table.sql ln:446 expect:false CREATE TABLE part_default PARTITION OF list_parted DEFAULT
50,444
https://github.com/yanghub/springbootalone/blob/master/WebContent/bin/js/common/select.js
Github Open Source
Open Source
MIT
2,020
springbootalone
yanghub
JavaScript
Code
869
4,760
/** * @Function_Name: loadComboBox * @Description: 设定下拉列表 * @param $obj 下拉列表jQuery对象 * @param type 取得下拉列表类别 * @param code 级联查询时使用的一级列表code值 * @param hidden 是否隐藏下拉列表 * @returns boolean 加载列表是否成功 */ function loadComboBox($obj,type,code,hidden){ // 加载是否成功标识 var loadFlag = false; // 加载url地址 var urlAddr ="...
25,284
https://github.com/simank/christmasxp2015/blob/master/site/build/07/neve/assets/shaders/modules/refl/refl.fs
Github Open Source
Open Source
MIT
2,015
christmasxp2015
simank
GLSL
Code
54
158
vec3 reflection(vec3 worldPosition, vec3 normal) { vec3 cameraToVertex = normalize(worldPosition - cameraPosition); return reflect(cameraToVertex, normal); } vec3 refraction(vec3 worldPosition, vec3 normal, float rRatio) { vec3 cameraToVertex = normalize(worldPosition - cameraPosition); retur...
38,074
https://github.com/unicell/coreos-k8s-demo/blob/master/static/kube-proxy.service
Github Open Source
Open Source
MIT
2,015
coreos-k8s-demo
unicell
null
Spoken
17
147
[Unit] Description=Kubernetes Proxy Documentation=https://github.com/GoogleCloudPlatform/kubernetes ConditionFileIsExecutable=/opt/bin/kube-proxy Requires=etcd.service Requires=docker.service After=etcd.service After=docker.service [Service] ExecStart=/opt/bin/kube-proxy --etcd_servers=http://127.0.0.1:4001 --logtostd...
47,792
https://github.com/avluis/Hentoid/blob/master/app/src/main/java/me/devsaki/hentoid/util/image/ImageHelper.kt
Github Open Source
Open Source
Apache-2.0
2,023
Hentoid
avluis
Kotlin
Code
1,950
4,973
package me.devsaki.hentoid.util.image import android.content.Context import android.graphics.Bitmap import android.graphics.BitmapFactory import android.graphics.Canvas import android.graphics.Paint import android.graphics.PorterDuff import android.graphics.PorterDuffColorFilter import android.net.Uri import android.o...
25,193
https://github.com/boost-entropy-repos-org/metasfresh/blob/master/misc/services/procurement-webui-legacy/src/main/java/de/metas/procurement/webui/ui/model/ProductQtyReportRepository.java
Github Open Source
Open Source
RSA-MD
2,021
metasfresh
boost-entropy-repos-org
Java
Code
1,164
4,489
package de.metas.procurement.webui.ui.model; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.ExecutionException; import javax.tr...
46,467
https://github.com/PorteroGCooper/zoop-helios/blob/master/graphic/component.php
Github Open Source
Open Source
ZPL-2.1
2,016
zoop-helios
PorteroGCooper
PHP
Code
306
993
<?php // Copyright (c) 2008 Supernerd LLC and Contributors. // All Rights Reserved. // // This software is subject to the provisions of the Zope Public License, // Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. // THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED // WARRANT...
51,015
https://github.com/erudifi/mentari/blob/master/src/lib/Styles/utils/spacing/Padding.jsx
Github Open Source
Open Source
MIT
2,019
mentari
erudifi
null
Spoken
86
254
import React from 'react'; import PropTypes from 'prop-types'; import { PaddingWrapper } from './Styled'; const defaultProps = { top: null, right: null, bottom: null, left: null, vertical: null, horizontal: null, children: null }; const propTypes = { top: PropTypes.number, right: PropTypes.number, ...
18,866
https://github.com/J-Swift/GameDbMirror-go/blob/master/Makefile
Github Open Source
Open Source
MIT
null
GameDbMirror-go
J-Swift
Makefile
Code
235
1,010
MAKEFLAGS += --silent PORT := 5000 DOCKER_IMG_TAG_FETCH = gamesdb-fetch DOCKER_IMG_TAG_SERVER = gamesdb-server all: clean compile-all serve: PORT=$(PORT) go run cmd/server/main.go .PHONY: serve fetch: go run cmd/fetch/main.go .PHONY: fetch compile-all: compile-server compile-fetch compile-server: @echo Compili...
43,811
https://github.com/espressif/ESP8266_RTOS_SDK/blob/master/tools/kconfig/expr.h
Github Open Source
Open Source
Apache-2.0
2,023
ESP8266_RTOS_SDK
espressif
C
Code
983
2,572
/* * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> * Released under the terms of the GNU GPL v2.0. */ #ifndef EXPR_H #define EXPR_H #ifdef __cplusplus extern "C" { #endif #include <assert.h> #include <stdio.h> #include "list.h" #ifndef __cplusplus #include <stdbool.h> #endif struct file { struct file ...
44,277
https://github.com/minjaesong/Terrarum/blob/master/src/net/torvald/terrarum/modulebasegame/gameitems/PickaxeGeneric.kt
Github Open Source
Open Source
Apache-2.0
2,019
Terrarum
minjaesong
Kotlin
Code
785
2,433
package net.torvald.terrarum.modulebasegame.gameitems import com.badlogic.gdx.graphics.g2d.TextureRegion import net.torvald.terrarum.* import net.torvald.terrarum.TerrarumAppConfiguration.TILE_SIZE import net.torvald.terrarum.TerrarumAppConfiguration.TILE_SIZED import net.torvald.terrarum.blockproperties.Block import ...
35,695
https://github.com/deogracia/rack-monitor/blob/master/lib/rack/monitor/sensors/memory.rb
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,010
rack-monitor
deogracia
Ruby
Code
31
81
module Rack::Monitor class Memory < Sensor def initialize @used = 0 end def collect @used = `ps -o rss= -p #{$$}`.to_i end def measurements [['used', 'Memory used', @used]] end end end
11,731
https://github.com/kpokhare/cloud-governance-client/blob/master/csharp-netstandard/src/Cloud.Governance.Client/Model/ChangeGroupPolicyResult.cs
Github Open Source
Open Source
Apache-2.0
2,021
cloud-governance-client
kpokhare
C#
Code
802
2,725
using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Jso...
10,209
https://github.com/NoSoupForYou/Deedy-Resume/blob/master/.gitignore
Github Open Source
Open Source
Apache-2.0
2,017
Deedy-Resume
NoSoupForYou
Ignore List
Code
15
43
# Vim files *.swp # XeLaTeX output *.aux *.log *.out # BibTeX output *.bbl *.blg
45,138
https://github.com/gitpan/Eixo-Rest/blob/master/lib/Eixo/Rest/BaseException.pm
Github Open Source
Open Source
Apache-2.0
2,014
Eixo-Rest
gitpan
Perl
Code
86
326
package Eixo::Rest::BaseException; use strict; use Eixo::Base::Clase; has( method => '', reason => '', args => [], error => '', error_details => '', ); sub initialize { my ($self, %args) = @_; $self->method($args{method}); $self->reason($args{reason}); chomp(@{$args{args}}); $self->args($args{args}); $s...
47,569
https://github.com/kod3r/WinObjC/blob/master/Frameworks/limbo/pthread.cpp
Github Open Source
Open Source
MIT
2,015
WinObjC
kod3r
C++
Code
754
3,012
//****************************************************************************** // // Copyright (c) 2015 Microsoft Corporation. All rights reserved. // // This code is licensed under the MIT License (MIT). // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LI...
15,053
https://github.com/ariririri/heuristicopt.jl/blob/master/script/saonemax.jl
Github Open Source
Open Source
MIT
2,019
heuristicopt.jl
ariririri
Julia
Code
60
172
using heuristicopt function main() # obj supports only maximazation initsate = rand(0:1, 100) tmin = 10 tmax = 10000 steps = 10000 param = SA.SAParameter(tmin, tmax, steps) model = SA.SAModel(param, move, objfunc) besttrial = SA.predict(model, initsate) end function move(array) N =...
56,105
https://github.com/Expetitle/deprecated_kratos/blob/master/internal/httpclient/model_verifiable_address.go
Github Open Source
Open Source
Apache-2.0
2,021
deprecated_kratos
Expetitle
Go
Code
953
2,109
/* * Ory Kratos API * * Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the adminis...
55,080
https://github.com/oolool/JdScript/blob/master/docker/Dockerfile
Github Open Source
Open Source
MIT
2,021
JdScript
oolool
Dockerfile
Code
105
381
FROM alpine LABEL AUTHOR="Datou" \ VERSION=0.1.0 ENV DEFAULT_LIST_FILE=crontab_list.sh \ CUSTOM_LIST_MERGE_TYPE=append \ REPO_URL=https://gitee.com/datous/JdScripts.git \ REPO_BRANCH=main RUN set -ex \ && sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories \ && apk...
22,360
https://github.com/LordRusk/eto/blob/master/util/util.go
Github Open Source
Open Source
LicenseRef-scancode-public-domain
2,021
eto
LordRusk
Go
Code
67
154
package util import "strings" // get the arguements from command func GetArgs(str, prefix string) []string { return strings.Split(strings.SplitAfterN(str, prefix, 2)[1], " ")[1:] // leaves the prefix and command out } // checks whether str is a link func IsLink(str string) bool { pstr := strings.Split(str, "/") ...
30,512
https://github.com/V-Sekai/godot-task-goal-planner/blob/master/addons/task_goal/core/plan.gd
Github Open Source
Open Source
MIT, BSD-3-Clause-Clear
2,023
godot-task-goal-planner
V-Sekai
GDScript
Code
2,488
6,587
# SPDX-FileCopyrightText: 2021 University of Maryland # SPDX-License-Identifier: BSD-3-Clause-Clear # Author: Dana Nau <nau@umd.edu>, July 7, 2021 # Author: K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com>, August 28, 2022 extends Resource ## Task Goal is an automated planning system that can plan for both tasks a...
31,126
https://github.com/cjburchell/restmock/blob/master/client/src/app/services/contracts/Endpoint.ts
Github Open Source
Open Source
Apache-2.0
2,019
restmock
cjburchell
TypeScript
Code
30
88
export interface IEndpoint { name: string; path: string; method: string; string_body: string; content_type: string; response: number; reply_delay: number; headers: IHeader[]; } export interface IHeader { key: string; value: string; }
11,188
https://github.com/nick-manasys/admin-webapp/blob/master/src/main/java/nz/co/example/admin-app/mvc/ExceptionHandlerController.java
Github Open Source
Open Source
Apache-2.0
null
admin-webapp
nick-manasys
Java
Code
75
271
/** * */ package nz.co.example.dev.mvc; import java.util.HashMap; import java.util.Map; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.ExceptionHandler; import org.springframework.web.servlet.ModelAndView; /...
54,538
https://github.com/hosang/gdt/blob/master/Makefile
Github Open Source
Open Source
MIT
2,017
gdt
hosang
Makefile
Code
28
165
_C_gdt.so: C_gdt.o gcc -O3 -shared -o _C_gdt.so C_gdt.o C_gdt.o: C_gdt.c C_gdt.h gcc -std=c99 -O3 -funroll-loops -ffast-math -fPIC -c C_gdt.c -I$(HOME)/local/include/python2.7 -I$(HOME)/local/lib/python2.7/site-packages/numpy/core/include/numpy .PHONY: clean clean: rm -f _C_gdt.so C_gdt.o
10,298
https://github.com/weiss/original-bsd/blob/master/usr.bin/uucp/libuu/cfgets.c
Github Open Source
Open Source
Unlicense
2,022
original-bsd
weiss
C
Code
200
504
/*- * Copyright (c) 1985, 1993 * The Regents of the University of California. All rights reserved. * * %sccs.include.proprietary.c% */ #ifndef lint static char sccsid[] = "@(#)cfgets.c 8.1 (Berkeley) 06/06/93"; #endif /* not lint */ /* * get nonblank, non-comment, (possibly continued) line. Alan S. Watt */ ...
37,898
https://github.com/albertobraschi/mogok/blob/master/spec/support/blueprints/role.rb
Github Open Source
Open Source
MIT
2,009
mogok
albertobraschi
Ruby
Code
11
39
Role.blueprint do css_class { "user_#{name}.css" } description { name.humanize.capitalize } end
48,925
https://github.com/epanks/y_atabkantor/blob/master/app/Paket.php
Github Open Source
Open Source
MIT
null
y_atabkantor
epanks
PHP
Code
75
340
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Paket extends Model { protected $table='paket'; protected $fillable = [ 'kdsatker', 'nmpaket', 'pagurmp', 'trgoutput', 'satoutput', 'trgoutcome', 'satoutcome','kdoutput','TahunFisik','pagurmawal' ]; public function getFormatt...
34,092
https://github.com/suomenriistakeskus/oma-riista-web/blob/master/src/main/java/fi/riista/feature/otherwisedeceased/OtherwiseDeceasedExportFeature.java
Github Open Source
Open Source
MIT
2,022
oma-riista-web
suomenriistakeskus
Java
Code
180
1,153
package fi.riista.feature.otherwisedeceased; import fi.riista.feature.common.entity.GeoLocation; import fi.riista.integration.common.export.otherwisedeceased.ODA_DeathCauseEnum; import fi.riista.integration.common.export.otherwisedeceased.ODA_DeceasedAnimal; import fi.riista.integration.common.export.otherwisedeceased...
26,293
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/a/aws-sdk/src/main/scala/typingsSlinky/awsSdk/macie2Mod/ListOrganizationAdminAccountsResponse.scala
Github Open Source
Open Source
MIT
2,021
SlinkyTyped
ScalablyTyped
Scala
Code
165
523
package typingsSlinky.awsSdk.macie2Mod import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @js.native trait ListOrganizationAdminAccountsResponse extends StObject { /** * ...
17,947
https://github.com/google/fhir/blob/master/java/com/google/fhir/wrappers/ExtensionWrapper.java
Github Open Source
Open Source
Apache-2.0
2,023
fhir
google
Java
Code
1,408
4,966
// Copyright 2018 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
41,299
https://github.com/Servletparty/pbi-hexagrid/blob/master/node_modules/@babylonjs/core/Shaders/background.fragment.d.ts
Github Open Source
Open Source
MIT
2,021
pbi-hexagrid
Servletparty
TypeScript
Code
43
214
import "./ShadersInclude/backgroundFragmentDeclaration"; import "./ShadersInclude/backgroundUboDeclaration"; import "./ShadersInclude/reflectionFunction"; import "./ShadersInclude/imageProcessingDeclaration"; import "./ShadersInclude/lightFragmentDeclaration"; import "./ShadersInclude/lightUboDeclaration"; import "./Sh...
45,116
https://github.com/stephengroat/OSVR-Core/blob/master/cmake-local/osvrConfig.cmake
Github Open Source
Open Source
Apache-2.0, NCSA, BSL-1.0, BSD-3-Clause, MPL-2.0, LicenseRef-scancode-other-permissive, MIT
2,018
OSVR-Core
stephengroat
CMake
Code
267
858
# File will only exist in build trees - provides hints to dependencies include("${CMAKE_CURRENT_LIST_DIR}/osvrConfigBuildTreePaths.cmake" OPTIONAL) # Hook for a super-build to optionally inject hints before target import. include("${CMAKE_CURRENT_LIST_DIR}/osvrConfigSuperBuildPrefix.cmake" OPTIONAL) # Dependency of ...
9,162
https://github.com/wentingliu/PTSwipeCell/blob/master/PTSwipeCell/PTSwipeCell.h
Github Open Source
Open Source
MIT
2,014
PTSwipeCell
wentingliu
Objective-C
Code
1,058
2,226
// // PTSwipeCell.h // PTSwipe // // Created by Phillip Harris on 11/29/13. // Copyright (c) 2013 Phillip Harris. All rights reserved. // #import <UIKit/UIKit.h> typedef NS_ENUM(NSInteger, PTSwipeCellSide) { PTSwipeCellSideLeft, PTSwipeCellSideCenter, PTSwipeCellSideRight }; typedef NS_ENUM(NSInteger...
7,083
https://github.com/rezacharek/TextEditor/blob/master/src/Editor.java
Github Open Source
Open Source
MIT
2,020
TextEditor
rezacharek
Java
Code
544
2,195
package editor; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.*; import java.io.*; import java.awt.Desktop; import javax.swing.text.*; import java.io.File; import javax.swing.JFileChooser; import javax.swing.filechooser.FileSystemView; import java.util.regex.Matcher...
48,127
https://github.com/siddharthmudgal/mvp-ecommerce/blob/master/src/main/java/com/dealstop/mvcEcommerce/services/UserService.java
Github Open Source
Open Source
Apache-2.0
null
mvp-ecommerce
siddharthmudgal
Java
Code
342
1,160
package com.dealstop.mvcEcommerce.services; import com.dealstop.mvcEcommerce.domainobjects.CartDO; import com.dealstop.mvcEcommerce.domainobjects.CartItemDO; import com.dealstop.mvcEcommerce.domainobjects.ProductDO; import com.dealstop.mvcEcommerce.domainobjects.UserDO; import com.dealstop.mvcEcommerce.exceptions.Enti...
37,331
https://github.com/go-home-io/server/blob/master/systems/secret/secret_test.go
Github Open Source
Open Source
MIT
2,021
server
go-home-io
Go
Code
254
1,069
package secret import ( "fmt" "io/ioutil" "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "go-home.io/x/server/mocks" "go-home.io/x/server/plugins/common" "go-home.io/x/server/plugins/secret" "go-home.io/x/server/utils" ) // Fake plugin. type fakePlugin struct { data ma...
49,434
https://github.com/MiCHiLU/dart-chrome-extension/blob/master/Makefile
Github Open Source
Open Source
MIT
null
dart-chrome-extension
MiCHiLU
Makefile
Code
157
643
.SUFFIXES: .yaml .json .yaml.json: assets/yaml2json$(GO_BIN_SUFFIX) $< |assets/jq$(GO_BIN_SUFFIX) '.' > $@ all: chrome-extensions AUTO_VERSOINING=yes RESOURCE_DIR_PATH=web RESOURCE_DIR=$(foreach dir,$(shell find $(RESOURCE_DIR_PATH) -type d),$(dir)) YAML=$(shell find web -type f -name "[^.]*.yaml") JSON=$(YAML:.yaml...
25,229
https://github.com/AndreCostaIF/VitrineDigital/blob/master/app/Controllers/Validation.php
Github Open Source
Open Source
MIT
null
VitrineDigital
AndreCostaIF
PHP
Code
95
522
<?php namespace App\Controllers; class Validation extends BaseController{ public function salvar(){ $userClient = new \App\Models\ValidationModel(); if(isset($_POST['dados'])) { $google = json_decode($_POST['dados'], true); $userGoogle = [ ...
43,628
https://github.com/mtth/avsc/blob/master/lib/platform.js
Github Open Source
Open Source
MIT
2,023
avsc
mtth
JavaScript
Code
60
151
let crypto = require('crypto'); let util = require('util'); /** * Compute a string's hash. * * @param str {String} The string to hash. * @param algorithm {String} The algorithm used. Defaults to MD5. */ function getHash(str, algorithm) { algorithm = algorithm || 'md5'; let hash = crypto.createHash(algorithm);...
29,386
https://github.com/MMartinDaniel/SEO-DashBoard/blob/master/client/app/components/Signin/Signin.js
Github Open Source
Open Source
MIT
null
SEO-DashBoard
MMartinDaniel
JavaScript
Code
133
510
import React, {Component} from 'react'; class Signin extends Component { constructor(props) { super(props); this.state = { users: [] }; this.deleteUser = this.deleteUser.bind(this); } componentDidMount() { fetch('/api/signin') .then(res => res.json()) .then(json => { ...
38,682
https://github.com/lutris/openmsx/blob/master/src/Scheduler.hh
Github Open Source
Open Source
Naumen, Condor-1.1, MS-PL
2,021
openmsx
lutris
C++
Code
415
1,009
#ifndef SCHEDULER_HH #define SCHEDULER_HH #include "EmuTime.hh" #include "likely.hh" #include "noncopyable.hh" #include <vector> namespace openmsx { class Schedulable; class MSXCPU; class SynchronizationPoint { public: SynchronizationPoint(EmuTime::param time, Schedulable* dev, int usrdat) : timeStamp(ti...
6,203
https://github.com/Not-Up-To-Code/Up-to-Code/blob/master/client/src/test/java/edu/isu/cs3321/Up_to_Code/app/GsonSerializationTest.java
Github Open Source
Open Source
MIT
null
Up-to-Code
Not-Up-To-Code
Java
Code
41
197
package edu.isu.cs3321.Up_to_Code.app; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import static edu.isu.cs3321.Up_to_Code.app.GsonSerialization.deSerializeClientAlpha; import static edu.isu.cs3321.Up_to_Code.app.GsonSerialization.serialize; public class GsonSerializationTest { @T...
56,147
https://github.com/ryanc/pastebin/blob/master/src/Utils/String.php
Github Open Source
Open Source
BSD-2-Clause
2,013
pastebin
ryanc
PHP
Code
149
355
<?php namespace Utils; class String { /** * This is an constant time comparison algorithm used to prevent timing * attacks. * * See: http://codahale.com/a-lesson-in-timing-attacks * * @param string $left * It is recommended that the attacker-controlled input be passed in as th...
10,973
https://github.com/aiplan4eu/unified-planning/blob/master/unified_planning/model/user_types_set.py
Github Open Source
Open Source
Apache-2.0
2,022
unified-planning
aiplan4eu
Python
Code
387
954
# Copyright 2021 AIPlan4EU project # # 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 or agreed to in wri...
56,510
https://github.com/wangjuneng/spring-security-staff/blob/master/web/src/main/java/org/springframework/security/web/session/HttpSessionEventPublisher.java
Github Open Source
Open Source
Apache-2.0
null
spring-security-staff
wangjuneng
Java
Code
139
585
package org.springframework.security.web.session; import javax.servlet.ServletContext; import javax.servlet.http.HttpSessionEvent; import javax.servlet.http.HttpSessionListener; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.context.ApplicationContext; ...
16,414
https://github.com/orbitinstasis/4x4_Stepper_Controller/blob/master/Code/Main.ino
Github Open Source
Open Source
MIT
null
4x4_Stepper_Controller
orbitinstasis
null
Spoken
572
2,092
#include <Encoder.h> #include <AccelStepper.h> #include <Bounce2.h> #include "AS5311.h" #include <elapsedMillis.h> #define GRID_SIZE 4 #define STEPPER_1 2 #define STEPPER_2 4 #define STEPPER_3 1 #define STEPPER_4 0 #define STEPPER_5 9 #define STEPPER_6 8 #define STEPPER_7 ...
16,313
https://github.com/brainor-rus/zeus-admin/blob/master/resources/js/components/GeneralComponent.vue
Github Open Source
Open Source
MIT
2,020
zeus-admin
brainor-rus
Vue
Code
1,338
5,599
<template > <div class="content" :class="classes"> <div class="loading preloader text-center" v-if="loading"> <div class="text-center mt-5 text-muted"> <i class="fas fa-circle-notch fa-spin fa-8x"></i> <br> <br> <span>Загрузка...</s...
13,959
https://github.com/jasce/travis-web/blob/master/app/models/owner.js
Github Open Source
Open Source
MIT
2,018
travis-web
jasce
JavaScript
Code
46
143
import Model from 'ember-data/model'; import attr from 'ember-data/attr'; import { belongsTo } from 'ember-data/relationships'; export default Model.extend({ name: attr(), login: attr(), isSyncing: attr('boolean'), syncedAt: attr(), avatarUrl: attr(), githubId: attr(), education: attr('boolean'), // T...
7,198
https://github.com/DeepInThought/swim/blob/master/swim-toolkit-js/swim-ui-js/@swim/view/main/scope/ViewScope.ts
Github Open Source
Open Source
Apache-2.0
null
swim
DeepInThought
TypeScript
Code
644
1,625
// Copyright 2015-2020 SWIM.AI inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed ...
15,993
https://github.com/dschrimpsher/exoplanet-map/blob/master/src/main/java/com/pierless/space/data/TR.java
Github Open Source
Open Source
MIT
2,015
exoplanet-map
dschrimpsher
Java
Code
57
166
package com.pierless.space.data; import com.google.api.client.util.Key; /** * Created by dschrimpsher on 7/26/15. */ public class TR { @Key private String[] TD; public String[] getTD () { return TD; } public String getTD(int i) { return TD[i];} public void setTD (String[] TD)...
798
https://github.com/mattcaldwell/django-bitfield/blob/master/bitfield/forms.py
Github Open Source
Open Source
Apache-2.0
2,015
django-bitfield
mattcaldwell
Python
Code
136
389
from django.forms import CheckboxSelectMultiple, IntegerField from django.utils.encoding import force_unicode from .types import BitHandler class BitFieldCheckboxSelectMultiple(CheckboxSelectMultiple): def render(self, name, value, attrs=None, choices=()): if value is not None: value = [k for...
13,725
https://github.com/LiteraryProgrammer/nodemcu-custom-build/blob/master/set-fonts.sh
Github Open Source
Open Source
MIT
2,020
nodemcu-custom-build
LiteraryProgrammer
Shell
Code
157
550
#!/bin/sh set -e if [ "${X_U8G_FONTS}" == "" ]; then export X_U8G_FONTS_STRING=' ' else if test -e "u8g_config.h"; then # replace ',' by newline and turn every item into ' U8G_FONT_TABLE_ENTRY(<font-name>) \' (except # the one on the last line which mustn't have the '\' export X_U8G_FONTS_STRING=$(...
140
https://github.com/nettan20/native/blob/master/include/native/string_operators.h
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-warranty-disclaimer
2,015
native
nettan20
C++
Code
2,034
7,740
// // Copyright (c) 2013 Mike Naquin. 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 ap...
49,252
https://github.com/GameJamForoya/AudioWorkshop2021/blob/master/Assets/Scripts/Audio/Music/SongTrigger.cs
Github Open Source
Open Source
MIT
null
AudioWorkshop2021
GameJamForoya
C#
Code
38
118
using UnityEngine; public class SongTrigger : MonoBehaviour { public MusicManager manager; public Song song; private void Start() { var collider = GetComponent<Collider2D>(); if (collider) { collider.isTrigger = true; } } private void OnTriggerEnter...
4,368
https://github.com/rezalmp7/03052021_Wisata-TIC-PATI/blob/master/application/views/logdata/wisataEdit.php
Github Open Source
Open Source
MIT
2,021
03052021_Wisata-TIC-PATI
rezalmp7
PHP
Code
1,318
6,071
<!-- Begin Page Content --> <div class="container-fluid"> <!-- DataTales Example --> <div class="card shadow mb-4"> <div class="card-header py-3"> <div class="row"> <div class="col-12"> <h6 c...
46,489
https://github.com/kemlg/owls2wsdl/blob/master/src/main/java/org/tigris/syntalight/editor/JavaHighlightStrategy.java
Github Open Source
Open Source
Unlicense
2,021
owls2wsdl
kemlg
Java
Code
139
904
package org.tigris.syntalight.editor; import java.awt.Color; import javax.swing.text.MutableAttributeSet; import javax.swing.text.SimpleAttributeSet; import javax.swing.text.StyleConstants; import org.tigris.lazer.BlockCommentTokenType; import org.tigris.lazer.CharacterLiteralTokenType; import org.tigris.lazer.Keywo...
8,525
https://github.com/lstrzebinczyk/dataslate/blob/master/src/parsers/KillTeam2018/Abilities.test.ts
Github Open Source
Open Source
MIT
null
dataslate
lstrzebinczyk
TypeScript
Code
215
655
import { calculatePhases, parseAdditionalAttacks, invulnerableSave } from './Abilities' import _ from 'lodash' import parse from 'csv-parse/lib/sync' import fs from 'fs' const abilities = parse(fs.readFileSync('abilities.csv'), { columns: true, skip_empty_lines: true }) _.forEach(abilities, (a) => { describe(`fo...
14,003
https://github.com/alyandon/syncthing-tray/blob/master/initialize.go
Github Open Source
Open Source
MIT
2,022
syncthing-tray
alyandon
Go
Code
724
2,274
package main import ( "encoding/json" "fmt" "log" "math" "time" "github.com/alex2108/systray" ) func get_folder_state() error { for key, rep := range folder { mutex.Lock() if folder[key].completion >= 0 { log.Println("already got info for folder", key, "from events, skipping") mutex.Unlock() cont...
39,944
https://github.com/conveyal/ftw/blob/master/index.js
Github Open Source
Open Source
MIT
2,016
ftw
conveyal
JavaScript
Code
26
65
import React from 'react' import {render} from 'react-dom' import Form from './lib/form' import './style.css' module.exports = function attach (element, options) { render(<Form {...options} />, element) }
31,003
https://github.com/565353780/merge-cvmat/blob/master/WithQt/src/MergeCVMat/MergeCVMat.cpp
Github Open Source
Open Source
MIT
null
merge-cvmat
565353780
C++
Code
837
3,408
#include "MergeCVMat.h" MergeCVMat::MergeCVMat() { } MergeCVMat::~MergeCVMat() { } bool MergeCVMat::checkImageVecValid(vector<Mat>& image_vec) { if(image_vec.size() == 0) { cout << "MergeCVMat::checkImageVecValid : No image input." << endl; return false; } int common_type = image_v...
54,757
https://github.com/resxustrya/ppmpv2/blob/master/app/views/division/layout/main.blade.php
Github Open Source
Open Source
MIT
2,019
ppmpv2
resxustrya
Blade
Code
161
761
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>PPMP</title> <link href="{{ as...
17,427
https://github.com/telephil/songbook/blob/master/src/package.lisp
Github Open Source
Open Source
MIT
null
songbook
telephil
Common Lisp
Code
14
63
(in-package :cl-user) (defpackage songbook (:use :cl :lucerne :iterate) (:import-from :songbook.js :gen-js) (:export :browse :shutdown))
6,765
https://github.com/dbrandenburg/python-oreilley-certification/blob/master/course3/lesson6/ccn_safety2.py
Github Open Source
Open Source
Apache-2.0
null
python-oreilley-certification
dbrandenburg
Python
Code
80
179
#!/usr/bin/env python3 import re string = "Have you ever noticed, in television and movies, that phone numbers and credit cards are obviously fake" \ " numbers like 555-123-4567 or 5555-5555-5555-5555? It is because a number that appears to be real, such as" \ " 1234-5678-1234-5678, triggers the attention of ...
36,413
https://github.com/corgimaman/aggretsukos-bar/blob/master/views/layouts/confirmpage-progress.handlebars
Github Open Source
Open Source
WTFPL
2,021
aggretsukos-bar
corgimaman
null
Spoken
30
151
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Welcome to Aggretsukos Karaoke Bar</title> <link rel="stylesheet" href="/css/confirm.css"> <link rel=...
43,446
https://github.com/kimulchan/sb-project-oauth/blob/master/components/text/ErrorText.tsx
Github Open Source
Open Source
MIT
null
sb-project-oauth
kimulchan
TypeScript
Code
60
157
import { CSSProperties } from "react"; import styled from "@emotion/styled"; interface ErrorTextProps { style?: CSSProperties; } const ErrorText: React.FC<ErrorTextProps> = (props) => { const { style, children } = props; return <ErrorString style={style}>{children}</ErrorString>; }; const ErrorString = styled...
21,588
https://github.com/char1st/ohif-core/blob/master/src/measurements/index.js
Github Open Source
Open Source
MIT
null
ohif-core
char1st
JavaScript
Code
63
188
import { TimepointApi, MeasurementApi } from './classes'; import MeasurementHandlers from './measurementHandlers'; import getLabel from './lib/getLabel'; import getDescription from './lib/getDescription'; import getImageAttributes from './lib/getImageAttributes'; import getImageIdForImagePath from './lib/getImageIdForI...
21,993