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/brunopagno/abandon-gds/blob/master/Assets/Scripts/Controls/Bullet.cs
Github Open Source
Open Source
MIT
null
abandon-gds
brunopagno
C#
Code
79
191
using UnityEngine; using System.Collections; using System; public class Bullet : Trigger { public float speed = 1; public float lifeSpan = 5; private float timer = 0; public Vector2 direction = Vector2.left; public override void Activate() { GameObject.FindGameObjectWithTag("Player").Get...
32,272
https://github.com/getyoti/yoti-go-sdk/blob/master/docscan/session/create/objective/proof_of_address.go
Github Open Source
Open Source
MIT
2,021
yoti-go-sdk
getyoti
Go
Code
100
279
package objective import ( "encoding/json" "github.com/getyoti/yoti-go-sdk/v3/docscan/constants" ) // ProofOfAddressObjective requests creation of a proof of address objective type ProofOfAddressObjective struct { } // Type is the objective type func (o *ProofOfAddressObjective) Type() string { return constants....
10,422
https://github.com/appscode-cloud/charts/blob/master/hack/ci/open-pr.sh
Github Open Source
Open Source
Apache-2.0
2,020
charts
appscode-cloud
Shell
Code
187
538
#!/bin/bash # Copyright AppsCode 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 to in...
34,540
https://github.com/intel/neural-compressor/blob/master/neural_compressor/adaptor/ox_utils/operators/base_operator_cast.py
Github Open Source
Open Source
Apache-2.0
2,022
neural-compressor
intel
Python
Code
124
259
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2021 Intel Corporation # # 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 # # Un...
21,731
https://github.com/nfuster2017/AmazonWebCrawler/blob/master/venv/Lib/site-packages/pandastable/annotation.py
Github Open Source
Open Source
MIT
2,019
AmazonWebCrawler
nfuster2017
Python
Code
304
782
#!/usr/bin/env python """ Module for plot annotation methods. Created Jan 2014 Copyright (C) Damien Farrell This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 ...
31,888
https://github.com/Dbevan/SunderingShadows/blob/master/d/shadow/room/farm/cellar_inherit.c
Github Open Source
Open Source
MIT
2,021
SunderingShadows
Dbevan
C
Code
381
1,404
#include <std.h> #include "farm.h" inherit CROOM; int FLAG; void make_creatures(); void create(){ make_creatures(); set_repop(20); ::create(); set_property("indoors",1); set_property("light",1); set_property("no sticks",1); set_terrain(CITY); set_travel(PAVED_ROAD); set_name("%^CYAN%^Piaf H...
3,406
https://github.com/MaTriXy/retrofit-kaiteki/blob/master/library/src/main/java/com/kroegerama/kaiteki/retrofit/cache/CacheCall.kt
Github Open Source
Open Source
Apache-2.0
null
retrofit-kaiteki
MaTriXy
Kotlin
Code
398
1,292
package com.kroegerama.kaiteki.retrofit.cache import android.util.Log import com.kroegerama.kaiteki.retrofit.CacheHandler import okhttp3.Headers import okhttp3.Request import okhttp3.RequestBody import okhttp3.ResponseBody import okio.Buffer import retrofit2.* import java.io.IOException import java.lang.reflect.Type i...
21,993
https://github.com/CNFeffery/feffery-antd-charts/blob/master/feffery_antd_charts/AntdPie.py
Github Open Source
Open Source
MIT
2,022
feffery-antd-charts
CNFeffery
Python
Code
441
1,318
# AUTO GENERATED FILE - DO NOT EDIT from dash.development.base_component import Component, _explicitize_args class AntdPie(Component): """An AntdPie component. Keyword arguments: - id (string; optional) - angleField (string; optional) - annotations (optional) - appendPadding (number | list of numbers | str...
3,396
https://github.com/FaniD/SecureWilly/blob/master/StaticAnalysis/dockerfile_info/Parser/metrics/types_per_run.sh
Github Open Source
Open Source
Apache-2.0
2,021
SecureWilly
FaniD
Shell
Code
396
1,308
#!/bin/bash service_list=(dataset server client) app_path="../.." parser_output_path="${app_path}/parser_output" ./complain_enforce_audit.sh for SERVICE in "${service_list[@]}"; do profile_path="${parser_output_path}/profiles/${SERVICE}" #Count how many runs there have been (=how many profiles there are in profi...
17,452
https://github.com/szf98/pyg/blob/master/application/route.php
Github Open Source
Open Source
Apache-2.0
null
pyg
szf98
PHP
Code
138
850
<?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK ] // +---------------------------------------------------------------------- // | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved. // +-------------------------------------------------...
33,187
https://github.com/raphaellndr/music_app/blob/master/lib/main.dart
Github Open Source
Open Source
MIT
null
music_app
raphaellndr
Dart
Code
465
1,687
import 'dart:async'; import 'package:flutter/material.dart'; import 'package:music_app/music.dart'; import 'package:audioplayer2/audioplayer2.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) => MaterialApp( theme: ThemeData(prima...
21,299
https://github.com/Aeronica/TestMod/blob/master/src/main/java/tld/testmod/common/animation/EdgarAllenBlockLever.java
Github Open Source
Open Source
MIT
null
TestMod
Aeronica
Java
Code
118
495
package tld.testmod.common.animation; import net.minecraft.block.material.Material; import net.minecraft.block.state.IBlockState; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumHand; import net.minecraft.u...
2,533
https://github.com/etoplife/webpack-starter-template/blob/master/src/scss/includes/items/_video-item.scss
Github Open Source
Open Source
MIT
null
webpack-starter-template
etoplife
SCSS
Code
84
294
.video-item { width: 500px; cursor: pointer; &__picture { position: relative; @include relativeHeight(66); margin: 0 0 15px; } &__img { @include fullAbsolute; object-fit: cover; } &__play-button { z-index: 1; position: absolute; top: 50%; left: 50%; transform: tr...
44,359
https://github.com/jjbc93/myPlan/blob/master/src/AppBundle/Controller/CategoryController.php
Github Open Source
Open Source
MIT
null
myPlan
jjbc93
PHP
Code
106
437
<?php namespace AppBundle\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; use AppBundle\Entity\Categoria; use AppBundle\Form\CategoriaType; use Symfony\Component\HttpFoundation\Session\Sessi...
35,477
https://github.com/gjones/estc-docs-prototype/blob/master/src/components/steps/mission_step/index.tsx
Github Open Source
Open Source
Apache-2.0
null
estc-docs-prototype
gjones
TypeScript
Code
150
578
import Link from 'next/link' import styled from 'styled-components' import { EuiFlexGroup, EuiFlexItem, EuiText, EuiTitle } from '@elastic/eui' type Props = { stepNumber: string title: string description: string url: string } export default function MissionStep(props: Props) { const { stepNumber, title, des...
41,648
https://github.com/kfirgirstein/ACISDetector/blob/master/src/arch_v2_classifier.py
Github Open Source
Open Source
MIT
2,022
ACISDetector
kfirgirstein
Python
Code
872
2,856
import numpy as np import torch import torch.nn as nn class CNN(nn.Module): """ A convolutional classifier model based on PyTorch nn.Modules. This CNN is made out of the specified amount of convolutional layers endded by a fully connected layer The architecture is: [(CONV -> ReLU)* layers -> Linea...
1,176
https://github.com/lishewen/JT809/blob/master/src/JT809.Protocol/Extensions/JT809EnumExtensions.cs
Github Open Source
Open Source
MIT
2,021
JT809
lishewen
C#
Code
559
1,843
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Reflection; namespace JT809.Protocol.Extensions { /// <summary> /// 枚举扩展 /// </summary> public static class JT809EnumExtensions { /// <summary> /// 转为整型 /// </summar...
20,126
https://github.com/sumedhpb/testrunner/blob/master/pytests/tuqquery/tuq_chained_let.py
Github Open Source
Open Source
Apache-2.0
2,020
testrunner
sumedhpb
Python
Code
2,874
7,226
from .tuq import QueryTests class QueryChainedLetTests(QueryTests): def setUp(self): super(QueryChainedLetTests, self).setUp() self.log.info("============== QueryChainedLetTests setup has started ==============") self.log.info("============== QueryChainedLetTests setup has completed ===...
26,639
https://github.com/arthrfrts/manteiga/blob/master/_sass/_base.scss
Github Open Source
Open Source
MIT
null
manteiga
arthrfrts
SCSS
Code
628
2,422
/* Basics */ html { font-size: 62.5%; // 10px = 1rem; font-family: $base-font-family; box-sizing: border-box; } *, *::before, *::after { box-sizing: inherit; } body { background-color: $color-background; color: $color-text; font: normal #{1.6rem}/#{1.5} $base-font-family; width: 100vw; overflow-x: hidden; ...
437
https://github.com/Criticalcarpet/Hoaku/blob/master/frontend/components/Header.vue
Github Open Source
Open Source
MIT
null
Hoaku
Criticalcarpet
Vue
Code
267
1,136
<template> <header> <main> <div class="logo"> <img src="../../assets/site-logo.png" /> <div class="mdi mdi-chevron-down"></div> </div> <div class="menu_search"> <div class="search_container"> <div class...
34,003
https://github.com/clabroche/stack-monitor/blob/master/src/models/stack.js
Github Open Source
Open Source
MIT
2,021
stack-monitor
clabroche
JavaScript
Code
159
459
import axios from "../helpers/axios" import Service from "./service" import Socket from '../helpers/socket'; function Stack () { /** @type {import('./service').default[]} */ this.services = [] Socket.on('conf:update', data => { if(data.length) { data.map(label => { const service = this.services...
16,582
https://github.com/jgnewman96/ssg_and_note_taker/blob/master/src/components/RecentPosts.vue
Github Open Source
Open Source
MIT
null
ssg_and_note_taker
jgnewman96
Vue
Code
183
734
<template> <div id="recent_posts"> <h2>Recent Posts</h2> <ul id="array-rendering"> <li v-for="item in recent_posts" :key="item.id"> <router-link :to="`/post/${item.link_path}`"> {{ item.metadata.title }} </router-link> <ul id="recent_posts_metadata"> <li> ...
42,247
https://github.com/caturdhirgaoptima/sicapil/blob/master/backend/controllers/superadmin/SetFormulirController.php
Github Open Source
Open Source
BSD-3-Clause
null
sicapil
caturdhirgaoptima
PHP
Code
237
1,237
<?php namespace backend\controllers\superadmin; use Yii; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; use yii\helpers\ArrayHelper; use yii\helpers\Url; use yii\filters\AccessControl; use yii\web\ForbiddenHttpException; use backend\models\LayananModel; use backend\models\Urusa...
45,057
https://github.com/ywmn20/mall_berry/blob/master/src/views/home/Home.vue
Github Open Source
Open Source
MIT
null
mall_berry
ywmn20
Vue
Code
277
1,743
<template> <div id="home"> <nav-bar class="home-nav"><div slot="center">草莓街</div></nav-bar> <tab-control :titles="['流行','新款','精选']" @tabClick="tabClick" class="tab-control" v-show="isTab" ref="tabControl1" ></tab-control> <scroll class="scrollCon" ref="scroll" ...
17,728
https://github.com/xaiguy/abstractions/blob/master/ethereum/public/namehash.sql
Github Open Source
Open Source
MIT
2,021
abstractions
xaiguy
SQL
Code
41
142
-- Enables the use of ENS's namehash function -> https://docs.ens.domains/contract-api-reference/name-processing -- Python namehash library -> https://github.com/antonio-mendes/ens-namehash-py/tree/update_library DROP FUNCTION IF EXISTS namehash(name_to_hash text); CREATE FUNCTION namehash(name_to_hash text) RETUR...
15,651
https://github.com/GadSun/julongchain/blob/master/src/test/java/org/bcia/julongchain/core/ledger/kvledger/history/IHistoryQueryExecutorTest.java
Github Open Source
Open Source
Apache-2.0
2,018
julongchain
GadSun
Java
Code
207
911
package org.bcia.julongchain.core.ledger.kvledger.history; import org.bcia.julongchain.common.ledger.IResultsIterator; import org.bcia.julongchain.core.ledger.INodeLedger; import org.bcia.julongchain.core.ledger.kvledger.txmgmt.statedb.QueryResult; import org.bcia.julongchain.core.ledger.ledgerconfig.LedgerConfig; imp...
25,991
https://github.com/SounakMandal/AlgoBook/blob/master/cpp/maths/Newton-Raphson_method.cpp
Github Open Source
Open Source
MIT
2,022
AlgoBook
SounakMandal
C++
Code
269
710
#include<bits/stdc++.h> using namespace std; double val(vector<int>&func,double x){ double ans=0; for(int i=0;i<(int)func.size();i++){ ans+=func[i]*pow(x,(int)func.size()-i-1); } return ans; } //This function is used to find the value of the polynomial func at any value x int main() { vector...
15,420
https://github.com/13528770807/practice/blob/master/qiang01_test/zq_08_wrapper.py
Github Open Source
Open Source
MIT
null
practice
13528770807
Python
Code
138
551
class Animal(): name = 'monkey' age = 10 __nick_name = "something just like this" def __get_nike_name(self): return self.__nick_name def show_nick_name(self): print('昵称 :' + self.__get_nike_name()) def show_nick_name_for_other(self, abc): self.show_nick_name() ...
16,821
https://github.com/CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons/blob/master/mayan/apps/sources/urls.py
Github Open Source
Open Source
Apache-2.0
2,021
fall-2021-hw2-451-unavailable-for-legal-reasons
CMU-313
Python
Code
126
1,105
from django.conf.urls import url from .api_views import ( APIStagingSourceFileView, APIStagingSourceFileImageView, APIStagingSourceFileUploadView, APIStagingSourceListView, APIStagingSourceView ) from .views import ( SourceCheckView, SourceCreateView, SourceDeleteView, SourceEditView, SourceListVie...
32,936
https://github.com/MichaelHaffley/dotfiles-1/blob/master/zsh/custom/aliases.zsh
Github Open Source
Open Source
MIT
null
dotfiles-1
MichaelHaffley
Shell
Code
122
771
alias sshrhel='ssh phaffley@et.local@etinhaffley01.et.local' #alias sshdev='ssh phaffley@et.local@etintacos01.et.local' #alias sshdev='ssh phaffley@et.local@etintacos01.et.local' alias sshetssprod='ssh phaffley@et.local@tacos-scheduler.internal.salesforce.com' alias sshetssqa='ssh phaffley@et.local@tacos-scheduler-stag...
30,084
https://github.com/emilioaor/sell-control/blob/master/database/seeds/UserSeeder.php
Github Open Source
Open Source
MIT
null
sell-control
emilioaor
PHP
Code
86
322
<?php use Illuminate\Database\Seeder; class UserSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $user = new \App\User(); $user->name = 'Emilio Ochoa'; $user->email = 'emilioaor@gmail.com'; $user->password...
2,986
https://github.com/neon60/HIP/blob/master/tests/catch/unit/deviceLib/threadfence_system.cc
Github Open Source
Open Source
MIT
null
HIP
neon60
C++
Code
483
1,178
/* Copyright (c) 2021 - present Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to us...
22,312
https://github.com/drahnr/shinypenny/blob/master/src/types/receipts.rs
Github Open Source
Open Source
Apache-2.0, MIT
2,022
shinypenny
drahnr
Rust
Code
213
768
use super::*; use std::path::{Path, PathBuf}; // A set of receipts #[derive(Debug, Clone, Eq, PartialEq, Default)] pub struct Receipts(indexmap::IndexSet<PathBuf>); impl<A> std::iter::FromIterator<A> for Receipts where A: std::convert::AsRef<Path>, { fn from_iter<I: IntoIterator<Item = A>>(iter: I) -> Self { ...
36,419
https://github.com/ingluisruedaw/Ferresoft/blob/master/Code/vista/inventario/Producto/tabla.php
Github Open Source
Open Source
Apache-2.0
null
Ferresoft
ingluisruedaw
PHP
Code
101
524
<div id="page-wrapper" > <div class="container-fluid"> <div class="row"> <div class="col-lg-12"> <h1 class="page-header">Listado De Productos</h1> </div> </div> <!-- ... Your content goes here ... --> <table id...
8,476
https://github.com/Ayon134/code_for_Kids/blob/master/tkinter--source/tk8.py
Github Open Source
Open Source
MIT
null
code_for_Kids
Ayon134
Python
Code
36
163
#radio--buttons from tkinter import * from tkinter.ttk import * window = Tk() window.title("Welcome to LikeGeeks app") window.geometry('350x200') rad1 = Radiobutton(window,text='First', value=1) rad2 = Radiobutton(window,text='Second', value=2) rad3 = Radiobutton(window,text='Third', value=3) rad1.grid(column=...
33,972
https://github.com/sdk-team/openapi-sdk-php/blob/master/src/SdkTest/SdkTest.php
Github Open Source
Open Source
Apache-2.0
2,020
openapi-sdk-php
sdk-team
PHP
Code
18
68
<?php namespace AlibabaCloud\SdkTest; use AlibabaCloud\Client\Resolver\VersionResolver; /** * @method static V20190225\SdkTestApiResolver v20190225() */ class SdkTest extends VersionResolver { }
23,784
https://github.com/Tilapiatsu/blender-custom_conf/blob/master/scripts/addons/animation_nodes/sockets/bmesh.py
Github Open Source
Open Source
MIT
2,022
blender-custom_conf
Tilapiatsu
Python
Code
57
200
import bpy import bmesh from .. base_types import AnimationNodeSocket class BMeshSocket(bpy.types.NodeSocket, AnimationNodeSocket): bl_idname = "an_BMeshSocket" bl_label = "BMesh Socket" dataType = "BMesh" drawColor = (0.1, 0.4, 0.1, 1) storable = False comparable = True @classmethod d...
27,772
https://github.com/LazorGao/Test/blob/master/src/lang/IntergerTest.java
Github Open Source
Open Source
Unlicense
2,015
Test
LazorGao
Java
Code
44
110
package lang; public class IntergerTest { public static void main(String[] args) { Integer a = 1000, b = 1000; System.out.println(a == b);//1 Integer c = 100, d = 100; System.out.println(c == d);//2 int e = 1000, f = 1000; System.out.println(e == f); } }
31,013
https://github.com/asifm42/scu/blob/master/app/scu/transformers/SlideTransformer.php
Github Open Source
Open Source
MIT
null
scu
asifm42
PHP
Code
155
514
<?php namespace Black\Transformers; use League\Fractal\TransformerAbstract; use Black\Models\Slide; class SlideTransformer extends TransformerAbstract { /** * List of resources possible to include * * @var array */ protected $availableIncludes = array ( 'presentation' ); ...
13,800
https://github.com/renatakov/goit-react-with--bootstrap/blob/master/src/pages/Home.js
Github Open Source
Open Source
MIT
null
goit-react-with--bootstrap
renatakov
JavaScript
Code
329
1,092
import React from "react"; import Slider from "../components/Slider"; import { Container, Col, Row, Card } from "react-bootstrap"; import img1 from "../images/img101.png"; import img2 from "../images/img102.jpg"; import img3 from "../images/img103.png"; import Toggler from "../components/Toggler"; function Home() { ...
14,564
https://github.com/alex-rufo/cache/blob/master/src/Factory/CacheFactory.php
Github Open Source
Open Source
MIT
2,016
cache
alex-rufo
PHP
Code
188
623
<?php namespace Cmp\Cache\Factory; use Cmp\Cache\Backend\ChainCache; use Cmp\Cache\Backend\ArrayCache; use Cmp\Cache\Backend\NullCache; use Cmp\Cache\Backend\RedisCache; use Cmp\Cache\Backend\RedisClusterCache; use Cmp\Cache\Cache; use Cmp\Cache\Decorator\LoggerCache; use Psr\Log\LoggerInterface; use Psr\Log\LogLevel;...
19,934
https://github.com/ParsonsRD/template_builder/blob/master/template_builder/configs/cta-temp_run.sh
Github Open Source
Open Source
BSD-3-Clause
2,021
template_builder
ParsonsRD
Shell
Code
1,131
3,569
#!/bin/sh # ------------------------------------------------------------------------------ # # General script for running sim_hessarray simulations for # a HESS 4-telescope system (phase 1 variants), or # the HESS-2 5-telescope system in hybrid mode, or # a CTA benchmark array (9 telescopes), or # ...
11,206
https://github.com/CSIS-iLab/energy-jti/blob/master/wp-content/themes/csisjti/functions.php
Github Open Source
Open Source
MIT
null
energy-jti
CSIS-iLab
PHP
Code
1,382
4,726
<?php /** * CSIS Mag functions and definitions * * @link https://developer.wordpress.org/themes/basics/theme-functions/ * * @package CSIS iLab * @subpackage @package CSISJTI * @since 1.0.0 */ /** * Table of Contents: * Theme Support * Required Files * Register Styles * Register Scripts * Register Menus ...
22,855
https://github.com/chs6558/chs6558.github.io/blob/master/node_modules/styled-icons/typicons/ArrowDown/ArrowDown.esm.js
Github Open Source
Open Source
MIT
null
chs6558.github.io
chs6558
JavaScript
Code
4
20
export * from '@styled-icons/typicons/ArrowDown';
27,356
https://github.com/kvakvs/erlPress_core/blob/master/include/eg.hrl
Github Open Source
Open Source
MIT
2,018
erlPress_core
kvakvs
Erlang
Code
511
1,178
-ifndef('eg.hrl'). -define('eg.hrl',inc). %%========================================================================== %% Copyright (C) 2003 Joe Armstrong %% %% Permission is hereby granted, free of charge, to any person obtaining a %% copy of this software and associated documentation files (the %% "Software"), to d...
5,733
https://github.com/enkidevs/curriculum-processors/blob/master/packages/curriculum-parser-markdown/plugins/insight/section.js
Github Open Source
Open Source
MIT
2,021
curriculum-processors
enkidevs
JavaScript
Code
134
382
const { sectionNames } = require('@enkidevs/curriculum-helpers'); module.exports = function section() { return transform; function transform(ast) { const newAstChildren = []; let sec; let current; let next; for (let astIndex = 0; astIndex < ast.children.length; astIndex += 1) { current =...
32,909
https://github.com/tnielens/saddle/blob/master/saddle-core/src/main/scala/org/saddle/vec/VecImpl.scala
Github Open Source
Open Source
Apache-2.0
2,022
saddle
tnielens
Scala
Code
1,789
4,638
/** Copyright (c) 2013 Saddle Development Team * * 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...
36,285
https://github.com/rl337/bust/blob/master/src/png/png.cpp
Github Open Source
Open Source
Apache-2.0
null
bust
rl337
C++
Code
1,259
4,000
#include "png.h" namespace bust::png { PixelOutOfBounds png_pixel_out_of_bounds; PNG::PNG(uint32_t width, uint32_t height) : crc() { this->width = width; this->height = height; this->bitdepth = 8; this->colortype = 6; this->compression = 0; this->filter = 0; ...
23,945
https://github.com/caoddx/easy-adapter/blob/master/easyadapter/src/main/java/com/github/caoddx/easyadapter/dsl/ExpandableDsl.kt
Github Open Source
Open Source
MIT
2,018
easy-adapter
caoddx
Kotlin
Code
146
464
package com.github.caoddx.easyadapter.dsl import android.view.View import com.github.caoddx.easyadapter.Group import com.github.caoddx.easyadapter.datasource.ExpandableDataSource import com.github.caoddx.easyadapter.mix.ExpandableMix class ExpandableDsl<T, R, D : ExpandableDataSource<T, R>>(private val dataSource: D)...
28,699
https://github.com/asafdav/hapi-auth-extra/blob/master/lib/index.js
Github Open Source
Open Source
MIT
2,021
hapi-auth-extra
asafdav
JavaScript
Code
426
1,164
var Hoek = require('hoek'); var Boom = require('boom'); var Q = require('q'); var Roles = require('./roles'); var Schema = require('./schema'); var ACL = require('./acl'); var Auth = require('./auth'); var pluginName = 'hapiAuthExtra'; var internals = { defaults: { roles : Roles.roles, tokenAut...
6,450
https://github.com/ggayowsky/ember-concurrency/blob/master/tests/dummy/app/components/start-task-example/component.js
Github Open Source
Open Source
MIT
2,019
ember-concurrency
ggayowsky
JavaScript
Code
90
244
// BEGIN-SNIPPET start-task-example import Component from '@ember/component'; import { task, timeout } from 'ember-concurrency'; export default Component.extend({ status: null, myTask: task(function * (msg = "init") { let status = `myTask.perform(${msg})...`; this.set('status', status); yield timeout...
25,640
https://github.com/WyroneBlue/BLOK-TECH/blob/master/views/auth/registerSuccess.hbs
Github Open Source
Open Source
MIT
null
BLOK-TECH
WyroneBlue
null
Spoken
19
67
<h1>Welcome, {{ form.name }}</h1> <h1>You have succesfully registered with:</h1> <ul> <li>Email: {{ form.email }}</li> <li>School: {{ form.school }}</li> </ul>
9,680
https://github.com/Joelforr/-jf3023-_CodeLab1_Wk8HW/blob/master/CodeLab1 Week8/Assets/PlayerController.cs
Github Open Source
Open Source
Unlicense
null
-jf3023-_CodeLab1_Wk8HW
Joelforr
C#
Code
116
452
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerController : MonoBehaviour { private Rigidbody rb; public int spacebarClicks = 0; // Use this for initialization void Start () { //this.gameObject.AddComponent<BasicMultiplier>(); rb = GetComp...
41,576
https://github.com/PaschalStelligent/generatessh/blob/master/03-iam/iamcmd.sh
Github Open Source
Open Source
MIT
null
generatessh
PaschalStelligent
Shell
Code
442
2,165
aws iam list-policies --profile labs-mfa aws cloudformation create-stack --stack-name Paschal-Onor2 --template-body file://$WDIR/iamcfn.yml --parameters file://$WDIR/iamparameter.json --region us-east-1 --profile labs-mfa --capabilities CAPABILITY_NAMED_IAM aws cloudformation update-stack --stack-name Paschal-Onor2 -...
14,748
https://github.com/OneLemonyBoi/LemonLib/blob/master/src/main/java/onelemonyboi/lemonlib/trait/Trait.java
Github Open Source
Open Source
MIT
null
LemonLib
OneLemonyBoi
Java
Code
110
342
package onelemonyboi.lemonlib.trait; import java.util.HashMap; import java.util.Map; import java.util.function.Consumer; public abstract class Trait implements Cloneable { private final Map<Class<?>, Consumer<Object>> tweakers = new HashMap<>(); /** * Applies any tweaks this trait has onto the passed i...
30,149
https://github.com/laserlemon/videoclip/blob/master/videoclip.gemspec
Github Open Source
Open Source
MIT
2,022
videoclip
laserlemon
Ruby
Code
74
281
# encoding: utf-8 Gem::Specification.new do |gem| gem.name = "videoclip" gem.version = "1.0.0" gem.authors = ["Steve Richert"] gem.email = ["steve.richert@gmail.com"] gem.description = "Save videos from popular sites alongside your ActiveRecord models" gem.summary = "Save videos from popu...
32,445
https://github.com/tvdijen/Stepup-RA/blob/master/src/Surfnet/StepupRa/RaBundle/Resources/views/Vetting/partial/progressBar.html.twig
Github Open Source
Open Source
Apache-2.0
2,019
Stepup-RA
tvdijen
Twig
Code
83
329
<div class="row progress-steps"> <div class="col-xs-12 col-md-3 {% if step != 1 %}hidden-xs text-muted{% endif %}">1. {{ 'ra.vetting.progress_bar.enter_registration_code'|trans }}</div> <div class="col-xs-12 col-md-3 {% if step != 2 %}hidden-xs text-muted{% endif %}">2. {{ 'ra.vetting.progress_bar.prove_possess...
11,655
https://github.com/opexdev/OPEX-core/blob/master/wallet/wallet-ports/wallet-persister-postgres/src/main/kotlin/co/nilin/opex/wallet/ports/postgres/model/WithdrawModel.kt
Github Open Source
Open Source
MIT
2,022
OPEX-core
opexdev
Kotlin
Code
92
376
package co.nilin.opex.wallet.ports.postgres.model import org.springframework.data.annotation.Id import org.springframework.data.relational.core.mapping.Column import org.springframework.data.relational.core.mapping.Table import java.math.BigDecimal import java.time.LocalDateTime @Table("withdraws") class WithdrawMode...
13,018
https://github.com/mattnite/wz/blob/master/src/parser/client.zig
Github Open Source
Open Source
MIT
null
wz
mattnite
null
Spoken
442
1,416
const std = @import("std"); usingnamespace @import("common.zig"); const base64 = std.base64; const ascii = std.ascii; const math = std.math; const time = std.time; const rand = std.rand; const mem = std.mem; const assert = std.debug.assert; pub fn extractMaskByte(mask: u32, index: usize) u8 { return @truncate(u...
25,204
https://github.com/danwiesenthal/simple_mf/blob/master/src/skipgram.py
Github Open Source
Open Source
MIT
2,022
simple_mf
danwiesenthal
Python
Code
484
1,664
# To run this notebook, you'll need to download the urban dictionary dataset. # You can do that by registering for Kaggle and downloading # the dataset from here: # https://www.kaggle.com/therohk/urban-dictionary-words-dataset # You'll also need to install Spacy & run: # python -m spacy download en_core_web_sm import ...
38,774
https://github.com/spurious/safecode-mirror/blob/master/tools/clang/lib/AST/DeclBase.cpp
Github Open Source
Open Source
NCSA
2,019
safecode-mirror
spurious
C++
Code
5,285
15,888
//===--- DeclBase.cpp - Declaration AST Node Implementation ---------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
45,671
https://github.com/lamhq/yii2-cms/blob/master/themes/adminlte/views/account/index.php
Github Open Source
Open Source
BSD-3-Clause
null
yii2-cms
lamhq
PHP
Code
85
354
<?php use yii\helpers\Html; use yii\grid\GridView; use app\models\User; use app\components\EnumColumn; /* @var $this yii\web\View */ /* @var $searchModel backend\models\AccountSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = Yii::t('app', 'Accounts'); $this->params['breadcrumbs'][] = $th...
25,767
https://github.com/apereo-tesuto/tesuto/blob/master/tesuto-delivery-services/tesuto-delivery-core/src/test/groovy/org/cccnext/tesuto/delivery/service/DeliverySpecBase.groovy
Github Open Source
Open Source
Apache-2.0
2,020
tesuto
apereo-tesuto
Groovy
Code
594
2,910
package org.cccnext.tesuto.delivery.service import org.cccnext.tesuto.content.dto.competency.CompetencyDifficultyDto import org.cccnext.tesuto.content.dto.competency.CompetencyDto import org.cccnext.tesuto.content.dto.metadata.CompetencyCategoryMetadataDto import org.cccnext.tesuto.content.dto.metadata.PerformanceRang...
25,827
https://github.com/lechium/iOS1351Headers/blob/master/System/Library/PrivateFrameworks/SpringBoard.framework/SBProcessSettings.h
Github Open Source
Open Source
MIT
2,022
iOS1351Headers
lechium
C
Code
168
743
/* * This header is generated by classdump-dyld 1.5 * on Wednesday, October 27, 2021 at 3:23:45 PM Mountain Standard Time * Operating System: Version 13.5.1 (Build 17F80) * Image Source: /System/Library/PrivateFrameworks/SpringB...
41,342
https://github.com/RainbowDashy/bytebase/blob/master/plugin/advisor/mysql/advisor_column_no_null_test.go
Github Open Source
Open Source
Apache-2.0
null
bytebase
RainbowDashy
Go
Code
271
1,036
package mysql import ( "testing" "github.com/bytebase/bytebase/common" "github.com/bytebase/bytebase/plugin/advisor" ) func TestColumnNoNull(t *testing.T) { tests := []test{ { statement: "CREATE TABLE book(id int, name varchar(255))", want: []advisor.Advice{ { Status: advisor.Warn, Code: ...
28,554
https://github.com/mmaquevice/neo4dart/blob/master/lib/src/neo4dart/client/cypher/cypher_executor.dart
Github Open Source
Open Source
BSD-3-Clause
2,016
neo4dart
mmaquevice
Dart
Code
79
233
part of neo4dart; class CypherExecutor { final _logger = new Logger("CypherExecutor"); http.Client client; CypherExecutor() { client = new http.Client(); } CypherExecutor.withClient(this.client); executeCypher(String query, {Map properties}) async { Map map; if(properties == null || prope...
45,181
https://github.com/gusalv1985/php/blob/master/application/helpers/session_helper.php
Github Open Source
Open Source
MIT
null
php
gusalv1985
PHP
Code
161
371
<?php /*Ese codigo se debe cargar en un constructor antes que cualquier otro codigo o etiqueta html. Sino se cumple, da error en la sesion. Este helper permite trabajar sobre la variable de sesion $_SESSION */ session_start(); /*siempre presente para interactuar con la sesion.*/ /*creamos un elemento en el array $_SES...
25,005
https://github.com/wpfpizicai/tr/blob/master/www/resource/scss/common/colors.scss
Github Open Source
Open Source
MIT
2,016
tr
wpfpizicai
SCSS
Code
166
1,186
//colors $body_bg_color: #EEEFF1; $color_shark_approx: #222428; $white: #fff; $font_black: #323b3d; $color_chicago_approx: #5e5e5e; $color_brick_red_approx: #c9394a; $color_storm_dust_approx: #666; $color_quill_gray_approx: #d2d2d2; $color_french_gray_approx: #b7bcc0; $color_vulcan_approx: #14191e; $color_gallery_appro...
28,805
https://github.com/saidbakr/darkhttpd/blob/master/devel/fuzz_llvm_make_safe_uri.c
Github Open Source
Open Source
ISC
2,022
darkhttpd
saidbakr
C
Code
624
1,607
/* Wrapper around make_safe_url() for fuzzing with LLVM. * Aborts if the output is deemed safe but contains /../ or /./ */ #include <assert.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define main darkhttpd_main #include "../darkhttpd.c" #undef main /* This is the code for the ...
42,166
https://github.com/Percona-Lab/percona-xtradb-cluster-operator/blob/master/pkg/controller/pxc/secrets.go
Github Open Source
Open Source
Apache-2.0
2,019
percona-xtradb-cluster-operator
Percona-Lab
Go
Code
269
1,005
package pxc import ( "context" "crypto/rand" "fmt" "math/big" mrand "math/rand" "time" api "github.com/percona/percona-xtradb-cluster-operator/pkg/apis/pxc/v1" "github.com/pkg/errors" corev1 "k8s.io/api/core/v1" k8serror "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k...
16,183
https://github.com/sonbua/Sonak/blob/master/legacy/CountFingerReachingWhenTexting/FingerMovingSimulation/Core/Hands/IHand.cs
Github Open Source
Open Source
MIT
null
Sonak
sonbua
C#
Code
14
46
namespace FingerMovingSimulation.Core.Hands { internal interface IHand { void ReturnToHomeRow(); double Press(Keys key); } }
46,711
https://github.com/sigrlami/accumulate/blob/master/protocol/hash_algorithm.go
Github Open Source
Open Source
MIT
2,021
accumulate
sigrlami
Go
Code
239
694
package protocol import ( "crypto/sha256" "encoding/json" "fmt" "strings" ) type HashAlgorithm uint8 const ( Unhashed HashAlgorithm = iota UnknownHashAlgorithm SHA256 SHA256D ) func HashAlgorithmByName(s string) HashAlgorithm { switch strings.ToUpper(s) { case "", "NONE", "RAW", "UNHASHED": return Unhas...
43,952
https://github.com/nlasagni/sales-taxes-problem/blob/master/src/main/kotlin/domain/service/TaxRateProvider.kt
Github Open Source
Open Source
MIT
null
sales-taxes-problem
nlasagni
Kotlin
Code
46
112
package domain.service import domain.model.Product import domain.model.TaxRate /** * Provides tax rate based on [Product]. * * @author Nicola Lasagni on 11/08/2021. */ interface TaxRateProvider { /** * Provides the [TaxRate] for the given [product]. * @return The product-related tax rate. */ ...
42,004
https://github.com/iceroot/iceroot-ext/blob/master/src/test/java/com/icexxx/iceroot/ext/IceReflectTest.java
Github Open Source
Open Source
Apache-2.0
null
iceroot-ext
iceroot
Java
Code
20
89
package com.icexxx.iceroot.ext; import org.junit.Test; public class IceReflectTest { //@Test public void create(){ Class create = IceReflectUtil.create("zzz.java.ccc"); System.out.println(create); System.out.println(create.getName()); } }
17,618
https://github.com/PietroMaximoff/pspice-parser/blob/master/ConvertedSchematicFiles/TRAN_ASTABLE_1/TRAN_ASTABLE_1.sch
Github Open Source
Open Source
MIT
2,020
pspice-parser
PietroMaximoff
Eagle
Code
885
1,852
EESchema Schematic File Version 2 date LIBS:power LIBS:device LIBS:transistors LIBS:conn LIBS:linear LIBS:regul LIBS:74xx LIBS:cmos4000 LIBS:adc-dac LIBS:memory LIBS:xilinx LIBS:special LIBS:microcontrollers LIBS:dsp LIBS:microchip LIBS:analog_switches LIBS:motorola LIBS:texas LIBS:intel LIBS:audio LIBS:interface LIB...
1,510
https://github.com/handtruth/mc-tools/blob/master/modules/paket/build.gradle.kts
Github Open Source
Open Source
MIT
null
mc-tools
handtruth
Kotlin
Code
35
338
plugins { id("kotlinx-atomicfu") kotlin("plugin.serialization") } kotlin { explicitApi() sourceSets.all { languageSettings { optIn("io.ktor.utils.io.core.ExperimentalIoApi") optIn("io.ktor.utils.io.core.ExperimentalIoApi") optIn("kotlinx.coroutines.ObsoleteCo...
6,062
https://github.com/grubeli/facebook-delete/blob/master/deleter.go
Github Open Source
Open Source
MIT
null
facebook-delete
grubeli
Go
Code
1,615
5,294
//usr/bin/env go run $0 "$@"; exit package main import ( "flag" "fmt" "github.com/AlecAivazis/survey" "github.com/cheggaaa/pb/v3" "github.com/juju/persistent-cookiejar" "io/ioutil" "net/http" "net/url" "sort" "strconv" "strings" "sync" "time" ) const numRoutines int = 5 const facebookURL string = "https:...
16,604
https://github.com/riscoscloverleaf/chatcube/blob/master/riscos/libs/tbx/tbx/openermanager.h
Github Open Source
Open Source
MIT
null
chatcube
riscoscloverleaf
C
Code
305
595
/* * tbx RISC OS toolbox library * * Copyright (C) 2010 Alan Buckley All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without lim...
1,989
https://github.com/amaierhofer/callmeback/blob/master/app/controllers/application_controller.rb
Github Open Source
Open Source
MIT
2,018
callmeback
amaierhofer
Ruby
Code
21
82
class ApplicationController < ActionController::Base helper_method :client private def client @client ||= Client.current(cookies.permanent[:auth_token], request.user_agent) do |auth_token| cookies.permanent[:auth_token] = auth_token end end end
8,207
https://github.com/drm42/fvm-drm/blob/master/src/fvm/scripts/flowoversphere.py
Github Open Source
Open Source
MIT
null
fvm-drm
drm42
Python
Code
577
3,196
#!/usr/bin/env python import pdb import sys import math sys.setdlopenflags(0x100|0x2) import fvmbaseExt import importers #pdb.set_trace() atype = 'double' #atype = 'tangent' if atype == 'double': import models_atyped_double as models import exporters_atyped_double as exporters elif atype == 'tangent': im...
10,652
https://github.com/thibaudsalsa/HUB_PROJECT_TOAL_WAR/blob/master/views/account/profile.handlebars
Github Open Source
Open Source
MIT
null
HUB_PROJECT_TOAL_WAR
thibaudsalsa
null
Spoken
90
379
<div class="container"> <h4>Profil</h4> <form method="POST" action="/account?_method=PUT"> <label for="email">Email</label> <input type="email" name="email" id="email" value="{{user.email}}"> <label for="name">Nom</label> <input type="text" name="name" id="name" value="{{user.name}}"> <label>Ima...
41,375
https://github.com/nbudin/blockly_interpreter/blob/master/lib/blockly_interpreter/interpreter.rb
Github Open Source
Open Source
MIT
2,022
blockly_interpreter
nbudin
Ruby
Code
36
165
require 'nokogiri' class BlocklyInterpreter::Interpreter attr_reader :program, :debug_messages def initialize(program) @program = program @debug_messages = [] end def build_execution_context BlocklyInterpreter::ExecutionContext.new(self) end def execute build_execution_context.tap do |co...
42,161
https://github.com/boost-entropy-azure/steampipe-plugin-azure/blob/master/azure-test/tests/azure_compute_snapshot/test-turbot-query.sql
Github Open Source
Open Source
Apache-2.0
2,022
steampipe-plugin-azure
boost-entropy-azure
SQL
Code
15
45
select name, tags, title, akas from azure.azure_compute_snapshot where name = '{{resourceName}}snapshot' and resource_group = '{{resourceName}}'
24,929
https://github.com/adetoak/findtavern/blob/master/resources/views/manage/_partials/new-sub-listing-form.blade.php
Github Open Source
Open Source
MIT
2,017
findtavern
adetoak
PHP
Code
499
2,182
<fieldset> <legend>Sub-Listing Information</legend> <div class="form-group"> <label class="control-label">Sub-Listing title*:</label> <input name="sublistingtitle" type="text" value="{{ old('sublistingtitle') }}" placeholder="Please specify title of listing" class="form-control"...
21,913
https://github.com/handikacatur/e-attend/blob/master/iwak.py
Github Open Source
Open Source
MIT
2,020
e-attend
handikacatur
Python
Code
293
1,465
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait as wait from selenium.webdriver.support import expected_conditions as EC from getpass import getpass import datetime import time print('\n>>> E-ATTEND UNTUK E-LEARNING v0.1 (beta) <<<') u...
20,432
https://github.com/robertoallende/MarvelComics/blob/master/app/src/main/java/com/robertoallende/marvelcomics/entity/StorySummary.java
Github Open Source
Open Source
MIT
null
MarvelComics
robertoallende
Java
Code
44
89
package com.robertoallende.marvelcomics.entity; import java.io.Serializable; public class StorySummary implements Serializable { public String resourceURI; // The path to the individual story resource., public String name; // The canonical name of the story., public String type; // The type of the story ...
2,404
https://github.com/peiandsky/PriorityJobQueue/blob/master/jobqueue/src/test/java/com/birbit/android/jobqueue/messaging/SafeMessageQueueTest.java
Github Open Source
Open Source
MIT, Unlicense, Apache-2.0, BSD-3-Clause
2,022
PriorityJobQueue
peiandsky
Java
Code
24
95
package com.birbit.android.jobqueue.messaging; import com.birbit.android.jobqueue.timer.Timer; public class SafeMessageQueueTest extends MessageQueueTestBase<SafeMessageQueue> { @Override SafeMessageQueue createMessageQueue(Timer timer, MessageFactory factory) { return new SafeMessageQueue(timer, fac...
539
https://github.com/Haulmont/jmix-old/blob/master/modules/ui-themes/src/main/resources/halo/components/pagination/pagination.scss
Github Open Source
Open Source
Apache-2.0
null
jmix-old
Haulmont
SCSS
Code
190
706
/* * Copyright 2020 Haulmont. * * 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...
46,174
https://github.com/asen/smg/blob/master/app/com/smule/smg/rrd/SMGRrdRow.scala
Github Open Source
Open Source
Apache-2.0
2,020
smg
asen
Scala
Code
43
100
package com.smule.smg.rrd /** * Created by asen on 12/8/15. */ /** * An object representing a line returned from rrdtool fetch * @param tss - unix timestamp * @param vals - list of (Double) values fetched */ case class SMGRrdRow(tss: Int, vals: List[Double])
27,375
https://github.com/jimroth/ice-terraform-modules/blob/master/live-example/services/ice-reader/terragrunt.hcl
Github Open Source
Open Source
Apache-2.0
2,019
ice-terraform-modules
jimroth
HCL
Code
112
441
include { path = find_in_parent_folders() } terraform { source = "git::git@github.com:jimroth/ice-terraform-modules//terragrunt-modules/services/ice-reader-elb" # Force Terraform to keep trying to acquire a lock for up to 20 minutes if someone else already has the lock extra_arguments "retry_lock" { ...
7,041
https://github.com/seinlin/actix-net/blob/master/actix-macros/tests/trybuild/main-04-system-path.rs
Github Open Source
Open Source
Apache-2.0, MIT
2,022
actix-net
seinlin
Rust
Code
18
61
mod system { pub use actix_rt::System as MySystem; } #[actix_rt::main(system = "system::MySystem")] async fn main() { futures_util::future::ready(()).await }
7,848
https://github.com/mrsuciu/UA-.NETStandard-Samples/blob/master/Samples/ClientControls.Net4/Common/Client/GdsDiscoverServersDlg.cs
Github Open Source
Open Source
MIT
2,022
UA-.NETStandard-Samples
mrsuciu
C#
Code
1,265
4,087
/* ======================================================================== * Copyright (c) 2005-2020 The OPC Foundation, Inc. All rights reserved. * * OPC Foundation MIT License 1.00 * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation ...
33,379
https://github.com/datenguide/datenguide-blog/blob/master/src/scss/_baseline.scss
Github Open Source
Open Source
MIT
2,019
datenguide-blog
datenguide
SCSS
Code
48
198
body { padding-top: $header-height; font-family: $font-family-default; line-height: 1.4; font-size: $font-size-default; } *, *:before, *:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } a { color: $color-blue-dark; } small { color: $color-gray-dark; } ...
7,867
https://github.com/PPPosik/ComeHere/blob/master/app/src/main/java/com/example/khj_pc/gaonnuri/Listener/DetailNavigationListener.kt
Github Open Source
Open Source
Apache-2.0
null
ComeHere
PPPosik
Kotlin
Code
175
767
package com.example.khj_pc.gaonnuri.Listener import android.app.Activity import android.content.Context import android.content.Intent import android.support.design.widget.NavigationView import android.support.v4.view.GravityCompat import android.view.MenuItem import android.support.v4.widget.DrawerLayout import com.ex...
6,087
https://github.com/tim-hub/QualityCaps_Php/blob/master/app/Observers/SupplierObserver.php
Github Open Source
Open Source
MIT
null
QualityCaps_Php
tim-hub
PHP
Code
35
101
<?php namespace App\Observers; use App\Models\Supplier; // creating, created, updating, updated, saving, // saved, deleting, deleted, restoring, restored class SupplierObserver { public function creating(Supplier $supplier) { // } public function updating(Supplier $supplier) { ...
17,789
https://github.com/Arkenfeldt/tachiyomi-extensions/blob/master/multisrc/overrides/madara/manga3asq/src/Manga3asq.kt
Github Open Source
Open Source
Apache-2.0
2,022
tachiyomi-extensions
Arkenfeldt
Kotlin
Code
19
90
package eu.kanade.tachiyomi.extension.ar.manga3asq import eu.kanade.tachiyomi.multisrc.madara.Madara class Manga3asq : Madara("مانجا العاشق", "https://3asq.org", "ar") { override val useNewChapterEndpoint: Boolean = true }
13,377
https://github.com/snapwire-media/pardot-api/blob/master/src/Traits/CanDelete.php
Github Open Source
Open Source
BSD-2-Clause
2,022
pardot-api
snapwire-media
PHP
Code
102
309
<?php namespace CyberDuck\PardotApi\Traits; /** * Trait to allow the deletion of specific object types in a generic way * * @category PardotApi * @package PardotApi * @author Andrew Mc Cormack <andy@cyber-duck.co.uk> * @copyright Copyright (c) 2018, Andrew Mc Cormack * @license https://github.com...
9,405
https://github.com/ChrisSeattle/data-structures-and-algorithms/blob/master/sorting_algos/quicksort.py
Github Open Source
Open Source
MIT
null
data-structures-and-algorithms
ChrisSeattle
Python
Code
115
249
def quick_sort(arr): """ Sorts an array by choosing a pivot point, then placing all values less than the pivot point value before the pivot point, and all values greater than the pivot point value after the pivot point. Returns a list in acescending order. """ if len(arr) < 2: ...
36,126
https://github.com/arthur-zhang/KiVM/blob/master/include/kivm/kivm.h
Github Open Source
Open Source
MIT
2,022
KiVM
arthur-zhang
C
Code
287
1,033
// // Created by kiva on 2018/2/25. // #pragma once #include <cstdio> #include <cstdint> #include <cstddef> #include <cassert> #include <cstring> #include <cstdlib> #include <shared/types.h> #include <shared/string.h> #include <kivm/oop/oopfwd.h> #define KIVM_VERSION_STRING "1.0.1" #ifdef KIVM_DEBUG #define D(fmt, ...
14,544
https://github.com/ivadasz/DragonFlyBSD/blob/master/sys/kern/subr_alist.c
Github Open Source
Open Source
BSD-3-Clause
2,022
DragonFlyBSD
ivadasz
C
Code
3,914
10,637
/* * ALIST.C - Bitmap allocator/deallocator, using a radix tree with hinting. * Unlimited-size allocations, power-of-2 only, power-of-2 * aligned results only. * * Copyright (c) 2007 The DragonFly Project. All rights reserved. * * This code is derived from software contributed to The DragonFly Project * by...
13,443