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/surajpattanaik/Data-Structure-and-Algorithm-Java-interview-kit/blob/master/CodingBlocks Training/Day19/detectCycleLinkedList.java
Github Open Source
Open Source
MIT
null
Data-Structure-and-Algorithm-Java-interview-kit
surajpattanaik
Java
Code
161
525
package Lecture19; import Lecture19.LinkedList.Node; // time complexity: O(N) // space complexity: O(1) public class detectCycleLinkedList { public static void main(String[] args) throws Exception { LinkedList list = new LinkedList(); list.addFirst(10); list.addLast(20); list.addLast(30); list.addLast(...
35,789
https://github.com/erebor/cheddar-ios/blob/master/Classes/CDINoListsView.h
Github Open Source
Open Source
BSD-2-Clause
2,022
cheddar-ios
erebor
C
Code
30
73
// // CDINoListsView.h // Cheddar for iOS // // Created by Sam Soffes on 5/24/12. // Copyright (c) 2012 Nothing Magical. All rights reserved. // @interface CDINoListsView : UIView @end
8,760
https://github.com/kestra-io/kestra/blob/master/repository-memory/src/main/java/io/kestra/repository/memory/MemoryMetricRepository.java
Github Open Source
Open Source
Apache-2.0
2,023
kestra
kestra-io
Java
Code
172
627
package io.kestra.repository.memory; import io.kestra.core.models.executions.Execution; import io.kestra.core.models.executions.MetricEntry; import io.kestra.core.models.executions.metrics.MetricAggregations; import io.kestra.core.repositories.ArrayListTotal; import io.kestra.core.repositories.MetricRepositoryInterfac...
22,023
https://github.com/ChaosGroup/react-multi-select/blob/master/lib/handle-selection/toggle-item-selection-strategy.ts
Github Open Source
Open Source
MIT
2,019
react-multi-select
ChaosGroup
TypeScript
Code
183
424
import { TStateUpdate, TSelectionContext, STRATEGY_NAME } from './types'; /** * Toggles the selection status of for the passed data in the set of the selection context. * If the value of the 'data' field is present in the set, it is removed from the set (the item is unselected). * If the value wasn't present in the...
48,262
https://github.com/jangocheng/Weex-demo/blob/master/src/views/home.vue
Github Open Source
Open Source
MIT
2,018
Weex-demo
jangocheng
Vue
Code
540
2,575
<template> <div> <!-- <text class="abc">首页</text> --> <image class="logo" resize="cover" src="./src/img/logo.png"></image> <div class="searchWarp"> <input type="text" class="search" readonly id="search" placeholder="请输入商品名称" /> <image class="searchImg" resize="cover" src="./src/img/seach.png"></imag...
31,101
https://github.com/mkdashti/PIM-PREP/blob/master/tool/run-datasets.sh
Github Open Source
Open Source
MIT
2,021
PIM-PREP
mkdashti
Shell
Code
18
126
./run-img-models.sh /datadrive/mnt4/jaya/datasets/openimages/ results/1gpu/openimages/ 1 3 4260 ./run-img-models.sh /datadrive/mnt2/jaya/datasets/imagenet/ results/1gpu/img-1k/ 1 3 1000 ./run-img-models.sh /datadrive/mnt5/jaya/datasets/imagenet/ results/1gpu/img-22k/ 1 3 21841
27,524
https://github.com/SubOptimal/dbeaver/blob/master/plugins/org.jkiss.dbeaver.ui/src/org/jkiss/dbeaver/ui/controls/ProgressPageControl.java
Github Open Source
Open Source
Apache-2.0
2,021
dbeaver
SubOptimal
Java
Code
1,673
6,427
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2021 DBeaver Corp and others * Copyright (C) 2011-2012 Eugene Fradkin (eugene.fradkin@gmail.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a...
24,756
https://github.com/schustercp/EngineGatewayN2K/blob/master/lib/NMEA2000/Examples/WindMonitor/WindMonitor.ino
Github Open Source
Open Source
MIT
null
EngineGatewayN2K
schustercp
null
Spoken
276
891
// Demo: NMEA2000 library. Send main wind data to the bus. #include <Arduino.h> #include <NMEA2000_CAN.h> // This will automatically choose right CAN library and create suitable NMEA2000 object #include <N2kMessages.h> // List here messages your device will transmit. const unsigned long TransmitMessages[] PROGMEM={1...
3,316
https://github.com/apache/cloudstack/blob/master/ui/src/components/view/stats/ResourceStatsInfo.vue
Github Open Source
Open Source
Apache-2.0, GPL-2.0-only, BSD-3-Clause, MIT, GPL-1.0-or-later, LicenseRef-scancode-public-domain, BSD-2-Clause, LicenseRef-scancode-unknown
2,023
cloudstack
apache
Vue
Code
261
737
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may n...
47,048
https://github.com/keke02/Fast-reconfiguration-of-robotic-production-systems/blob/master/Baxter/ros_ws/build/tests_baxter/CMakeFiles/states.dir/cmake_clean.cmake
Github Open Source
Open Source
CC0-1.0
null
Fast-reconfiguration-of-robotic-production-systems
keke02
CMake
Code
17
162
FILE(REMOVE_RECURSE "CMakeFiles/states.dir/src/listener.cpp.o" "/home/etudiant/M1_ISTR/Baxter/ros_ws/devel/lib/tests_baxter/states.pdb" "/home/etudiant/M1_ISTR/Baxter/ros_ws/devel/lib/tests_baxter/states" ) # Per-language clean rules from dependency scanning. FOREACH(lang CXX) INCLUDE(CMakeFiles/states.dir/cma...
5,713
https://github.com/undefined-overflow/IllusionContentManager/blob/master/Sdks/PluginSdk/Information/AuthorUrlType.cs
Github Open Source
Open Source
WTFPL
null
IllusionContentManager
undefined-overflow
C#
Code
12
40
namespace PluginSdk.Information { public enum AuthorUrlType { Git, Discord, Patreon } }
18,159
https://github.com/maotongxue/kibana-5.1.1/blob/master/.gitignore
Github Open Source
Open Source
Apache-2.0
2,018
kibana-5.1.1
maotongxue
Ignore List
Code
5
24
*.swp *.~vsd \#*\# *~ .DS_Store
940
https://github.com/Santos-Luis/PromoCodes/blob/master/src/Entity/PromoCode.php
Github Open Source
Open Source
MIT
null
PromoCodes
Santos-Luis
PHP
Code
246
853
<?php namespace App\Entity; use DateTime; use DateTimeZone; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\PromoCodeRepository") * @ORM\Table(name="PromoCode") */ class PromoCode { /** * @var string * * @ORM\Column(type="string", length=8) * @ORM\Id ...
48,523
https://github.com/neilbannet/nonce/blob/master/src/class-nonce-verifier.php
Github Open Source
Open Source
MIT
2,017
nonce
neilbannet
PHP
Code
210
502
<?php /** * Verifier for Wordpress Nonces * User: berredo * Date: 2/25/17 * Time: 1:28 AM */ class Nonce_Verifier { /** * Verify nonce * * @param $nonce * @param $action * * @return boolean */ public static function verify( $nonce, $action = -1 ) { return wp_verify_nonce( $nonce, $action ); } ...
51,239
https://github.com/soloturn/kerub/blob/master/src/main/kotlin/com/github/kerubistan/kerub/planner/execution/PlanExecutorImpl.kt
Github Open Source
Open Source
Apache-2.0
2,019
kerub
soloturn
Kotlin
Code
534
4,199
package com.github.kerubistan.kerub.planner.execution import com.github.kerubistan.kerub.data.ExecutionResultDao import com.github.kerubistan.kerub.data.HostDao import com.github.kerubistan.kerub.data.VirtualStorageDeviceDao import com.github.kerubistan.kerub.data.config.HostConfigurationDao import com.github.kerubist...
24,054
https://github.com/William-Weng/Swift-5/blob/master/MyEnglish/MyEnglish/ViewController/ViewController.swift
Github Open Source
Open Source
MIT
2,021
Swift-5
William-Weng
Swift
Code
788
2,556
// // ViewController.swift // MyEnglish // // Created by Yu-Bin Weng on 2021/1/10. // import UIKit import PKHUD final class ViewController: UIViewController { @IBOutlet weak var languageButtonItem: UIBarButtonItem! @IBOutlet weak var sortButtonItem: UIBarButtonItem! @IBOutlet weak var myTableV...
3,412
https://github.com/InfinityLF/q2a-lang-nl/blob/master/nl/qa-lang-users.php
Github Open Source
Open Source
ISC
2,014
q2a-lang-nl
InfinityLF
PHP
Code
814
2,592
<?php /* Question2Answer 1.4.1 (c) 2011, Gideon Greenspan http://www.question2answer.org/ File: qa-include/qa-lang-users.php Version: 1.4.1 Date: 2011-07-10 06:58:57 GMT Description: Language phrases for user management This program is free software; you can redistribute it and/or modify it under the te...
32,014
https://github.com/Albocoder/KOOBE/blob/master/aeg-analysis/aeg/kernel.py
Github Open Source
Open Source
MIT
2,022
KOOBE
Albocoder
Python
Code
908
2,851
import angr import json import re import struct import subprocess from capstone.x86_const import X86_OP_MEM, X86_OP_IMM from .gdb import GDBHelper clean = lambda x, k: x[x.index(k):] strip = lambda x, k: x[x.index(k) + len(k):] boolean = lambda x: "true" if x else "false" class KernelObject: def __init__(self, ...
3,279
https://github.com/apache/openoffice/blob/master/main/sw/source/core/inc/UndoTable.hxx
Github Open Source
Open Source
Apache-2.0, CPL-1.0, bzip2-1.0.6, LicenseRef-scancode-other-permissive, Zlib, LZMA-exception, LGPL-2.0-or-later, LicenseRef-scancode-free-unknown, LicenseRef-scancode-philippe-de-muyter, OFL-1.1, LGPL-2.1-only, MPL-1.1, X11, LGPL-2.1-or-later, GPL-2.0-only, OpenSSL, LicenseRef-scancode-cpl-0.5, GPL-1.0-or-later, NPL-1....
2,023
openoffice
apache
C++
Code
1,144
3,935
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
19,830
https://github.com/rhazarian/ceres-tstl/blob/master/src/transpilation/diagnostics.ts
Github Open Source
Open Source
MIT
2,020
ceres-tstl
rhazarian
TypeScript
Code
183
472
import * as ts from "typescript"; import { createSerialDiagnosticFactory } from "../utils"; const createDiagnosticFactory = <TArgs extends any[]>(getMessage: (...args: TArgs) => string) => createSerialDiagnosticFactory((...args: TArgs) => ({ messageText: getMessage(...args) })); export const toLoadItShouldBeTrans...
36,500
https://github.com/ybxbupt/Densenet_FCN/blob/master/load_graph.cpp
Github Open Source
Open Source
MIT
2,018
Densenet_FCN
ybxbupt
C++
Code
395
1,354
#define COMPILER_MSVC #define NOMINMAX #include <string> #include <vector> #include <fstream> #include <tensorflow/cc/client/client_session.h> #include <tensorflow/core/public/session.h> #include <tensorflow/cc/ops/standard_ops.h> #include <tensorflow/core/platform/env.h> #include <tensorflow/cc/ops/image_ops.h> #in...
42,559
https://github.com/blowery/phantomjs/blob/master/src/qt/src/3rdparty/webkit/include/WebCore/GraphicsContext.h
Github Open Source
Open Source
LGPL-2.1-only, Qt-LGPL-exception-1.1, LicenseRef-scancode-generic-exception, GPL-3.0-only, GPL-1.0-or-later, GFDL-1.3-only, BSD-3-Clause
2,012
phantomjs
blowery
C
Code
2
17
#include "WebCore/platform/graphics/GraphicsContext.h"
113
https://github.com/Sidfate/zkcx/blob/master/src/components/toolbar/index.js
Github Open Source
Open Source
MIT
2,021
zkcx
Sidfate
JavaScript
Code
18
55
import ConnectDialog from './connection/ConnectDialog' import SettingDialog from './setting/SettingDialog' import NodeDialog from './node/NodeDialog' export { ConnectDialog, SettingDialog, NodeDialog }
31,727
https://github.com/rboman/progs/blob/master/sandbox/fortran/test_entry.f90
Github Open Source
Open Source
Apache-2.0
2,022
progs
rboman
null
Spoken
38
86
! example of the "entry" statement program test_entry call sub1() call sub1entry() end program test_entry subroutine sub1() write (*, *) 'subroutine call executes this part' entry sub1entry() write (*, *) 'both calls execute this part' end subroutine sub1
27,029
https://github.com/alperkesen/codecarbon/blob/master/codecarbon/core/emissions.py
Github Open Source
Open Source
MIT
2,021
codecarbon
alperkesen
Python
Code
757
2,466
""" Provides functionality to compute emissions for cloud & private infra based on impact & energy Usage package https://github.com/mlco2/impact https://github.com/responsibleproblemsolving/energy-usage """ from typing import Dict, Optional import pandas as pd from codecarbon.core import co2_signal from codecarbon....
19,604
https://github.com/steffnay/python-datacatalog/blob/master/google/cloud/datacatalog_v1/types/search.py
Github Open Source
Open Source
Apache-2.0
null
python-datacatalog
steffnay
Python
Code
397
1,143
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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...
8,072
https://github.com/aliyun/alibabacloud-java-sdk/blob/master/cloudgameapi-20200728/src/main/java/com/aliyun/cloudgameapi20200728/models/DispatchGameSlotResponseBody.java
Github Open Source
Open Source
Apache-2.0
2,023
alibabacloud-java-sdk
aliyun
Java
Code
394
1,364
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.cloudgameapi20200728.models; import com.aliyun.tea.*; public class DispatchGameSlotResponseBody extends TeaModel { @NameInMap("GameId") public String gameId; @NameInMap("GameSession") public String gameSession; @NameInMap(...
21,124
https://github.com/nmcl/scratch/blob/master/graalvm/transactions/fork/narayana/blacktie/core/src/main/include/AtmiBrokerSignalHandler.h
Github Open Source
Open Source
LGPL-2.1-only, Apache-2.0
2,023
scratch
nmcl
C++
Code
436
884
/* * JBoss, Home of Professional Open Source * Copyright 2010, Red Hat, Inc., and others contributors as indicated * by the @authors tag. All rights reserved. * See the copyright.txt in the distribution for a * full listing of individual contributors. * This copyrighted material is made available to anyone wishin...
38,537
https://github.com/JJ-Consulting/best-price/blob/master/best-price-fe/src/app/app.component.scss
Github Open Source
Open Source
MIT
2,018
best-price
JJ-Consulting
SCSS
Code
25
86
#toolbar-wrapper { margin-bottom: 1rem; } #content-wrapper { display: flex; padding-top: 1rem; } app-side-bar { margin-left: 2rem; } #main-pane { flex: 1; margin: 0 2rem; }
10,094
https://github.com/trekawek/coffee-gb/blob/master/src/main/java/eu/rekawek/coffeegb/memory/cart/battery/FileBattery.java
Github Open Source
Open Source
MIT
2,023
coffee-gb
trekawek
Java
Code
313
977
package eu.rekawek.coffeegb.memory.cart.battery; import org.apache.commons.io.IOUtils; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.file.Files; public class FileBattery implements Batte...
24,937
https://github.com/nica09/exerciselaravel/blob/master/resources/views/moltcompany/webpage/news.blade.php
Github Open Source
Open Source
MIT
null
exerciselaravel
nica09
PHP
Code
138
692
<section class="blog py-lg-4 py-md-3 py-sm-3 py-3" id="blog"> <div class="container py-lg-5 py-md-4 py-sm-4 py-3"> <div class="title text-center mb-lg-5 mb-md-4 mb-sm-4 mb-3"> <h3>News & Blog</h3> </div> <div id="carouselExampleControls" class="carousel slide"...
10,125
https://github.com/timondy/PhaseFieldBenchmarking/blob/master/Fengwei (Tim) Yang/software libraries/hdf5-1.6.10/fortran/config/powerpc-ibm-aix5.x
Github Open Source
Open Source
LicenseRef-scancode-llnl, LicenseRef-scancode-hdf4
2,023
PhaseFieldBenchmarking
timondy
Shell
Code
398
1,178
# -*- shell-script -*- # # Copyright by The HDF Group. # Copyright by the Board of Trustees of the University of Illinois. # All rights reserved. # # This file is part of HDF5. The full HDF5 copyright notice, including # terms governing use, modification, and redistribution, is contained in # the files COPYING a...
19,451
https://github.com/a1051575078/saasapi/blob/master/app/Http/Controllers/Tenant/WorkController.php
Github Open Source
Open Source
RSA-MD
null
saasapi
a1051575078
PHP
Code
955
9,171
<?php namespace App\Http\Controllers\Tenant; use App\Http\Controllers\Controller; use App\Models\Tenant\Black; use App\Models\Tenant\Evaluation; use App\Models\Tenant\Online; use App\Models\Tenant\Record; use App\Models\Tenant\User; use App\Models\Tenant\Visitor; use Illuminate\Http\Request; use Illuminate\Support\Ca...
5,656
https://github.com/wawan8989/cendana_wawan_newCI/blob/master/application/views/nilai/form_edit_nilai.php
Github Open Source
Open Source
MIT
null
cendana_wawan_newCI
wawan8989
PHP
Code
172
803
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main"> <?php echo $this->session->flashdata('alert_msg');?> <h1 class="page-header"><?=$judul?></h1> <form class="form-horizontal" method="POST" action="<?php echo site_url('nilai/act_edit'); ?>"> <div class="form-group"> <label for="input...
54,191
https://github.com/teco-kit/contiki-jn51xx/blob/master/cpu/cc2430/converter/converter.c
Github Open Source
Open Source
BSD-3-Clause
null
contiki-jn51xx
teco-kit
C
Code
575
2,166
#include <unistd.h> #include <getopt.h> #include <string.h> #include <inttypes.h> #include "converter.h" #include <stdio.h> extern int cdi_programmer(conf_opts_t *conf, char *filename); void usage(char *prg_name) { printf("\nUsage: %s -f ihex file\n", prg_name); printf("General options:\n"); printf(" -V/--versio...
11,595
https://github.com/bitller/nova/blob/master/resources/assets/sass/auth/register.scss
Github Open Source
Open Source
MIT
null
nova
bitller
SCSS
Code
97
382
.register-logo { font-size: 60px; } #register-page .register-form { margin-top: -80px; } #register-page .first-text { font-size: 40px; font-family: 'Roboto', sans-serif; color: #ffffff; } #register-page .short-description { display: block; margin-top: 35px; margin-bottom: 45px; font-size: 22px; c...
26,457
https://github.com/Pseudomanifold/TML/blob/master/REDDIT-BINARY/GML/0759.gml
Github Open Source
Open Source
MIT
2,021
TML
Pseudomanifold
null
Spoken
6,170
14,908
graph [ directed 0 node [ id 412092 ] node [ id 412093 ] node [ id 412094 ] node [ id 412099 ] node [ id 412100 ] node [ id 412104 ] node [ id 412106 ] node [ id 412107 ] node [ id 412108 ] node [ id 412109 ] node [ id 412111 ] ...
11,419
https://github.com/ants280/sudoku/blob/master/src/main/java/com/github/ants280/sudoku/ui/SudokuUncaughtExceptionHandler.java
Github Open Source
Open Source
MIT
null
sudoku
ants280
Java
Code
46
168
package com.github.ants280.sudoku.ui; import java.awt.Component; import java.lang.Thread.UncaughtExceptionHandler; public class SudokuUncaughtExceptionHandler implements UncaughtExceptionHandler { private final Component parentComponent; public SudokuUncaughtExceptionHandler(Component parentComponent) { this.pa...
50,173
https://github.com/uakihir0/misskey4j/blob/master/src/main/java/misskey4j/internal/api/AbstractResourceImpl.java
Github Open Source
Open Source
MIT
2,022
misskey4j
uakihir0
Java
Code
458
1,702
package misskey4j.internal.api; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import misskey4j.MisskeyException; import misskey4j.api.model.TokenRequest; import misskey4j.entity.Color; import misskey4j.entity.Error; import misskey4j.entity.share.RateLimit; import misskey4j.entity.share.Response; imp...
10,817
https://github.com/thinhlv02/linhvuong/blob/master/application/views/admin/tktaikhoan/view_vatpham.php
Github Open Source
Open Source
MIT
null
linhvuong
thinhlv02
PHP
Code
128
647
<div class="row"> <div class="col-md-12 col-sm-12 col-xs-12"> <div class="x_panel"> <div class="x_title"> <!-- --><?php //pre($lstdata) ?> <h2>Danh sách (<?php echo count($lstdata) ?>)</h2> <ul class="nav navbar-right panel_toolbox"> ...
38,491
https://github.com/Konafets/intellij-plugins/blob/master/prisma/language-server/prisma-fmt.js
Github Open Source
Open Source
Apache-2.0
2,023
intellij-plugins
Konafets
JavaScript
Code
76
237
import prismaFmt from '@prisma/prisma-fmt-wasm' const EXIT_TIMEOUT = 10000 const formattingParams = process.argv[2] let schema = "" function formatSchema() { try { const formatted = prismaFmt.format(schema, formattingParams) console.log(formatted) process.exit(0) } catch (e) { console.error(e) ...
19,857
https://github.com/tripmania/tripmania-pwa/blob/master/src/modules/search/search.component.ts
Github Open Source
Open Source
MIT
2,019
tripmania-pwa
tripmania
TypeScript
Code
29
104
import {ChangeDetectionStrategy, Component, OnInit} from '@angular/core'; @Component({ selector: 'search', templateUrl: './search.component.html', styleUrls: ['./search.component.less'], changeDetection: ChangeDetectionStrategy.OnPush }) export class SearchComponent implements OnInit { constructor() { } ...
48,432
https://github.com/josejhonata/Seguros/blob/master/security/app/Http/Controllers/CarroController.php
Github Open Source
Open Source
MIT
2,021
Seguros
josejhonata
PHP
Code
209
648
<?php namespace App\Http\Controllers; use App\Models\Carro; use Illuminate\Http\Request; use App\Models\User; class CarroController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // } /*...
15,275
https://github.com/agosamaras/NRD_PCMD/blob/master/Makefile
Github Open Source
Open Source
Apache-2.0
2,021
NRD_PCMD
agosamaras
Makefile
Code
104
227
# Image URL to use all building/pushing image targets IMG ?= pcmd-server:latest # Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set) ifeq (,$(shell go env GOBIN)) GOBIN=$(shell go env GOPATH)/bin else GOBIN=$(shell go env GOBIN) endif all: server # Build server binary server: fmt vet g...
47,951
https://github.com/pantadeusz/simsamples/blob/master/previous_examples/03physics/src/main.cpp
Github Open Source
Open Source
MIT
null
simsamples
pantadeusz
C++
Code
668
1,898
/** * This is the simple hello world for SDL2. * * The example tries to take care of resource allocation and deallocation * using smart pointers. */ #include <SDL2/SDL.h> #include <stdexcept> #include <memory> #include <string> #include <set> #include <tuple> #include <iostream> #include <cstdint> #include <vecto...
15,728
https://github.com/Xenir/18xx-maker/blob/master/src/TileSheet.scss
Github Open Source
Open Source
MIT
2,023
18xx-maker
Xenir
SCSS
Code
19
67
.TileSheet--Page { page-break-inside: avoid; overflow: auto; position: relative; .cutlines__page { top: 0; } svg { overflow: hidden; } };
20,726
https://github.com/SafonovMikhail/python_000577/blob/master/000560SoloLearnPy01/000560_02_04_Boolean_20190915.py
Github Open Source
Open Source
Apache-2.0
null
python_000577
SafonovMikhail
Python
Code
141
371
print("") print("000560_02_04_ex01_bool:AND") print(1 == 1 and 2 == 2) print(1 == 1 and 2 == 3) print(1 != 1 and 2 == 2) print(1 < 2 and 3 > 6) print("000560_02_04_task01_bool:AND") if (1 == 1) and (2 + 2 > 3): print('true') else: print('false') print("") print("000560_02_04_ex02_bool:OR") print(1 == 1 or 2 ==...
2,794
https://github.com/raycrasher/Fell-Sky/blob/master/FellSky/Components/SceneGraphRenderableComponent.cs
Github Open Source
Open Source
MIT
2,016
Fell-Sky
raycrasher
C#
Code
56
195
using Artemis; using Artemis.Interface; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using FellSky.Systems.SceneGraphRenderers; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FellSky.Components { public class ...
14,447
https://github.com/AbdallahNassar/Painter/blob/master/painter/lib/app/core/localization/en-us.dart
Github Open Source
Open Source
Apache-2.0
null
Painter
AbdallahNassar
Dart
Code
40
130
// this will be the dictionary for the english language const Map<String, String> englishDictionary = { 'home_view_title': 'Painter', 'settings_view_title': 'Settings', 'got_it': 'Got it', 'color_picker_title': 'Choose a Color', 'pen_color': 'Pen Color', 'pen_type': 'Pen Type', 'pen_size': 'Pen Size', ...
19,616
https://github.com/simPod/doctrine-cockroachdb/blob/master/src/Driver/CockroachDriver.php
Github Open Source
Open Source
MIT
null
doctrine-cockroachdb
simPod
PHP
Code
108
408
<?php namespace LapayGroup\DoctrineCockroach\Driver; use Doctrine\DBAL\Connection; use Doctrine\DBAL\Driver\PDOPgSql; use Doctrine\DBAL\Driver\PDO; use LapayGroup\DoctrineCockroach\Platforms\CockroachPlatform; use LapayGroup\DoctrineCockroach\Schema\CockroachSchemaManager; /** * Driver that connects through pdo_pg...
51,241
https://github.com/NathanGrimaud/senna.js/blob/master/build/amd/metal-dom/src/metalData.js
Github Open Source
Open Source
BSD-3-Clause
2,016
senna.js
NathanGrimaud
JavaScript
Code
77
257
define(['exports'], function (exports) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var METAL_DATA = '__metal_data...
6,750
https://github.com/JabRef/jabref/blob/master/src/main/java/org/jabref/logic/pdf/search/indexing/PdfIndexer.java
Github Open Source
Open Source
MIT
2,023
jabref
JabRef
Java
Code
957
2,633
package org.jabref.logic.pdf.search.indexing; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.attribute.BasicFileAttributes; import java.util.HashSet; import java.util.List; import java.util.Optional; import java.util.Set; import java.util.concurrent.TimeUnit; i...
24,144
https://github.com/Roba1993/rune/blob/master/crates/rune/src/compiling/v1/assemble/lit.rs
Github Open Source
Open Source
MIT, Apache-2.0
2,021
rune
Roba1993
Rust
Code
64
285
use crate::compiling::v1::assemble::prelude::*; /// Compile a literal value. impl Assemble for ast::Lit { fn assemble(&self, c: &mut Compiler<'_>, needs: Needs) -> CompileResult<Asm> { let span = self.span(); log::trace!("Lit => {:?}", c.source.source(span)); let asm = match self { ...
23,345
https://github.com/Caisin/hope/blob/master/apps/novel/internal/data/ent/novelbuychapterrecord/novelbuychapterrecord.go
Github Open Source
Open Source
Apache-2.0
2,021
hope
Caisin
Go
Code
547
1,184
// Code generated by entc, DO NOT EDIT. package novelbuychapterrecord import ( "time" ) const ( // Label holds the string label denoting the novelbuychapterrecord type in the database. Label = "novel_buy_chapter_record" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldU...
4,209
https://github.com/Codeurs2020/inflection/blob/master/packages/inflection/verify/schemas/inflection/procedures/slugify.sql
Github Open Source
Open Source
MIT
2,020
inflection
Codeurs2020
PLpgSQL
Code
10
44
-- Verify schemas/inflection/procedures/slugify on pg BEGIN; SELECT verify_function ('inflection.slugify'); ROLLBACK;
2,792
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/c/core-js/src/main/scala/typingsSlinky/coreJs/SymbolConstructor.scala
Github Open Source
Open Source
MIT
2,021
SlinkyTyped
ScalablyTyped
Scala
Code
118
434
package typingsSlinky.coreJs import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @js.native trait SymbolConstructor extends StObject { /** * Non-standard. Use simple mode ...
33,222
https://github.com/seibert-media/confluence-protractor-base/blob/master/src/page-objects/editor/ConfluenceEditorFakeInput.ts
Github Open Source
Open Source
BSD-3-Clause
2,017
confluence-protractor-base
seibert-media
TypeScript
Code
76
276
import {ElementFinder} from "protractor"; import {promise} from "selenium-webdriver"; import {ConfluenceEditor} from "../ConfluenceEditor"; export class ConfluenceEditorFakeInput { private editor: ConfluenceEditor; constructor(editor: ConfluenceEditor) { this.editor = editor; } public extendResult(result: pro...
35,279
https://github.com/wsgan001/Trajectory-Planning-of-Multiple-Mobile-Robots/blob/master/admap-solver/src/main/java/cz/agents/admap/agent/PlanningAgent.java
Github Open Source
Open Source
Apache-2.0
2,017
Trajectory-Planning-of-Multiple-Mobile-Robots
wsgan001
Java
Code
443
1,835
package cz.agents.admap.agent; import java.util.Collection; import java.util.LinkedList; import org.apache.log4j.Logger; import org.jgrapht.util.HeuristicToGoal; import tt.euclid2i.EvaluatedTrajectory; import tt.euclid2i.Point; import tt.euclid2i.discretization.L2Heuristic; import tt.euclid2i.probleminstance.Environ...
18,317
https://github.com/ahmar20/WAVE300/blob/master/driver/wireless/driver/rflib/shared/mtlk_aocs.c
Github Open Source
Open Source
BSD-2-Clause
2,021
WAVE300
ahmar20
C
Code
10,454
47,088
/* * $Id: mtlk_aocs.c 12949 2012-04-10 08:38:17Z grigorje $ * * Copyright (c) 2006-2007 Metalink Broadband (Israel) * * Proprietary AOCS implementation * */ #include "mtlkinc.h" #include "mtlk_aocs_propr.h" #include "mtlk_channels_propr.h" #include "mtlkerr.h" #include "aocs.h" #include "channels.h" #include "eeprom....
1,697
https://github.com/hyperwallet/hyperwallet-android-ui-sdk/blob/master/transfermethodui/src/main/java/com/hyperwallet/android/ui/transfermethod/exception/HyperwalletTransferMethodUiInitializationException.java
Github Open Source
Open Source
MIT
2,022
hyperwallet-android-ui-sdk
hyperwallet
Java
Code
230
425
/* * Copyright 2018 Hyperwallet * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distr...
17,632
https://github.com/xdimedrolx/regis/blob/master/src/Regis/Application/Command/Team/Create.php
Github Open Source
Open Source
MIT
2,016
regis
xdimedrolx
PHP
Code
44
147
<?php declare(strict_types=1); namespace Regis\Application\Command\Team; use Regis\Domain\Entity; class Create { private $owner; private $name; public function __construct(Entity\User $owner, string $name) { $this->owner = $owner; $this->name = $name; } public function getO...
52,989
https://github.com/rksleung/ftw-daily/blob/master/src/util/search.js
Github Open Source
Open Source
Apache-2.0
null
ftw-daily
rksleung
JavaScript
Code
265
717
/** * SelectMultipleFilter needs to parse values from format * "has_all:a,b,c,d" or "a,b,c,d" */ export const parseSelectFilterOptions = uriComponentValue => { const startsWithHasAll = uriComponentValue && uriComponentValue.indexOf('has_all:') === 0; const startsWithHasAny = uriComponentValue && uriComponentValu...
26,694
https://github.com/Melon-Tropics/cs-script.npp/blob/master/src/Mdbg_v4.0/Mdbg/debugger/mdbgeng/FrameFactory.cs
Github Open Source
Open Source
MIT
2,023
cs-script.npp
Melon-Tropics
C#
Code
2,046
4,808
//--------------------------------------------------------------------- // This file is part of the CLR Managed Debugger (mdbg) Sample. // // Copyright (C) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------------- using System; using System.IO; using System....
17,975
https://github.com/brianshaler/kerplunk-blog-demo/blob/master/src/components/layout.coffee
Github Open Source
Open Source
MIT
null
kerplunk-blog-demo
brianshaler
CoffeeScript
Code
184
727
_ = require 'lodash' React = require 'react' Header = require './header' Sidebar = require './sidebar' {DOM} = React module.exports = React.createFactory React.createClass getInitialState: -> showSidebar: false hideSidebar: -> @setState showSidebar: false buildUrl: (relPath) -> if @props.bl...
35,667
https://github.com/RomSem/portfolio/blob/master/src/components/Photo.vue
Github Open Source
Open Source
MIT
2,019
portfolio
RomSem
Vue
Code
56
208
<template> <figure class="photo"> <slot></slot> </figure> </template> <script> export default { props: {} } </script> <style lang="less" scoped> @import "../assets/styles/design"; @import "../assets/styles/mixins"; .photo { overflow: hidden; position: relativ...
18,968
https://github.com/CodeMedic42/beagle-ui/blob/master/src/api/endpoints.js
Github Open Source
Open Source
MIT
2,017
beagle-ui
CodeMedic42
JavaScript
Code
293
956
import composeClass from 'compose-class'; import Symbol from 'es6-symbol'; import get from 'lodash/get'; import map from 'lodash/map'; import merge from 'lodash/merge'; import constant from 'lodash/constant'; import isEmpty from 'lodash/isEmpty'; import isNil from 'lodash/isNil'; import isArray from 'lodash/isArray'; i...
30,100
https://github.com/yazici/pcgl/blob/master/Application.h
Github Open Source
Open Source
MIT
2,017
pcgl
yazici
C++
Code
14
39
#pragma once #include <QMainWindow> class Application : public QMainWindow { Q_OBJECT public: Application(); };
31,959
https://github.com/mindhog/nomulus/blob/master/core/src/main/java/google/registry/model/bulkquery/DomainBaseLite.java
Github Open Source
Open Source
LicenseRef-scancode-free-unknown, Apache-2.0
2,022
nomulus
mindhog
Java
Code
214
498
// Copyright 2021 The Nomulus Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by a...
42,169
https://github.com/kdipendra642/parent_company/blob/master/resources/views/frontend/introduction.blade.php
Github Open Source
Open Source
MIT
null
parent_company
kdipendra642
PHP
Code
69
408
@extends('frontend.layouts.app') @section('content') <section id="breadcrumbs" class="breadcrumbs"> <div class="container"> <div class="d-flex justify-content-between align-items-center"> <h2>{{$setting->site_title}}</h2> <ol> <li><a href="{{ route('customer.index') }}">Home</a></l...
8,226
https://github.com/ritgraphics/VixenEngine/blob/master/source/vscripting/vix_luaengine.cpp
Github Open Source
Open Source
MIT
null
VixenEngine
ritgraphics
C++
Code
347
981
/* The MIT License(MIT) Copyright(c) 2015 Matt Guerrette Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, me...
22,124
https://github.com/NataliaLara/Reserva_Aerea/blob/master/src/app/passagemaerea/passagemaerea-list/passagemaerea-list.component.spec.ts
Github Open Source
Open Source
MIT
null
Reserva_Aerea
NataliaLara
TypeScript
Code
54
201
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { PassagemAereaListComponent } from './passagemaerea-list.component'; describe('PassagemAereaComponent', () => { let component: PassagemAereaListComponent; let fixture: ComponentFixture<PassagemAereaListComponent>; beforeEach(asyn...
7,241
https://github.com/tylermilner/swift-1/blob/master/Tests/RunnerLibTests/DangerJSVersionFinderTests.swift
Github Open Source
Open Source
MIT
null
swift-1
tylermilner
Swift
Code
69
220
@testable import RunnerLib import XCTest final class DangerJSVersionFinderTests: XCTestCase { func testItSendsTheCorrectCommandAndReturnsTheCorrectResult() throws { let executor = MockedExecutor() executor.result = "1.0.0" let dangerJSPath = "/test/danger" let version = try Danger...
27,984
https://github.com/cognitivehacker/deploy-calendar/blob/master/server/internal/api/routes/routes.go
Github Open Source
Open Source
Apache-2.0
null
deploy-calendar
cognitivehacker
Go
Code
28
113
package routes import ( "github.com/fasthttp/router" "github.com/valyala/fasthttp" ) //GetRoutes return routes func GetRoutes() *router.Router { r := router.New() r.GET("/", exampleRequestHandler) return r } func exampleRequestHandler(ctx *fasthttp.RequestCtx) { ctx.WriteString("hello") }
15,805
https://github.com/ubntc/go/blob/master/batching/batbq/batcher_test.go
Github Open Source
Open Source
Apache-2.0
null
go
ubntc
Go
Code
531
1,877
package batbq_test import ( "context" "fmt" "testing" "time" "github.com/prometheus/client_golang/prometheus" "github.com/stretchr/testify/assert" "github.com/ubntc/go/batching/batbq" dummy "github.com/ubntc/go/batching/batbq/_examples/simple/dummy" "github.com/ubntc/go/batching/batbq/config" ) type timing...
36,537
https://github.com/Innoox/java108304/blob/master/Test/src/Task_3.java
Github Open Source
Open Source
MIT
null
java108304
Innoox
Java
Code
117
265
import java.util.Scanner; /** * Dane są następujące zbiory: * • A = (−15, −10) * • B = (−∞, −13) * Napisz program sprawdzający czy zmienna int wrt należy tylko do jednego z tych * zbiorów. * */ public class Task_3 { private static int[] setA = {-15, -10}; private static int[] setB = {-13}; public s...
10,988
https://github.com/egovernment/eregistrations-starter/blob/master/node_modules/dbjs-ext/number/currency/guatemalan-quetzal.js
Github Open Source
Open Source
MIT
2,018
eregistrations-starter
egovernment
JavaScript
Code
35
124
'use strict'; var memoize = require('memoizee/plain') , defineCurrency = require('../currency'); module.exports = memoize(function (db) { defineCurrency(db); return db.Currency.extend('GuatemalanQuetzal', { symbol: { value: 'Q' }, isoCode: { value: 'GTQ' } }); }, { normalizer: require('memoizee/normal...
41,503
https://github.com/GoogleCloudPlatform/k8s-config-connector/blob/master/pkg/clients/generated/apis/dialogflow/v1alpha1/dialogflowagent_types.go
Github Open Source
Open Source
Apache-2.0
2,023
k8s-config-connector
GoogleCloudPlatform
Go
Code
772
1,699
// Copyright 2020 Google LLC // // 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 wr...
37,407
https://github.com/pixelmord/jotai/blob/master/src/utils/useResetAtom.ts
Github Open Source
Open Source
MIT
null
jotai
pixelmord
TypeScript
Code
45
135
import { useMemo } from 'react' import { atom, useAtom, WritableAtom } from 'jotai' import { RESET } from './atomWithReset' export function useResetAtom<Value>(anAtom: WritableAtom<Value, typeof RESET>) { const writeOnlyAtom = useMemo( () => atom(null, (_get, set, _update) => set(anAtom, RESET)), [anAtom] ...
38,239
https://github.com/Onenutmcgee/LameBoy/blob/master/LameBoy/LameBoy/opcode.cpp
Github Open Source
Open Source
Unlicense
null
LameBoy
Onenutmcgee
C++
Code
4,455
17,971
#include "opcode.h" #include "CPU.h" #define NOUSE NULL bool OPC::exe_nop(CPU* cp) { return cp->nop(); } bool OPC::exe_di(CPU* cp) { return cp->set_interrupts_enabled(false); } bool OPC::exe_ei(CPU* cp) { return cp->set_interrupts_enabled(true); } bool OPC::exe_daa(CPU* cp) { return cp->daa(); } bool OPC::exe...
37,535
https://github.com/JaneliaSciComp/osgpyplusplus/blob/master/src/modules/osgDB/generated_code/WrapperMap.pypp.hpp
Github Open Source
Open Source
BSD-3-Clause
2,022
osgpyplusplus
JaneliaSciComp
C++
Code
15
66
// This file has been generated by Py++. #ifndef WrapperMap_hpp__pyplusplus_wrapper #define WrapperMap_hpp__pyplusplus_wrapper void register_WrapperMap_class(); #endif//WrapperMap_hpp__pyplusplus_wrapper
42,309
https://github.com/millelc/kuchikomi/blob/master/src/obdo/KuchiKomiUserBundle/Form/UserKuchiGroupType.php
Github Open Source
Open Source
MIT, BSD-3-Clause
2,014
kuchikomi
millelc
PHP
Code
145
588
<?php namespace obdo\KuchiKomiUserBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; use obdo\KuchiKomiRESTBundle\Entity\KuchiGroupRepository; class UserKuchiGroupType extends AbstractType { public...
21,151
https://github.com/patopoc/HosPMS/blob/master/database/seeds/UsersTableSeeder.php
Github Open Source
Open Source
MIT
null
HosPMS
patopoc
PHP
Code
62
237
<?php use Illuminate\Database\Seeder; use Faker\Factory as Faker; class UsersTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $faker= Faker::create(); $people= \DB::table('people')->lists('id'); $pro...
53,383
https://github.com/Geta/Tags/blob/master/src/module/ClientResources/TagsSelection.js
Github Open Source
Open Source
Apache-2.0
2,023
Tags
Geta
JavaScript
Code
156
591
define([ "dojo/_base/declare", "dijit/form/TextBox" ], function ( declare, TextBox ) { return declare([TextBox], { _tagWidget: null, postCreate: function () { this.inherited(arguments); this._createTags(); }, destroy: function() { ...
41,461
https://github.com/mujo-code/use-color-scheme/blob/master/test/_setup-test.js
Github Open Source
Open Source
0BSD
2,021
use-color-scheme
mujo-code
JavaScript
Code
18
58
import browserEnv from 'browser-env' import { createMatchMedia } from './_match-media-shim' browserEnv(['window']) window.matchMedia = createMatchMedia({ media: '(prefers-color-scheme: dark)' })
11,775
https://github.com/yindaheng98/wordatach/blob/master/wordatas/BuildDict.py
Github Open Source
Open Source
Apache-2.0
null
wordatach
yindaheng98
Python
Code
227
1,008
#coding=utf-8 import numpy as np import re class BuildDict: @staticmethod def read_origional_file(path): """读取源文件非空字符串""" text = [] zh_pattern = re.compile(u'[\u4e00-\u9fa5]+') with open(path, 'r', encoding='utf-8', errors='ignore') as f: for line in f.readlines...
13,827
https://github.com/VShell/nixpkgs/blob/master/pkgs/development/libraries/haskell/wai-handler-fastcgi/default.nix
Github Open Source
Open Source
MIT
2,021
nixpkgs
VShell
null
Spoken
61
216
# This file was auto-generated by cabal2nix. Please do NOT edit manually! { cabal, fcgi, wai, waiExtra }: cabal.mkDerivation (self: { pname = "wai-handler-fastcgi"; version = "3.0.0"; sha256 = "1cvy95qmbrhc1yjcral7f8y2929xp623abc9xasz7j28m4wwmynh"; buildDepends = [ wai waiExtra ]; extraLibraries = [ fcgi ];...
50,722
https://github.com/hiep-nd/nd-mvvm/blob/master/Sources/Views_ObjC/Views_NDMutableCollectionViewController.mm
Github Open Source
Open Source
MIT
null
nd-mvvm
hiep-nd
Objective-C++
Code
144
578
// // Views_NDMutableCollectionViewController.m // NDMVVM // // Created by Nguyen Duc Hiep on 4/26/20. // Copyright © 2020 Nguyen Duc Hiep. All rights reserved. // #import <NDMVVM/Views_NDMutableCollectionViewController.h> namespace { inline NSMutableArray<NSIndexPath*>* ToIndexPaths(NSArray<NSNumber*>* items) { ...
46,098
https://github.com/BW-FoodieFun-5/frontend/blob/master/foodie/src/components/login/Login.js
Github Open Source
Open Source
MIT
null
frontend
BW-FoodieFun-5
JavaScript
Code
90
320
import React from 'react'; import { Formik, Form, Field } from 'formik'; import { axiosWithAuth } from '../../utils/axiosWithAuth'; import { useHistory } from 'react-router-dom'; import { StyledForm } from '../../styles/formStyles'; export default function Login() { let history = useHistory() return ( ...
13,002
https://github.com/odib673/WallBay/blob/master/app/src/main/java/ml/medyas/wallbay/widget/WallbayWidget.java
Github Open Source
Open Source
MIT
2,019
WallBay
odib673
Java
Code
288
1,071
package ml.medyas.wallbay.widget; import android.app.PendingIntent; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.os.AsyncTask; import android.support.v4.app.Task...
340
https://github.com/dji-sdk/DJI-Cloud-API-Demo/blob/master/src/main/java/com/dji/sample/component/mqtt/config/MqttMessageChannel.java
Github Open Source
Open Source
MIT
2,022
DJI-Cloud-API-Demo
dji-sdk
Java
Code
188
699
package com.dji.sample.component.mqtt.config; import com.dji.sample.component.mqtt.model.ChannelName; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.integration.ch...
16,232
https://github.com/marcofugaro/orbit-controls/blob/master/lib/input.js
Github Open Source
Open Source
MIT
2,021
orbit-controls
marcofugaro
JavaScript
Code
539
1,473
var mouseWheel = require('mouse-wheel') var eventOffset = require('mouse-event-offset') var createPinch = require('touch-pinch') module.exports = inputEvents function inputEvents (opt) { var element = opt.element || window var parent = opt.parent || element var mouseStart = [0, 0] var dragging = false var tm...
23,659
https://github.com/kevin1x/trp_assistant_bot/blob/master/view_loader/views.py
Github Open Source
Open Source
MIT
2,017
trp_assistant_bot
kevin1x
Python
Code
158
444
import logging import os from django.views.generic import View from django.http import HttpResponse from django.conf import settings from django.shortcuts import render from django.http import HttpResponse, JsonResponse, Http404 from rest_framework.views import APIView from rest_framework.response import Response from ...
7,109
https://github.com/radarlabs/radar-sdk-ios/blob/master/RadarSDK.podspec
Github Open Source
Open Source
Apache-2.0
2,023
radar-sdk-ios
radarlabs
Ruby
Code
72
280
Pod::Spec.new do |s| s.name = 'RadarSDK' s.version = '3.8.2' s.summary = 'iOS SDK for Radar, the leading geofencing and location tracking platform' s.homepage = 'https://radar.com' s.author = { 'Radar Labs, Inc.' => 'support@radar.com' }...
32,689
https://github.com/aspose-cells/Aspose.Cells-for-Java/blob/master/Examples/src/AsposeCellsExamples/Worksheets/ReadThreadedComments.java
Github Open Source
Open Source
MIT
2,023
Aspose.Cells-for-Java
aspose-cells
Java
Code
93
340
package AsposeCellsExamples.Worksheets; import com.aspose.cells.ThreadedComment; import com.aspose.cells.ThreadedCommentCollection; import com.aspose.cells.Workbook; import com.aspose.cells.Worksheet; import AsposeCellsExamples.Utils; public class ReadThreadedComments { public static void main(String[] args) throws...
43,153
https://github.com/maigimenez/Layers/blob/master/src/d2f.sh
Github Open Source
Open Source
MIT
2,016
Layers
maigimenez
Shell
Code
20
71
sed -i -- 's/Xd/Xf/g' *.cpp sed -i -- 's/Xd/Xf/g' *.h sed -i -- 's/double/float/g' *.cpp sed -i -- 's/double/float/g' *.h
49,993
https://github.com/IagoBS/abc/blob/master/node_modules/@adonisjs/core/build/src/utils/index.d.ts
Github Open Source
Open Source
MIT
2,020
abc
IagoBS
TypeScript
Code
74
136
/// <reference types="node" /> /** * Helper to know if error belongs to a missing module * error */ export declare function isMissingModuleError(error: NodeJS.ErrnoException): boolean; /** * Optionally require the file and ignore non existing errors */ export declare function optionalRequire(filePath: string, opti...
12,205
https://github.com/domenic/test262/blob/master/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.3_Function_Objects/15.3.5_Properties_of_Function_Instances/S15.3.5.3_A2_T2.js
Github Open Source
Open Source
BSD-3-Clause
2,022
test262
domenic
JavaScript
Code
145
287
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S15.3.5.3_A2_T2; * @section: 15.3.5.3, 11.8.6; * @assertion: Assume F is a Function object. When the [[HasInstance]] method of F is called with value V and V is an object, th...
35,107
https://github.com/Naimin/Zephyr/blob/master/Zephyr_Common/src/Random.h
Github Open Source
Open Source
MIT
2,021
Zephyr
Naimin
C
Code
48
205
#ifndef COMMON_RANDOM_H #define COMMON_RANDOM_H #include "stdfx.h" #include "boost/random.hpp" #include "boost/generator_iterator.hpp" namespace Zephyr { namespace Common { typedef boost::mt19937 RNGType; class ZEPHYR_COMMON_API RandomGenerator { public: RandomGenerator(int min, int max, int seed); ...
13,011
https://github.com/HaxeFoundation/hscript/blob/master/bin/build-cs.hxml
Github Open Source
Open Source
MIT
2,023
hscript
HaxeFoundation
null
Spoken
3
13
bin/build-each.hxml -cs bin
24,075
https://github.com/jnumm/libxdf/blob/master/docs/html/search/variables_c.js
Github Open Source
Open Source
BSD-2-Clause
2,018
libxdf
jnumm
JavaScript
Code
5
57
var searchData= [ ['version',['version',['../class_xdf.html#a1d7401eb1557b2f34ac0ff4b9f79d04f',1,'Xdf']]] ];
12,253