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/LCBRU/hic_covid/blob/master/refresh/episodes.py
Github Open Source
Open Source
MIT
null
hic_covid
LCBRU
Python
Code
1,823
4,769
from database import hic_conn from refresh import export SQL_DROP_TABLE = ''' IF OBJECT_ID(N'dbo.episodes', N'U') IS NOT NULL BEGIN DROP TABLE dbo.episodes; END; ''' SQL_INSERT = ''' SET QUOTED_IDENTIFIER OFF; SELECT * INTO wh_hic_covid.dbo.episodes FROM OPENQUERY( uhldwh, " SET NOCOUNT ON; ...
26,314
https://github.com/alecone/ROS_project/blob/master/src/csm/misc/rsm/rsm_laserdata_ops.rb
Github Open Source
Open Source
MIT
null
ROS_project
alecone
Ruby
Code
49
211
require 'rsm_laserdata' class LaserData def add_noise!(sigma, rng) readings.map! { |x| x + rng.gaussian(sigma) } end def LaserData.from_json(json_string) h = JSON.parse(json_string) ld = LaserData.new(h['nrays']) ld.from_hash(h) ld end def deep_copy LaserData.from_json(self.to_json) end ...
17,718
https://github.com/sakalx/react-glitch-effect/blob/master/src/GlitchText/index.js
Github Open Source
Open Source
MIT
2,022
react-glitch-effect
sakalx
JavaScript
Code
92
355
import React, { createElement, memo } from 'react'; import PropTypes from 'prop-types'; import GlitchBase from '../__core__/components/GlitchBase'; import './style/index.css'; const GLITCH_ID = 'glitch-text'; const GlitchText = ({ children, color1 = 'rgba(77, 171, 245, .5)', color2 = 'rgba(245, 0, 87, .3)', ...
43,014
https://github.com/mbrukman/chef-motherbrain/blob/master/spec/unit/mb/config_manager_spec.rb
Github Open Source
Open Source
Apache-2.0
2,021
chef-motherbrain
mbrukman
Ruby
Code
55
206
require 'spec_helper' describe MB::ConfigManager do subject { described_class.new(@config) } describe "update" do let(:listener) do Class.new do include Celluloid include Celluloid::Notifications end.new end let(:new_config) do double('config', validate!: true) e...
28,991
https://github.com/jindrichsamec/kontejnery/blob/master/frontend/src/utils/DateInterval.js
Github Open Source
Open Source
MIT
null
kontejnery
jindrichsamec
JavaScript
Code
174
516
import keymirror from 'keymirror' import { getToday, getTomorrowDate } from './DateTime' export const interval = keymirror({ TODAY: null, TOMORROW: null, NEXT_SEVEN_DAYS: null, THIS_MONTH: null, ALL: null }) const getNextSevenDaysDatesInterval = () => { const today = getToday() const afterWeek = new Dat...
12,321
https://github.com/NathanLawrence/kbia-payphone/blob/master/gulpfile.js
Github Open Source
Open Source
BSD-2-Clause
null
kbia-payphone
NathanLawrence
JavaScript
Code
112
556
var gulp = require('gulp'), gutil = require('gulp-util'), less = require('gulp-less'), s3 = require('gulp-s3'), shell = require('gulp-shell'), browserify = require('gulp-browserify'); gulp.task('test', function(){ gutil.log('This is a test.'); }); gulp.task('img', function(){ return gulp.src('components/img/*'...
27,366
https://github.com/wielgosz-info/carla-rl/blob/master/client/gym_carla/converters/actions/actions_converter.py
Github Open Source
Open Source
MIT
null
carla-rl
wielgosz-info
Python
Code
46
168
from collections import OrderedDict import gym import numpy as np from carla import VehicleControl, ActorSnapshot class ActionsConverter(object): def __init__(self): super().__init__() self._bounds = OrderedDict() def get_action_space(self) -> gym.spaces.Space: low, high = zip(*self._...
18,103
https://github.com/mpgirro/stalla/blob/master/src/test/kotlin/dev/stalla/builder/fake/episode/FakeEpisodePodcastindexChaptersBuilder.kt
Github Open Source
Open Source
BSD-3-Clause
2,022
stalla
mpgirro
Kotlin
Code
114
343
package dev.stalla.builder.fake.episode import dev.stalla.builder.episode.EpisodePodcastindexChaptersBuilder import dev.stalla.builder.fake.FakeBuilder import dev.stalla.model.MediaType import dev.stalla.model.podcastindex.Chapters internal class FakeEpisodePodcastindexChaptersBuilder : FakeBuilder<Chapters>(), Episo...
45,970
https://github.com/alexunder/CellMatrix/blob/master/kernel/tegra/arch/arm64/include/asm/irq.h
Github Open Source
Open Source
MIT
null
CellMatrix
alexunder
C
Code
55
195
#ifndef __ASM_IRQ_H #define __ASM_IRQ_H /* FIXME: mach/irqs.h defines Tegra specific NR_IRQS * which should be picked up in favor of the one in asm-generic/irq.h, so we include mach/irqs.h here. */ #include <mach/irqs.h> #include <asm-generic/irq.h> #ifndef irq_canonicalize #define irq_canonicalize(i) (i) #endif...
10,710
https://github.com/my-projects-ma46/languages/blob/master/haskell/teste.hs
Github Open Source
Open Source
MIT
null
languages
my-projects-ma46
Haskell
Code
13
21
fac 0 = 1 fac n = n * fac (n - 1)
15,240
https://github.com/jimmson/community-helpdesk/blob/master/src/components/Bar/LangBar.js
Github Open Source
Open Source
MIT
2,021
community-helpdesk
jimmson
JavaScript
Code
112
321
import React from "react"; import Button from "@material-ui/core/Button"; import { makeStyles } from "@material-ui/core/styles"; import { lightBlue } from "@material-ui/core/colors"; const useStyles = makeStyles((theme) => ({ root: { maxWidth: "100%", flexWrap: "wrap", display: "flex", flexDirection:...
16,945
https://github.com/Revenatium/carbon/blob/master/source/scss/components/scroll-button.scss
Github Open Source
Open Source
MIT
null
carbon
Revenatium
SCSS
Code
60
212
.scroll-button { position: absolute; bottom: 20px; left: 50%; margin-left: -1rem; padding:.5rem; color: rgba(255,255,255,0.8); text-shadow: 0 0 5px rgba(0,0,0,0.65); transition: opacity, .5s; z-index: 1; .fa { animation: blinker 3s linear infinite; display: block; margin...
19,809
https://github.com/anookday/RPi-Video-Streamer/blob/master/rpistream/app/src/main/java/com/anookday/rpistream/stream/settings/AudioConfigFragment.kt
Github Open Source
Open Source
Apache-2.0
null
RPi-Video-Streamer
anookday
Kotlin
Code
173
779
package com.anookday.rpistream.stream.settings import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.Fragment import androidx.fragment.app.activityViewModels import androidx.navigation.fragment.findNavController import com.anookd...
39,850
https://github.com/gaosanyong/algorithms/blob/master/sort_test.py
Github Open Source
Open Source
MIT
2,021
algorithms
gaosanyong
Python
Code
8
25
class TestClass: def test_me(self): assert True def test_
24,608
https://github.com/KentShikama/delivery-backend/blob/master/delivery/api/promo.py
Github Open Source
Open Source
MIT
2,017
delivery-backend
KentShikama
Python
Code
40
117
if promo_code.type == "15% off" and store == "...": delivery_cost = management_cut + driver_cut percentage_of_delivery_cost = PERCENT * delivery_cost if management_cut > percentage_of_delivery_cost: management_cut -= percentage_of_delivery_cost else: driver_cut = driver_cut - percentage_...
46,521
https://github.com/jmu201621143028/xv6_lab/blob/master/kernel/sprintf.c
Github Open Source
Open Source
MIT-0
2,021
xv6_lab
jmu201621143028
C
Code
236
674
#include <stdarg.h> #include "types.h" #include "param.h" #include "spinlock.h" #include "sleeplock.h" #include "fs.h" #include "file.h" #include "riscv.h" #include "defs.h" static char digits[] = "0123456789abcdef"; static int sputc(char *s, char c) { *s = c; return 1; } static int sprintint(char *s, int xx, i...
20
https://github.com/VSChina/azure-iot-sdk-csharp/blob/master/service/Samples/ConsoleSample/Program.cs
Github Open Source
Open Source
MIT
null
azure-iot-sdk-csharp
VSChina
C#
Code
217
812
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Azure.Devices; namespace ConsoleSample { class Program { const string connectionString = "<replace_with_iothub_connection_string>"; const string deviceID = "new_d...
10,965
https://github.com/Liang-Zhinian/docker-microservices-master/blob/master/4-consul-cluster/consul_validate.sh
Github Open Source
Open Source
MIT
null
docker-microservices-master
Liang-Zhinian
Shell
Code
102
291
#!/bin/sh # Installs Consul Agents on all nodes in swarm # (3) Consul Server Agents and (3) Consul Client Agents # set -e vms=( "myvm1" "myvm2" ) SWARM_MANAGER_IP=$(docker-machine ip myvm1) echo ${SWARM_MANAGER_IP} echo ">> With the Consul Server running, we can test Consul's Key-Value Store HTTP API:\n" ec...
800
https://github.com/vectormachines/voxel-dcgan/blob/master/util_mat.py
Github Open Source
Open Source
MIT
null
voxel-dcgan
vectormachines
Python
Code
64
233
import numpy as np import glob import scipy.io as io import scipy.ndimage as nd def get3DImage(data_dir): return getVoxelsFromMat(data_dir, cube_len=64) def getVoxelsFromMat(path, cube_len=64): voxels = io.loadmat(path)['instance'] voxels = np.pad(voxels, (1, 1), 'constant', constant_values=(0, 0)) if...
11,536
https://github.com/um3k/gbvm/blob/master/examples/gbs_sample_dmg/data/include/data/script_s2t0_interact.h
Github Open Source
Open Source
MIT
2,022
gbvm
um3k
C
Code
16
97
#ifndef SCRIPT_S2T0_INTERACT_H #define SCRIPT_S2T0_INTERACT_H // Script script_s2t0_interact #include "gbs_types.h" BANKREF_EXTERN(script_s2t0_interact) extern const unsigned char script_s2t0_interact[]; #endif
43,273
https://github.com/Atlantis-Software/docmake/blob/master/lib/render/elements/columns.js
Github Open Source
Open Source
MIT
null
docmake
Atlantis-Software
JavaScript
Code
532
1,611
var _ = require('lodash'); var Container = require('../container'); var Element = require('../element'); var utils = require('../utils'); module.exports = function(Processor, document, parent, node) { node.id = node.id || 'columns'; node.width = utils.parseDimension(parent.getAvailableWidth(), node.width); // as...
35,310
https://github.com/afernandezro7/Sisger3/blob/master/src/Belraysa/BackendBundle/Resources/views/Reply/indexAll.html.twig
Github Open Source
Open Source
MIT
null
Sisger3
afernandezro7
Twig
Code
836
3,575
{% set layout = "BackendBundle::G-BRS.html.twig" %} {% extends layout %} {% block contabilidadgbrs %}active{% endblock %} {% block stylesheet_inline %} <!-- BEGIN PAGE LEVEL STYLES --> <link rel="stylesheet" type="text/css" href="{{ asset('bundles/backend/global/plugins/bootstrap-toastr/toastr.mi...
10,341
https://github.com/hudmgy/insightface/blob/master/RetinaFace/detec_crop.py
Github Open Source
Open Source
MIT
2,019
insightface
hudmgy
Python
Code
631
2,341
import cv2 import os, sys import numpy as np import datetime import glob import os.path as osp from skimage import transform as trans from retinaface import RetinaFace import ipdb shape112x96 = np.array([ [30.2946, 51.6963], [65.5318, 51.5014], [48.0252, 71.7366], [33.5493, 92.3655], [62.7299, 92....
30,617
https://github.com/aabs/edx-ai-week4-project/blob/master/Util.py
Github Open Source
Open Source
Apache-2.0
null
edx-ai-week4-project
aabs
Python
Code
430
1,213
import array import itertools import math from Grid_3 import Grid common_logs = {0: 0, 2: 1, 4: 2, 8: 3, 16: 4, 32: 5, 64: 6, 128: 7, 256: 8, 512: 9, 1024: 10, 2048: 11, 4096: 12, 8192: 13, 16384: 14, 32768: 15, 65536: 16} primes = array.array('i', [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43,...
46,551
https://github.com/eos-13/YaCMS/blob/master/main/admin/model/image.php
Github Open Source
Open Source
Artistic-2.0
null
YaCMS
eos-13
PHP
Code
145
671
<?php class model_image extends admin_common { public $message = false; public function run() { return (true); } public function redim_path($post) { //List les fichers global $conf; $directory = $conf->main_document_root."/files/".$post['rep']; load_alter...
1,196
https://github.com/tyagi2141/beagle/blob/master/android/beagle/src/main/java/br/com/zup/beagle/android/view/custom/BeagleFlexView.kt
Github Open Source
Open Source
Apache-2.0
2,020
beagle
tyagi2141
Kotlin
Code
255
829
/* * Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA * * 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...
33,390
https://github.com/OctoberWJ/BookManage/blob/master/src/router/index.js
Github Open Source
Open Source
MIT
null
BookManage
OctoberWJ
JavaScript
Code
137
477
import Vue from 'vue' import Router from 'vue-router' import login from '@/pages/login' import bookstore from '@/pages/user/book_store' import bookDetail from '@/pages/user/book_detail' import readerInfo from '@/pages/user/reader_info' import bookList from '@/pages/admin/book_list' import userBase from '@/pages/user/u...
7,912
https://github.com/Angaev/Symfony-project/blob/master/web/js/loadAvatar.js
Github Open Source
Open Source
MIT
null
Symfony-project
Angaev
JavaScript
Code
47
216
$(document).ready ( function() { $('#fileChoice').on('change', function() { var file_data = $('#fileChoice').prop('files')[0]; var form_data = new FormData(); form_data.append('file', file_data); $.ajax({ url: "/user_add_avatar", dataType: 'json', ...
3,885
https://github.com/sammeishi/yesplash/blob/master/lib/fetchFactory.js
Github Open Source
Open Source
Apache-2.0
null
yesplash
sammeishi
JavaScript
Code
177
442
const nodeFetch = require("node-fetch"); const HttpsProxyAgent = require('https-proxy-agent'); const socks5Fetch = require("socks5-node-fetch"); const _ = require("lodash"); /** * http proxy wrapped */ function httpProxy( proxy ){ return function( url,opt ){ opt = opt || {}; opt.agent = new Https...
6,363
https://github.com/jiefool/garbage-segragation-laravel/blob/master/app/Http/Controllers/ContactController.php
Github Open Source
Open Source
MIT
null
garbage-segragation-laravel
jiefool
PHP
Code
157
606
<?php namespace App\Http\Controllers; use App\Contact; use App\Sent; use Illuminate\Http\Request; class ContactController extends Controller { public function index() { return view('contact.index'); } public function store(Request $request) { $data = request()->validate([ ...
39,808
https://github.com/leonard112/OctaneScript/blob/master/src/test/Interpreter/test_functions.py
Github Open Source
Open Source
MIT
null
OctaneScript
leonard112
Python
Code
904
3,376
# This file is licensed under the MIT license. # See license for more details: https://github.com/leonard112/OctaneScript/blob/main/README.md from Interpreter_test_util import * from Interpreter import Interpreter # FUNCTIONS DEFINITION def test_function_can_be_defined(interpreter): script = """ function testFun...
36,208
https://github.com/Passw/robert-strandh-SICL/blob/master/Code/Compiler/HIR-evaluator/packages.lisp
Github Open Source
Open Source
BSD-2-Clause
null
robert-strandh-SICL
Passw
Common Lisp
Code
26
184
(cl:in-package #:common-lisp-user) (defpackage #:sicl-hir-evaluator (:use #:common-lisp) (:local-nicknames (#:env #:sicl-environment)) (:export #:top-level-hir-to-host-function #:call-stack-entry #:origin #:arguments #:*call-stack* #:with-new-call-stack-entr...
38,219
https://github.com/SZQ0118/JavaforJiangkeda/blob/master/sell_admin/src/com/neusoft/BusinessAdminEntry.java
Github Open Source
Open Source
Apache-2.0
null
JavaforJiangkeda
SZQ0118
Java
Code
153
854
package com.neusoft; import com.neusoft.View.BusinessView; import com.neusoft.View.FoodView; import com.neusoft.View.impl.BusinessViewImpl; import com.neusoft.View.impl.FoodViewImpl; import com.neusoft.domain.Business; import java.util.Scanner; /** * 入驻商家管理入口程序 */ public class BusinessAdminEntry { public stat...
7,978
https://github.com/CyberFlameGO/Ascension/blob/master/common/src/main/java/com/discordsrv/common/discord/api/entity/channel/DiscordDMChannelImpl.java
Github Open Source
Open Source
MIT
null
Ascension
CyberFlameGO
Java
Code
355
1,167
/* * This file is part of DiscordSRV, licensed under the GPLv3 License * Copyright (c) 2016-2022 Austin "Scarsz" Shapiro, Henri "Vankka" Schubin and DiscordSRV contributors * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published b...
2,102
https://github.com/xLOWer/Compensation/blob/master/comp_app/comp_app/MVVM/View/StatusListView.xaml.cs
Github Open Source
Open Source
MIT
null
Compensation
xLOWer
C#
Code
45
159
using comp_app.MVVM.ViewModel; using DevExpress.Xpf.Grid; using DevExpress.Xpf.Grid.LookUp; using System; using System.Windows; using System.Windows.Controls; using System.Windows.Threading; namespace comp_app.MVVM.View { /// <summary> /// Логика взаимодействия для MainWindow.xaml /// </summary> public...
11,515
https://github.com/shubhangini-tripathy/geeks_for_geeks/blob/master/make_list_element_distinct_and_sum.py
Github Open Source
Open Source
MIT
null
geeks_for_geeks
shubhangini-tripathy
Python
Code
20
69
arr = [3,4,6,8] i = 0 while i+1 < len(arr): if arr[i] == arr[i+1]: arr[i+1] += 1 else: i+=1 print(sum(arr))
14,512
https://github.com/AhmedMElhalaby/DarApp/blob/master/app/Models/Role.php
Github Open Source
Open Source
MIT
null
DarApp
AhmedMElhalaby
PHP
Code
144
415
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; /** * @property integer id * @property string name * @property integer type * @method Role find($id) */ class Role extends Model { protected $table = 'roles'; protected $fillable = ['name','type']; public function role_permissions()...
10,522
https://github.com/artbobrov/nonlinear-equations-solver/blob/master/lib/gnuplot/GNUPlot.h
Github Open Source
Open Source
MIT
2,021
nonlinear-equations-solver
artbobrov
C
Code
48
168
#ifndef GNUPLOT_H #define GNUPLOT_H #include <cstdio> #include <cstdlib> #include <ostream> #include <string> #include <vector> class GNUPlot { private: FILE* _pipe; public: GNUPlot(); virtual ~GNUPlot(); bool isOpened() const; void open(); void flush(); void close(); void write(con...
10,128
https://github.com/LightAndLight/reflex-brick/blob/master/nix/update.sh
Github Open Source
Open Source
BSD-3-Clause
2,021
reflex-brick
LightAndLight
Shell
Code
11
74
#! /usr/bin/env bash nix-prefetch-git https://github.com/reflex-frp/reflex-platform > reflex-platform.json nix-prefetch-git https://github.com/dalaing/reflex-basic-host > reflex-basic-host.json
12,595
https://github.com/bok1949/payroll/blob/master/resources/views/livewire/create-payroll-form.blade.php
Github Open Source
Open Source
MIT
null
payroll
bok1949
PHP
Code
478
2,348
<div> {{-- <h1>Create Payroll Form From Livewire</h1> --}} <form wire:submit.prevent="savePayroll"> @csrf <div class="container"> <div class="row mt-2"> <div class="col-md-4"> <label for="" class="col-sm-12 col-form-label">Salesrep name</...
27,499
https://github.com/sgryphon/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Serialization/Building/IMetaBuilder.cs
Github Open Source
Open Source
MIT
2,022
JsonApiDotNetCore
sgryphon
C#
Code
74
183
using System.Collections.Generic; using JetBrains.Annotations; namespace JsonApiDotNetCore.Serialization.Building { /// <summary> /// Builds the top-level meta object. /// </summary> [PublicAPI] public interface IMetaBuilder { /// <summary> /// Merges the specified dictionary wi...
12,989
https://github.com/parkermac/LPM/blob/master/npzd/OLD/shared.py
Github Open Source
Open Source
MIT
null
LPM
parkermac
Python
Code
138
429
""" A module of parameters shared across the npzd models. """ import numpy as np def sink(z_w, z_rho, Dz, N, C, Wsink, dt): Next = 10 NN = N + Next Cext = np.concatenate((C, np.zeros(Next))) Zwext = np.concatenate((z_w, np.arange(Dz,Next*Dz + Dz,Dz))) Zext = Zwext[:-1] + Dz/2 for ii in range(...
14,005
https://github.com/Vaan5/piecewisecrf/blob/master/tools/colorize.py
Github Open Source
Open Source
MIT
2,021
piecewisecrf
Vaan5
Python
Code
156
562
import argparse from PIL import Image import numpy as np import os import piecewisecrf.helpers.io as io def main(input_, output_, dataset): ''' Transforms images in input_ from binary format to ppm images Parameters ---------- input_: str Path to the input directory output_: str ...
26,048
https://github.com/reeselaye/org.ipso.lbc.common/blob/master/src/main/java/org/ipso/lbc/common/exception/handler/ExceptionLogger.java
Github Open Source
Open Source
Apache-2.0
2,016
org.ipso.lbc.common
reeselaye
Java
Code
94
433
/* * 版权所有 (c) 2015 。 李倍存 (iPso)。 * 所有者对该文件所包含的代码的正确性、执行效率等任何方面不作任何保证。 * 所有个人和组织均可不受约束地将该文件所包含的代码用于非商业用途。若需要将其用于商业软件的开发,请首先联系所有者以取得许可。 */ package org.ipso.lbc.common.exception.handler; import org.apache.logging.log4j.Logger; import org.ipso.lbc.common.frameworks.logging.LoggerFactory; import static org.ipso.lbc.c...
46,720
https://github.com/rickguo/feeler-base/blob/master/Exceptions/BaseException.php
Github Open Source
Open Source
MIT
null
feeler-base
rickguo
PHP
Code
62
213
<?php /** * @link http://www.feeler.top/ * @copyright Copyright (c) 2019 Rick Guo * @license http://www.feeler.top/license/ */ namespace Feeler\Base\Exceptions; use Feeler\Base\Errno; use Feeler\Base\Number; use Feeler\Base\Str; class BaseException extends \Exception { public function __construct($message = ...
16,042
https://github.com/algrx/algorithmx-website/blob/master/src/templates/full-page.scss
Github Open Source
Open Source
MIT
null
algorithmx-website
algrx
SCSS
Code
78
309
@import '../components/header.scss'; @import '../components/language-bar.scss'; @import '../components/variables.scss'; $full-page-width: 620px; .full-page-container { width: 100%; min-height: 100%; position: absolute; box-sizing: border-box; padding-top: $header-height + $language-bar-height; ...
16,939
https://github.com/ZhengChenCS/ParSecureML/blob/master/bin/slurmrun/linear.sh
Github Open Source
Open Source
MIT
2,022
ParSecureML
ZhengChenCS
Shell
Code
7
19
srun -N 3 -n 3 ../linear ../../setup/MNIST
26,409
https://github.com/kstennettlull/dagster/blob/master/python_modules/dagster-test/dagster_test/graph_job_op_toys/big_honkin_asset_graph.py
Github Open Source
Open Source
Apache-2.0
null
dagster
kstennettlull
Python
Code
50
200
import random from typing import Sequence from dagster import AssetGroup, AssetKey, asset N_ASSETS = 1000 def generate_big_honkin_assets() -> Sequence: random.seed(5438790) assets = [] for i in range(N_ASSETS): non_argument_deps = { AssetKey(f"asset_{j}") for j in random.sample(rang...
20,817
https://github.com/gitdaniel228/jobSearch/blob/master/jobs/api/models/job.py
Github Open Source
Open Source
MIT
null
jobSearch
gitdaniel228
Python
Code
441
1,703
import redis from django.db import models from django.db.models import Q from django.contrib import admin from .country import Country from .keyword import Keyword from .filter import Filter # Set flag in Redis when new jobs arrive. # Chrome extension checks for new jobs. rs = redis.Redis(host='127.0.0.1', port=6379,...
10,362
https://github.com/DevYSM/tbi-project/blob/master/app/helper.php
Github Open Source
Open Source
MIT
null
tbi-project
DevYSM
PHP
Code
199
488
<?php // Start helper Function To Validate Inputs if ( ! function_exists( 'SanitizeString' ) ) { function SanitizeString( $input ) { return filter_var( $input, FILTER_SANITIZE_STRING ); } } if ( ! function_exists( 'SanitizeNumber' ) ) { function SanitizeNumber( $input ) { return filter_var(...
36,422
https://github.com/VladislavMaslakov/ez2pay/blob/master/app/Http/Controllers/Admin/ProductsController.php
Github Open Source
Open Source
MIT
null
ez2pay
VladislavMaslakov
PHP
Code
163
663
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use App\Http\Requests\ProductStoreRequest; use App\Models\Product; use App\Repositories\ProductRepository; use Illuminate\Http\Request; use Illuminate\Support\Facades\Log; class ProductsController extends Controller { protected $re...
33,431
https://github.com/liguoqinjim/go-labs/blob/master/lab225/lab001/servers/websocket/client_manager.go
Github Open Source
Open Source
MIT
2,020
go-labs
liguoqinjim
Go
Code
810
3,073
/** * Created by GoLand. * User: link1st * Date: 2019-07-25 * Time: 16:24 */ package websocket import ( "fmt" "lab225/helper" "lab225/lib/cache" "lab225/models" "log" "sync" "time" ) // 连接管理 type ClientManager struct { Clients map[*Client]bool // 全部的连接 ClientsLock sync.RWMutex // 读写锁 Users...
18,880
https://github.com/beqom/alto-ui/blob/master/src/alto-ui/Form/FormElement/FormElement.js
Github Open Source
Open Source
MIT
2,021
alto-ui
beqom
JavaScript
Code
119
433
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { bemClass } from '../../helpers/bem'; import Label from '../Label'; import HTMLBlock from '../../HTMLBlock/HTMLBlock'; import './FormElement.scss'; const FormElement = React.forwardRef((props, ref) => { const...
29,862
https://github.com/ease-lab/corral/blob/master/internal/pkg/corfs/s3_io.go
Github Open Source
Open Source
MIT
2,022
corral
ease-lab
Go
Code
286
1,078
package corfs import ( "fmt" "io" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/s3" "github.com/mattetti/filebuffer" ) type s3Writer struct { client *s3.S3 bucket string key string buf *filebuffer.Buffer uploadChunkSize int64 uploadID s...
29,965
https://github.com/riccardocavallin/radixdlt_test/blob/master/node_modules/@reactivex/rxjs/dist/esm5/internal/umd.js
Github Open Source
Open Source
MIT
null
radixdlt_test
riccardocavallin
JavaScript
Code
66
174
/** PURE_IMPORTS_START _operators_index,_testing_index,_ajax_index,_webSocket_index,_fetch_index PURE_IMPORTS_END */ export * from '../index'; import * as _operators from '../operators/index'; export var operators = _operators; import * as _testing from '../testing/index'; export var testing = _testing; import * as _aj...
26,875
https://github.com/surgiollc/ViewControllerPresentation/blob/master/ViewControllerPresentation/Default Transition/ViewControllerDefaultTransitionPresentationController.swift
Github Open Source
Open Source
Apache-2.0
null
ViewControllerPresentation
surgiollc
Swift
Code
272
938
// // ViewControllerTransitionPresentationController.swift // ViewControllerPresentation // // Created by Chandler De Angelis on 12/06/17. // import UIKit class ViewControllerDefaultTransitionPresentationController: UIPresentationController { // MARK: - Properties weak var tapDelegate: ViewControllerTran...
21,054
https://github.com/LQi2009/LDRelayoutButton/blob/master/LQRelayoutButton.podspec
Github Open Source
Open Source
MIT
2,018
LDRelayoutButton
LQi2009
Ruby
Code
136
575
# # Be sure to run `pod spec lint LQRelayoutButton.podspec' to ensure this is a # valid spec and to remove all comments including this before submitting the spec. # # To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html # To see working Podspecs in the CocoaPods repo see https://g...
36,615
https://github.com/kcbraunschweig/chef-cookbooks/blob/master/cookbooks/fb_swap/recipes/before_fb_fstab.rb
Github Open Source
Open Source
Apache-2.0
2,018
chef-cookbooks
kcbraunschweig
Ruby
Code
590
1,444
# # Cookbook Name:: fb_swap # Recipe:: before_fb_fstab # # Copyright (c) 2016-present, Facebook, 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.apa...
38,145
https://github.com/Evil1991/bitrixdock/blob/master/www/html/bitrix/modules/bizproc/install/activities/bitrix/getuseractivity/lang/en/getuseractivity.php
Github Open Source
Open Source
MIT
2,020
bitrixdock
Evil1991
PHP
Code
18
66
<? $MESS["BPARGUA_ACT_PROP_EMPTY1"] = "The 'User' property is missing."; $MESS["BPARGUA_ACT_PROP_EMPTY2"] = "The 'Wait list' property is not specified."; ?>
28,186
https://github.com/ddgarrett/mbos/blob/master/subsvc.py
Github Open Source
Open Source
MIT
null
mbos
ddgarrett
Python
Code
305
850
""" Service Superclass """ from xmit_message import XmitMsg import queue import uasyncio import utf8_char import xmit_lcd class Subservice: """ Superclass of all Subservices. Parms: service = the service creating this subservice All parameters and queues are ...
10,343
https://github.com/biraldinostudio/hr/blob/master/database/seeders/UserSeeder.php
Github Open Source
Open Source
MIT
null
hr
biraldinostudio
PHP
Code
61
317
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Hash; class UserSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // DB::table('users')->i...
27,381
https://github.com/BOONRewardsInc/rewards/blob/master/Commerce/DataContracts/MerchantReports/PartnerMerchantDealRedemptions.cs
Github Open Source
Open Source
MIT
2,021
rewards
BOONRewardsInc
C#
Code
148
318
// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. // namespace Lomo.Commerce.DataContracts { using System.Runtime.Serialization; /// <summary> /// Represents a partner merchant and its n...
12,318
https://github.com/dxworks/github-miner/blob/master/github-miner-core/src/main/kotlin/org/dxworks/githubminer/dto/response/repository/actions/run/GithubJobsResponseDTO.kt
Github Open Source
Open Source
Apache-2.0
null
github-miner
dxworks
Kotlin
Code
24
106
package org.dxworks.githubminer.dto.response.repository.actions.run import com.google.api.client.json.GenericJson import com.google.api.client.util.Key class GithubJobsResponseDTO : GenericJson() { @Key("total_count") var totalCount: Number? = 0 @Key var jobs: List<GithubJob> = emptyList() }
24,487
https://github.com/aaronkao/blox/blob/master/daemon-scheduler/pkg/engine/events.go
Github Open Source
Open Source
Apache-2.0
null
blox
aaronkao
Go
Code
203
435
// Copyright 2016 Amazon.com, Inc. or its affiliates. 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. A copy of the // License is located at // // http://aws.amazon.com/apache2.0/ // // or in the license fil...
331
https://github.com/chrisbubernak/TypeScript/blob/master/tests/baselines/reference/YieldExpression2_es6.js
Github Open Source
Open Source
Apache-2.0
null
TypeScript
chrisbubernak
JavaScript
Code
7
34
//// [YieldExpression2_es6.ts] yield foo; //// [YieldExpression2_es6.js] ;
20,895
https://github.com/aussiDavid/factorio-spaces/blob/master/lib/spaces.rb
Github Open Source
Open Source
MIT
null
factorio-spaces
aussiDavid
Ruby
Code
75
231
# frozen_string_literal: true # Adds width and height dimentions to items class Spaces def self.call(*args) new(*args).process end def initialize(graph = {}) @graph = graph end def process return {} if graph.empty? return point_item unless items? graph.merge(items: new_items, width: 5,...
30,631
https://github.com/JiaLeeSir/MapReduce-Demo/blob/master/resources/rand.sh
Github Open Source
Open Source
MIT
2,022
MapReduce-Demo
JiaLeeSir
Shell
Code
109
273
#!/bin/bash num=$1 [[ -z $num ]] && num=100 for ((i=1;i<=$num;i++)) do year=$(expr $RANDOM % 3 + 2015) month=$(expr $RANDOM % 12 + 1) case $month in 1 | 3 | 5 | 7 | 8 | 10 | 12) day=$(expr $RANDOM % 31 + 1) ;; 2) if [[ $year -eq 2016 && $month -eq 2 ]] then day=$(expr ...
4,879
https://github.com/JuhaniTakkunen/adaptive-alarm/blob/master/weather_api.py
Github Open Source
Open Source
MIT
null
adaptive-alarm
JuhaniTakkunen
Python
Code
197
1,005
import configparser import datetime import time from collections import OrderedDict from collections import namedtuple from time import mktime import xmltodict from requests import request config = configparser.ConfigParser() config.read('configs.ini') weather = namedtuple("Weather", ("rain_amount_night low_temp_mor...
17,674
https://github.com/ozaytsev86/cartodb/blob/master/lib/assets/javascripts/cartodb/common/dialogs/create/create_footer.js
Github Open Source
Open Source
BSD-3-Clause
2,018
cartodb
ozaytsev86
JavaScript
Code
267
1,274
var cdb = require('cartodb.js-v3'); var GuessingTogglerView = require('./footer/guessing_toggler_view'); var PrivacyTogglerView = require('./footer/privacy_toggler_view'); var GAPusher = require('../../analytics_pusher'); /** * Create footer view * * It will show possible choices depending the * selected option...
7,278
https://github.com/jtacoma/textile/blob/master/mongodb/ipnskeys_test.go
Github Open Source
Open Source
MIT
null
textile
jtacoma
Go
Code
209
940
package mongodb_test import ( "context" "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "github.com/textileio/go-threads/core/thread" . "github.com/textileio/textile/mongodb" ) func TestIPNSKeys_Create(t *testing.T) { db := newDB(t) col, err := NewIPNSKeys(context.Backgro...
15,183
https://github.com/jaenudin86/PointBlank/blob/master/server/Game/Network/ClientPacket/LOBBY/PROTOCOL_LOBBY_GET_ROOMINFO_REQ.cs
Github Open Source
Open Source
MIT
2,021
PointBlank
jaenudin86
C#
Code
74
271
/* * C# Server Emulator Project Blackout / PointBlank * Authors: the__all * Copyright (C) 2015 | OZ-Network */ using System; using System.Collections.Generic; using System.Linq; using System.Text; using Game.Network.ServerPacket; using Core.Model; using System.Threading; using Game.Network.ServerPacket.LOBBY; nam...
30,440
https://github.com/rggen/rggen-core/blob/master/lib/rggen/core/output_base/raise_error.rb
Github Open Source
Open Source
MIT
2,021
rggen-core
rggen
Ruby
Code
20
63
# frozen_string_literal: true module RgGen module Core module OutputBase module RaiseError def error(message) raise GeneratorError.new(message) end end end end end
12,252
https://github.com/Daemon-Solutions/tf-aws-ads-ec2/blob/master/profile.tf
Github Open Source
Open Source
MIT
null
tf-aws-ads-ec2
Daemon-Solutions
HCL
Code
28
129
module "iam_instance_profile_domain_controllers" { source = "../tf-aws-iam-instance-profile" name = "${var.customer}-${var.envname}-${var.envtype}-domain-controllers" ec2_describe = "1" ec2_attach = "1" s3_readonly = "1" r53_update = "1" ssm_manag...
698
https://github.com/vnaveen0/nachos/blob/master/mem-axc-64/apps/macsim.r.d.b.s/macsim-mem-axc-64/gems-lib-ooo/scripts/visualizer.py
Github Open Source
Open Source
MIT
2,018
nachos
vnaveen0
Python
Code
170
441
#!/s/std/bin/python import sys, string import os, glob, re #xact_reset = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] # 0 - NONXACT # 1 - XACT xact_reset = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
26,686
https://github.com/rolandbernard/ryoko/blob/master/client/src/components/forms/LoginForm/login-form.scss
Github Open Source
Open Source
BSD-2-Clause
2,021
ryoko
rolandbernard
SCSS
Code
17
56
.login-form { .button { width: 100%; max-width: 300px; display: block; margin: 0 auto; margin-top: 40px; } }
35,247
https://github.com/Vincent34/mindspore/blob/master/mindspore/ccsrc/minddata/dataset/kernels/ir/vision/random_select_subpolicy_ir.cc
Github Open Source
Open Source
Apache-2.0
2,021
mindspore
Vincent34
C++
Code
412
1,394
/** * Copyright 2020-2021 Huawei Technologies Co., Ltd * * 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 applicabl...
4,725
https://github.com/williamabreu/tsp-model/blob/master/tspmodel/json/JsonSerializable.py
Github Open Source
Open Source
MIT
null
tsp-model
williamabreu
Python
Code
63
214
from abc import ABCMeta, abstractmethod from json import JSONEncoder, dumps from tspmodel.json.Types import Json_T from tspmodel.messages import ABSTRACT_METHOD_ERROR_MSG class JsonSerializable: """Abstract JSON model""" __metaclass__ = ABCMeta class JsonEncoder(JSONEncoder): def default(self, o:...
26,997
https://github.com/ashander/opty/blob/master/opty/direct_collocation.py
Github Open Source
Open Source
BSD-2-Clause-FreeBSD
null
opty
ashander
Python
Code
5,417
15,322
#!/usr/bin/env python from functools import wraps import numpy as np import sympy as sm from sympy.physics import mechanics as me import ipopt plt = sm.external.import_module('matplotlib.pyplot', import_kwargs={'fromlist': ['']}, catch=(RuntimeError,)) ...
38,459
https://github.com/SYerik31/SYerik31-BETADCIU-Source-Code/blob/master/assets/preload/data/last-chance/modchart.lua
Github Open Source
Open Source
Apache-2.0
null
SYerik31-BETADCIU-Source-Code
SYerik31
Lua
Code
250
763
function start (song) end local defaultHudX = 0 local defaultHudY = 0 local tvX = 0 local tvY = 0 local defaultWindowX = 0 local defaultWindowY = 0 local lastStep = 0 function update (elapsed) end function beatHit (beat) end function stepHit (step) if curStep == 192 then changeDadCharacter('exgf...
20,330
https://github.com/rbeyer/scriptorium/blob/master/dot.vim/filetype.vim
Github Open Source
Open Source
Apache-2.0
2,021
scriptorium
rbeyer
null
Spoken
45
175
" Detect NAIF SPICE text kernel files if exists("did_load_filetypes") finish endif augroup filetypedetect au! BufRead,BufNewFile *.tf setfiletype SPICE au! BufRead,BufNewFile *.ti setfiletype SPICE au! BufRead,BufNewFile *.tls setfiletype SPICE au! BufRead,BufNewFile *.tpc setfiletype SPICE au!...
5,142
https://github.com/bpaauwe/wdpoly/blob/master/wdpoly.py
Github Open Source
Open Source
MIT
2,020
wdpoly
bpaauwe
Python
Code
2,222
7,395
#!/usr/bin/env python3 """ Polyglot v2 node server for WeatherDisplay weather data. Copyright (c) 2018 Robert Paauwe """ import polyinterface import sys import time import datetime import urllib3 import json import socket import math import threading import struct import write_profile import uom LOGGER = polyinterface...
42,882
https://github.com/frankovacevich/aleph/blob/master/webserver/testserver/resources/views.py
Github Open Source
Open Source
MIT
null
aleph
frankovacevich
Python
Code
118
325
import datetime from django.http import HttpResponseForbidden, JsonResponse from django.shortcuts import redirect from django.http import Http404 from bin import functions as fn def res_(request, resource_path): # 1. Check if user is logged in if not fn.auth_(request): return redirect('/login?after=' + req...
4,356
https://github.com/G00dBye/YYMS/blob/master/scripts/npc/q23005ing.py
Github Open Source
Open Source
MIT
2,021
YYMS
G00dBye
Python
Code
14
65
# Flier board | Edelstein if sm.hasItem(4032783): sm.consumeItem(4032783, 1) sm.addQRValue(23006, "1") sm.dispose() else: sm.dispose()
10,592
https://github.com/RazielSun/juma-editor/blob/master/editor/lib/lua/editor/scenes/builder.lua
Github Open Source
Open Source
MIT
null
juma-editor
RazielSun
Lua
Code
203
588
local InputDevice = require("input.InputDevice") --------------------------------------------------------------------------------- -- -- @type create methods -- --------------------------------------------------------------------------------- function createEditorCanvasInputDevice( env ) local env = env or getfenv(...
43,056
https://github.com/carlettibruno/workorder-control/blob/master/controle-core/src/org/csi/controle/core/entidade/Grupo.java
Github Open Source
Open Source
Apache-2.0
null
workorder-control
carlettibruno
Java
Code
279
914
package org.csi.controle.core.entidade; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name="GRUPO") public class Gru...
44,886
https://github.com/BigEd/atalan/blob/master/src/atalan/opt_var_use.c
Github Open Source
Open Source
MIT
2,022
atalan
BigEd
C
Code
1,764
4,856
/* Assign addresses to variables (c) 2010 Rudolf Kudla Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php This module is responsible for assigning physical addresses to variables. */ #include "language.h" //var_heap:0..255 or 32000..65000 GLOBAL MemHeap VAR_HEAP; // variable hea...
44,222
https://github.com/YizheZhang-Ervin/TMPL_Nginx_Webpack/blob/master/0-Java/JavaBasic/com/ervin/GenericParadigm/extendsTest.java
Github Open Source
Open Source
MIT
2,021
TMPL_Nginx_Webpack
YizheZhang-Ervin
Java
Code
82
213
package com.ervin.GenericParadigm; public class extendsTest { public static void main(String[] args) { Pair5<Integer> p = new Pair5<>(123, 456); int n = add(p); System.out.println(n); } static int add(Pair5<? extends Number> p) { Number first = p.getFirst(); Number ...
30,752
https://github.com/webcat12345/bookshop-api/blob/master/src/book/book.graphql
Github Open Source
Open Source
MIT
2,021
bookshop-api
webcat12345
null
Spoken
31
79
type Query { getBooks: [Book], book(id: ID !): Book } type Mutation { createBook(createBookInput: CreateBookInput): Book } type Book { id: String name: String } input CreateBookInput { name: String }
41,142
https://github.com/nagineni/chromium-crosswalk/blob/master/content/renderer/media/video_capture_impl_manager.h
Github Open Source
Open Source
BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause
2,018
chromium-crosswalk
nagineni
C
Code
250
816
// Copyright (c) 2012 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. // VideoCaptureImplManager manages video capture devices in renderer process. // The video capture clients use AddDevice() to get a pointer to // vide...
11,639
https://github.com/acfletch53/acfletch.github.io/blob/master/bracketgen/python-constraint-1.2/examples/xsum/xsum.py
Github Open Source
Open Source
CC-BY-3.0
null
acfletch.github.io
acfletch53
Python
Code
142
364
#!/usr/bin/python # # Reorganize the following numbers in a way that each line of # 5 numbers sum to 27. # # 1 6 # 2 7 # 3 # 8 4 # 9 5 # from constraint import * def main(): problem = Problem() problem.addVariables("abcdxefgh", range(1,10)) problem.addConstraint(lambda...
2,677
https://github.com/korotovskih/v8iservice/blob/master/app/routers/soap_bases.py
Github Open Source
Open Source
MIT
2,022
v8iservice
korotovskih
Python
Code
171
810
from app.dependencies import ( CheckInfoBasesResponse, GetInfoBasesResponse, InfoBasesCatalog, Settings, check_code, get_client_id, get_infobases_catalog, get_settings, get_wsdl, parse_xml_body, ) from fastapi import APIRouter, Depends, HTTPException, Request, Response, status r...
16,679
https://github.com/CapstoneProject21/Tagmap/blob/master/components/Validators/ValidatorFlagLocation.js
Github Open Source
Open Source
Apache-2.0
null
Tagmap
CapstoneProject21
JavaScript
Code
80
293
/*import ReactCountryFlag from 'react-country-flag' import { Tooltip } from 'antd' const ValidatorFlagLocation = ({ geo }) => { if (!geo?.country_code) { return ( <span className="flex items-center text-gray-800"> <span role="img" className="text-xl"> 🏴‍☠️ </span> ‍️ Unkn...
23,362
https://github.com/ShaoqiangPei/AndroidLibrary/blob/master/androidlibrary/commonlibrary/src/main/java/com/android/commonlibrary/interfacer/pre_interfacer/IPreActivity.java
Github Open Source
Open Source
Apache-2.0
2,021
AndroidLibrary
ShaoqiangPei
Java
Code
26
89
package com.android.commonlibrary.interfacer.pre_interfacer; /** * Title:获取Presenter对象的接口 * description: * autor:pei * created on 2020/4/28 */ public interface IPreActivity { // <T extends PrePresenter>T getPresenter(); PrePresenter getPresenter(); }
45,823
https://github.com/liliang4869/CityPicker/blob/master/citypicker/src/main/java/com/liliang4869/citypicker/db/DaoSession.java
Github Open Source
Open Source
Apache-2.0
2,022
CityPicker
liliang4869
Java
Code
182
831
package com.liliang4869.citypicker.db; import java.util.Map; import org.greenrobot.greendao.AbstractDao; import org.greenrobot.greendao.AbstractDaoSession; import org.greenrobot.greendao.database.Database; import org.greenrobot.greendao.identityscope.IdentityScopeType; import org.greenrobot.greendao.internal.DaoConfi...
17,646
https://github.com/Kunal614/Pocket-Medical/blob/master/detection/migrations/0005_auto_20210115_1350.py
Github Open Source
Open Source
Apache-2.0
2,022
Pocket-Medical
Kunal614
Python
Code
31
131
# Generated by Django 3.0.7 on 2021-01-15 13:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('detection', '0004_auto_20210115_1348'), ] operations = [ migrations.AlterField( model_name='medical_record', name='r...
27,504
https://github.com/Gustavmk/tech-blog/blob/master/terraform/main.tf
Github Open Source
Open Source
Unlicense
2,022
tech-blog
Gustavmk
HCL
Code
923
4,141
terraform { required_providers { azurerm = { source = "hashicorp/azurerm" } } } provider "azurerm" { features {} } variable "swarm-node-count" { type = string default = "1" } variable "admin-name" { type = string default = "adminswarm" } data "http" "my_ip" { url = "http://ifcon...
23,838
https://github.com/jasonb5/pyneat-web/blob/master/neatweb/views.py
Github Open Source
Open Source
Apache-2.0
null
pyneat-web
jasonb5
Python
Code
794
3,109
from django.http import HttpResponse from django.shortcuts import render from django.shortcuts import redirect from django.shortcuts import get_object_or_404 from django.forms.models import model_to_dict from . import models from .forms import ExperimentForm from .forms import FieldSet from .pyneatwrapper import pyne...
16,024
https://github.com/jayesharora2489/E-mitra-Board/blob/master/status.php
Github Open Source
Open Source
MIT
null
E-mitra-Board
jayesharora2489
PHP
Code
104
412
<?php include('config.php'); ?> <!DOCTYPE html> <html> <head> <?php include('header.php'); ?> </head> <body> <!--NAVBAR--> <?php include('navbar.php'); ?> <div class="row" > <div class="login col s6 offset-s3 ">Check Complaint Status</div> </div> ...
4,341
https://github.com/Ron-Samkulami/Tuner/blob/master/SimpleTuner/TunerView.swift
Github Open Source
Open Source
MIT
null
Tuner
Ron-Samkulami
Swift
Code
221
855
// // TunerView.swift // SimpleTuner // // Created by Jan Maes on 10/10/2020. // import UIKit class TunerView: UIView { let pitchLabel: UILabel let gaugeView: WMGaugeView fileprivate let titleLabel: UILabel fileprivate let pitchTitleLabel: UILabel override init(frame: CGRect) { titleLabel ...
14,440
https://github.com/WKBae/go-dyncapnp/blob/master/gen/main.go
Github Open Source
Open Source
MIT
2,020
go-dyncapnp
WKBae
Go
Code
60
192
package main import ( "log" "os/exec" "strings" ) var capnpVersion string func main() { loadCapnpVersion() generateImports() generateSchemaValue() } func loadCapnpVersion() { if capnpVersion != "" { return } cmd := exec.Command("git", "submodule", "status", "capnproto") sb := strings.Builder{} cmd.Std...
38,111