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/noraj/pwndoc/blob/master/frontend/src/boot/auth.js
Github Open Source
Open Source
MIT
2,021
pwndoc
noraj
JavaScript
Code
63
204
import User from '@/services/user'; export default ({ app, router, Vue }) => { router.beforeEach((to, from, next) => { var publicPaths = ['/login']; User.checkToken() .then(function() { (to.path === '/login') ? next('/') : next(); }) .catch(function(error) { if (publicPaths.indexOf(...
32,304
https://github.com/ElandGroup/gomssql/blob/master/router.go
Github Open Source
Open Source
Apache-2.0
null
gomssql
ElandGroup
Go
Code
33
135
package main import ( "gomssql/service" "net/http" "github.com/labstack/echo" ) func RegisterApi() { e.GET("/", func(c echo.Context) error { return c.String(http.StatusOK, "hello db") }) api := e.Group("/api") v1 := api.Group("/v1") fruit := v1.Group("/fruit") fruit.GET("", service.Query) }
53,695
https://github.com/noraj/SigSegV2.misc_4/blob/master/solve.sh
Github Open Source
Open Source
MIT
null
SigSegV2.misc_4
noraj
Shell
Code
66
174
#!/bin/sh filename='the_long_way.img' # Setup a loop device loopdev=$(udisksctl loop-setup -f $filename | grep -oh '/dev/loop[0-9]') echo "Loop device: $loopdev" # Mount the loop device mountpoint=$(udisksctl mount -b $loopdev | grep -oP 'at \K\/.*(?=\.)') echo "Mount point: $mountpoint" # Launch the challenge solve s...
41,535
https://github.com/rayonprotocol-research/nebulas-voting-dapp/blob/master/src/votenote-web/src/main/view/FooterView.jsx
Github Open Source
Open Source
MIT
2,020
nebulas-voting-dapp
rayonprotocol-research
null
Spoken
59
205
import React, { Component } from 'react'; import { withRouter } from 'react-router-dom'; // style import github from '../../img/github.png'; import './FooterView.css'; class FooterView extends Component { constructor(props) { super(props); } render() { return ( <header classNam...
28,798
https://github.com/neelkamath/omni-chat-backend/blob/master/src/main/kotlin/graphql/dataTransferObjects/BookmarkedActionMessage.kt
Github Open Source
Open Source
MIT
2,021
omni-chat-backend
neelkamath
Kotlin
Code
28
119
@file:Suppress("unused") package com.neelkamath.omniChatBackend.graphql.dataTransferObjects import com.neelkamath.omniChatBackend.db.tables.Messages class BookmarkedActionMessage(override val id: Int) : BookmarkedMessage { override val chatId: Lazy<Int> = lazy { Messages.readChatId(id) } fun getActionableMe...
44,231
https://github.com/manju064/fraud-detection/blob/master/Friss.FraudDetection.sln
Github Open Source
Open Source
MIT
2,021
fraud-detection
manju064
null
Spoken
268
2,353
 Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 16 VisualStudioVersion = 16.0.31729.503 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Contracts", "Src\Contracts\Contracts.csproj", "{700610A0-6803-4168-ADF6-ECF1533BDCCE}" EndProject P...
2,883
https://github.com/propensive/kaleidoscope/blob/master/src/core/glob.scala
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, Apache-2.0
2,023
kaleidoscope
propensive
Scala
Code
311
795
/* Kaleidoscope, version [unreleased]. Copyright 2023 Jon Pretty, Propensive OÜ. The primary distribution site is: https://propensive.com/ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the Licen...
53,519
https://github.com/Kanari-Digital/azure-storage-azcopy/blob/master/ste/pacedReadSeeker.go
Github Open Source
Open Source
MIT
2,022
azure-storage-azcopy
Kanari-Digital
Go
Code
471
920
// Copyright © 2017 Microsoft <wastore@microsoft.com> // // 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, modif...
5,650
https://github.com/infertux/chef-sanity/blob/master/test/integration/default/inspec/nftables_spec.rb
Github Open Source
Open Source
MIT
2,023
chef-sanity
infertux
Ruby
Code
88
207
control 'nftables-1' do title 'default policies are set properly' impact 1.0 only_if('nftables is installed') do command('nft').exist? end describe command('nft list ruleset') do its('stdout') { should match /^table inet filter {/ } its('stdout') { should match /\stype filter hook input priority...
43,402
https://github.com/GLAUBEBE/euajudo-app/blob/master/src/components/Input/index.tsx
Github Open Source
Open Source
MIT
null
euajudo-app
GLAUBEBE
TypeScript
Code
84
294
import React from 'react'; import { Input as ChakraInput, InputProps, InputGroup, InputLeftElement } from '@chakra-ui/react'; interface InputPropsApp extends InputProps { placeholder?: string; type?: string; iconLeft?: JSX.Element; name?: string; } const Input: React.FC<InputPropsApp> = ({ iconLeft, pl...
30,583
https://github.com/dnegstad/umbrella/blob/master/packages/distance-transform/test/index.ts
Github Open Source
Open Source
Apache-2.0
2,022
umbrella
dnegstad
TypeScript
Code
108
317
import { GRAY8, intBuffer } from "@thi.ng/pixel"; import { group } from "@thi.ng/testament"; import * as assert from "assert"; import { CHEBYSHEV, distanceTransform, MANHATTAN } from "../src/index.js"; group("distance-transform", { manhattan: () => { const buf = intBuffer(4, 4, GRAY8); buf.data[0] ...
54,605
https://github.com/Elkoumy/ShareProm/blob/master/preprocessing/renaming_columns.py
Github Open Source
Open Source
Apache-2.0
2,021
ShareProm
Elkoumy
Python
Code
181
1,136
# -*- coding: utf-8 -*- """ Created on Wed Nov 20 09:44:59 2019 @author: Elkoumy """ import pandas as pd #data1= pd.read_csv(r"C:\Gamal Elkoumy\PhD\OneDrive - Tartu Ülikool\Secure MPC\Business Process Mining SourceCode\Datasets\Road_Traffic_Fine_Management_Process.csv") # #output=pd.DataFrame() #output['case']=data1...
46,604
https://github.com/tarampampam/http-proxy-daemon/blob/master/internal/pkg/logger/logger.go
Github Open Source
Open Source
MIT
2,022
http-proxy-daemon
tarampampam
Go
Code
100
312
// Package logger contains functions for a working with application logging. package logger import ( "go.uber.org/zap" "go.uber.org/zap/zapcore" ) // New creates new "zap" logger with little customization. func New(verbose, debug, logJSON bool) (*zap.Logger, error) { var config zap.Config if logJSON { config =...
41,747
https://github.com/OnkarGavali/Ecommerce/blob/master/resources/views/owners/show.blade.php
Github Open Source
Open Source
MIT
2,021
Ecommerce
OnkarGavali
PHP
Code
92
462
@extends('layouts.sblayout') @section('content') <div class="row"> <div class="col-lg-12 margin-tb"> <div class="pull-left"> <h2> Show Owner</h2> </div> <div class="pull-right"> <a class="btn btn-primary" href="{{ route('owners.index') }}...
4,746
https://github.com/HUGOHAMERGARCIAROSAS/Gbeltran/blob/master/resources/views/pages/proveedores/pdf_proveedores.blade.php
Github Open Source
Open Source
MIT
null
Gbeltran
HUGOHAMERGARCIAROSAS
PHP
Code
56
359
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> </head> <body> <table border='1'> <thead > <tr > <td>#</td> <td>Razón Social</td> <td>Representante</td> <td>Tipo Documento</td> <td>Documento</td> ...
12,387
https://github.com/SirWumpus/libsnert/blob/master/io/DnsTest.sh
Github Open Source
Open Source
BSD-2-Clause
null
libsnert
SirWumpus
Shell
Code
424
1,202
#!/bin/sh export MALLOC_OPTIONS="AFJR" # ; For testing circular references in DNS code. # circular0 IN CNAME circular0 # # circular1 IN CNAME circular2 # circular2 IN CNAME circular3 # circular3 IN CNAME circular1 # # chain1 ...
44,143
https://github.com/kjelpw/travis_test_backend/blob/master/repository/service.js
Github Open Source
Open Source
Apache-2.0
null
travis_test_backend
kjelpw
JavaScript
Code
689
2,001
/** Copyright 2019 University of Denver 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 writing,...
32,939
https://github.com/mariuslaugalys/SDA_all/blob/master/src/ObjectOrientedProgramming/Product.java
Github Open Source
Open Source
MIT
null
SDA_all
mariuslaugalys
Java
Code
54
128
package ObjectOrientedProgramming; public class Product { public Product(String name, float price) { this.name = name; this.price = price; } public String getName() { return name; } public float getPrice() { return price; } private String name; private ...
50,327
https://github.com/gonzaloccama/cepreuna/blob/master/resources/views/livewire/home-component/mision-y-vision.blade.php
Github Open Source
Open Source
MIT
null
cepreuna
gonzaloccama
PHP
Code
113
480
<div class="pt-10 pb-10"> <?php $settings = \App\Models\SystemSetting::find(1); ?> <!-- Begin Testimonial Area --> <div class="testimonial-area"> <div class="container"> <hr class=""> <div class="row"> <div class="col-xl-5 col-lg-6 pb-6 pb-lg-0"> ...
25,609
https://github.com/open-mpi/ompi-www/blob/master/community/lists/devel/2014/08/15564.php
Github Open Source
Open Source
BSD-3-Clause
2,023
ompi-www
open-mpi
PHP
Code
5,393
26,333
<? $subject_val = "Re: [OMPI devel] [OMPI users] bus error with openmpi-1.8.2rc2 on Solaris 10 Sparc"; include("../../include/msg-header.inc"); ?> <!-- received="Fri Aug 8 14:17:45 2014" --> <!-- isoreceived="20140808181745" --> <!-- sent="Fri, 8 Aug 2014 14:17:42 -0400" --> <!-- isosent="20140808181742" --> <!-- name...
49,420
https://github.com/Kevin163/Payment/blob/master/src/Essensoft.AspNetCore.Payment.Alipay/Domain/ZolozIdentificationCustomerIdcardCertifyModel.cs
Github Open Source
Open Source
MIT
2,021
Payment
Kevin163
C#
Code
101
453
using System; using System.Xml.Serialization; using Newtonsoft.Json; namespace Essensoft.AspNetCore.Payment.Alipay.Domain { /// <summary> /// ZolozIdentificationCustomerIdcardCertifyModel Data Structure. /// </summary> [Serializable] public class ZolozIdentificationCustomerIdcardCertifyModel : Alip...
21,072
https://github.com/xiaodongaini/ReactCookbook-source/blob/master/ch03-02-undo/src/undo.js
Github Open Source
Open Source
MIT
2,022
ReactCookbook-source
xiaodongaini
JavaScript
Code
104
303
import lodash from 'lodash' const undo = (reducer) => (state, action) => { let { undoHistory = [], undoActions = [], ...innerState } = lodash.cloneDeep(state) switch (action.type) { case 'undo': { if (undoActions.length > 0) { undoActions.pop() innerState = undoHistory.pop()...
3,606
https://github.com/Takumi1122/data-structure-algorithm/blob/master/AtCoder/ABC88/b.cpp
Github Open Source
Open Source
MIT
null
data-structure-algorithm
Takumi1122
C++
Code
88
216
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; using Graph = vector<vector<int>>; int main() { int n; cin >> n; vector<int> a(n); rep(i, n) cin >> a[i]; sort(a.begin(), a.end(), greater<int>()); int sum1 = 0; ...
41,517
https://github.com/idoheinemann/Assembly-Data-Package/blob/master/Assembly Data Package/Assembly Data Package/math.inc
Github Open Source
Open Source
Apache-2.0
2,020
Assembly-Data-Package
idoheinemann
Assembly
Code
1,073
3,183
include \masm32\include\masm32rt.inc .686 .data ;;;;;;;;;; NOTE!! ALL MATH FUNCTIONS RETURN REAL4 VALUES THROUGH EAX ;;;;;;;;; ;;;; SERIES ;;;; factor PROTO x:REAL4 ;;;; LOGARITHMS AND EXPONENTIALS log2 PROTO x:REAL4 ln PROTO x:REAL4 exp PROTO x:REAL4 pow PROTO x:REAL4,y:REAL4 ; x to the power of y log PROTO x:RE...
45,602
https://github.com/erichstuder/random/blob/master/RobotSensors/RobotSensors_PC/bluecove/bluecove-2.1.0-sources-all/bluecove-examples/bluecove-tester-base/src/main/java/org/bluecove/tester/util/SafeRunnable.java
Github Open Source
Open Source
MIT
2,018
random
erichstuder
Java
Code
214
457
/** * BlueCove - Java library for Bluetooth * Copyright (C) 2006-2008 Vlad Skarzhevskyy * * 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...
26,284
https://github.com/ahmedashrafdev/golang-echo-realworld-example-app/blob/master/handler/server.go
Github Open Source
Open Source
MIT
2,021
golang-echo-realworld-example-app
ahmedashrafdev
Go
Code
239
860
package handler import ( "fmt" "net/http" "strconv" "github.com/ahmedashrafdev/reports/model" "github.com/ahmedashrafdev/reports/utils" "github.com/labstack/echo/v4" ) func (h *Handler) CreateServer(c echo.Context) error { var s model.Server req := &ServerRequest{} fmt.Println(req) fmt.Println(s) if err :...
51,050
https://github.com/Nelaty/EyeCandy3D/blob/master/lib/include/ec3/gui/gui-shader-info-object.h
Github Open Source
Open Source
MIT
2,022
EyeCandy3D
Nelaty
C++
Code
32
160
#pragma once #include "Agui/Rectangle.hpp" #include "ec3/graphics/material/texture.h" #include <glm/glm.hpp> namespace ec { struct GuiShaderInfoObject { agui::Rectangle m_clippingRect; glm::vec2 m_position; glm::vec2 m_offset; glm::vec2 m_size; glm::vec4 m_color; Texture m_texture; bool m_usesTextu...
41,223
https://github.com/oliviertassinari/material-ui/blob/master/packages/mui-codemod/src/v1.0.0/svg-icon-imports.js
Github Open Source
Open Source
MIT
2,022
material-ui
oliviertassinari
JavaScript
Code
147
440
/** * Capitalize a string * @param {string} string */ function capitalize(string) { return string ? `${string[0].toUpperCase()}${string.slice(1)}` : string; } /** * Transform kebab-case icon name to PascalCase * e.g. access-alarm => AccessAlarm * @param {string} iconName */ function pascalize(iconName) { re...
34,597
https://github.com/iwasjoker/Linkis/blob/master/linkis-public-enhancements/linkis-bml/linkis-bml-server/src/main/java/com/webank/wedatasphere/linkis/bml/restful/BmlProjectRestful.java
Github Open Source
Open Source
Apache-2.0
2,021
Linkis
iwasjoker
Java
Code
834
3,794
package com.webank.wedatasphere.linkis.bml.restful; import com.webank.wedatasphere.linkis.bml.Entity.DownloadModel; import com.webank.wedatasphere.linkis.bml.Entity.ResourceTask; import com.webank.wedatasphere.linkis.bml.common.BmlProjectNoEditException; import com.webank.wedatasphere.linkis.bml.common.BmlServerParaEr...
7,088
https://github.com/iamzken/aliyun-openapi-cpp-sdk/blob/master/cloudesl/include/alibabacloud/cloudesl/model/UpdateStoreRequest.h
Github Open Source
Open Source
Apache-2.0
null
aliyun-openapi-cpp-sdk
iamzken
C
Code
195
632
/* * Copyright 2009-2017 Alibaba Cloud 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...
9,648
https://github.com/Darkflame72/mc-server-stats/blob/master/mcsrvstats/exceptions/exceptions.py
Github Open Source
Open Source
MIT
2,021
mc-server-stats
Darkflame72
Python
Code
137
322
"""All exceptions for mcsrvstats.""" from typing import Optional class ApiError(Exception): """Raised when a error occurs on the api side.""" def __init__(self, error: str, source: Optional[str] = "unknown source") -> None: """Error raised when api is not succesful. Args: error (...
49,299
https://github.com/dasher-project/website/blob/master/static/_redirects
Github Open Source
Open Source
Apache-2.0
2,023
website
dasher-project
null
Spoken
4
23
/en/dasher/ /dasher/ /en/inference/ /dasher/
44,665
https://github.com/meathill-freelance/line-diy/blob/master/src/com/meathill/diy/component/Tooltip.as
Github Open Source
Open Source
MIT
2,014
line-diy
meathill-freelance
null
Spoken
324
897
package com.meathill.diy.component { import com.meathill.diy.config.Typography; import flash.display.DisplayObject; import flash.display.DisplayObjectContainer; import flash.display.Sprite; import flash.display.Stage; import flash.geom.Rectangle; import flash.text.TextField; import flash.text.TextFieldA...
11,281
https://github.com/hillbw/exi-test/blob/master/java/esiaisparser/src/main/java/nl/esi/metis/aisparser/provenance/AISMessageProvenance.java
Github Open Source
Open Source
Apache-2.0
null
exi-test
hillbw
Java
Code
286
589
/* ESI AIS Parser * * Copyright 2011/2012 by Pierre van de Laar & Pierre America (Embedded Systems Institute) * Copyright 2008 by Brian C. Lane <bcl@brianlane.com> * All Rights Reserved * */ package nl.esi.metis.aisparser.provenance; import java.util.ArrayList; import java.util.List; import nl.esi.metis.aispa...
50,351
https://github.com/wangzhen-fit2cloud/OpsBot/blob/master/pre-commit.sh
Github Open Source
Open Source
MIT
2,022
OpsBot
wangzhen-fit2cloud
Shell
Code
33
82
#!/bin/bash # ln -s $PWD/pre-commit.sh .git/hooks/pre-commit go test ./... RESULT=$? if [[ $RESULT != 0 ]]; then echo "REJECTING COMMIT (test failed with status: $RESULT)" exit 1 fi go fmt ./... exit 0
40,951
https://github.com/HoelShare/portal/blob/master/src/LocalDelivery/DeliveryPackage/DeliveryPackageEntity.php
Github Open Source
Open Source
MIT
null
portal
HoelShare
PHP
Code
432
1,551
<?php declare(strict_types=1); /* * (c) shopware AG <info@shopware.com> * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Shopware\Production\LocalDelivery\DeliveryPackage; use Shopware\Core\Checkout\Shipping\ShippingMethodEnt...
49,176
https://github.com/hallvard/plantuml/blob/master/bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/util/DiagramTextPostProcessor.java
Github Open Source
Open Source
Artistic-1.0-cl8
2,022
plantuml
hallvard
Java
Code
13
50
package net.sourceforge.plantuml.util; public interface DiagramTextPostProcessor { public String getDiagramText(String diagramText, AbstractDiagramIntent<?> diagramIntent); }
40,166
https://github.com/caotoanbk/GinexEcom/blob/master/app/Http/Controllers/RequireController.php
Github Open Source
Open Source
MIT
null
GinexEcom
caotoanbk
PHP
Code
28
111
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests; use App\Http\Controllers\Controller; use App\CarrierRequire; use Auth; class RequireController extends Controller { public function requireCarrier(Request $request) { Auth::user()->carrierReq()->create($request->all()); ...
5,757
https://github.com/jsor/locale-data/blob/master/data/kk_KZ.js
Github Open Source
Open Source
MIT
2,021
locale-data
jsor
JavaScript
Code
306
1,997
(function(window, factory) { if (typeof define === 'function' && define.amd) { define([], function() { return factory(); }); } else if (typeof module === 'object' && typeof module.exports === 'object') { module.exports = factory(); } else { (window.LocaleData || (...
29,119
https://github.com/BernardYuan/CMPT361_IntroToComputerGraphics/blob/master/view_mac/Makefile
Github Open Source
Open Source
MIT
null
CMPT361_IntroToComputerGraphics
BernardYuan
Makefile
Code
17
74
GCC_OPTIONS=-Wall -pedantic -I ../include GL_OPTIONS=-framework OpenGL -framework GLUT OPTIONS=$(GCC_OPTIONS) $(GL_OPTIONS) .cpp: g++ $@.cpp initShader.cpp $(OPTIONS) -o $@
53,667
https://github.com/neutralinsomniac/advent2019/blob/master/02/Makefile
Github Open Source
Open Source
MIT
2,020
advent2019
neutralinsomniac
Makefile
Code
9
28
all: @go run 02-pt1.go input @go run 02-pt2.go input
2,304
https://github.com/bahsim/meet-me-up/blob/master/src/pages/profile/profile-settings.js
Github Open Source
Open Source
Unlicense
2,019
meet-me-up
bahsim
JavaScript
Code
160
538
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Link, Redirect } from 'react-router-dom'; import { ListItemSecondaryAction, Button, List, ListItem, ListItemText, Divider, } from '@material-ui/core'; import { AppLayout } from '../../layouts/App...
18,546
https://github.com/ddyakov/HackBulgaria/blob/master/06.WeekSix/Delegates/AverageAggregator/AverageAggregator.cs
Github Open Source
Open Source
MIT
2,017
HackBulgaria
ddyakov
C#
Code
77
229
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ComponentModel; namespace AverageAggregator { public class AverageAggregator : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; pri...
42,587
https://github.com/jbowerbir/JacobsFarm/blob/master/src/ui/TestUI.as
Github Open Source
Open Source
MIT
2,022
JacobsFarm
jbowerbir
null
Spoken
24
62
package ui { /** * ... * @author Ben Calvin */ public class TestUI extends InformationDisplay_design { public function TestUI() { } } }
42,565
https://github.com/softsquad-git/movie/blob/master/app/Http/Requests/Albums/AlbumRequest.php
Github Open Source
Open Source
MIT
null
movie
softsquad-git
PHP
Code
94
326
<?php namespace App\Http\Requests\Albums; use Illuminate\Foundation\Http\FormRequest; class AlbumRequest extends FormRequest { /** * @return bool */ public function authorize(): bool { return true; } /** * @return array */ public function rules(): array { ...
40,164
https://github.com/mirfan899/MTTS/blob/master/sppas/sppas/src/anndata/ann/annlocation/localizationcompare.py
Github Open Source
Open Source
MIT
null
MTTS
mirfan899
Python
Code
372
1,089
# -*- coding: UTF-8 -*- """ .. --------------------------------------------------------------------- ___ __ __ __ ___ / | \ | \ | \ / the automatic \__ |__/ |__/ |___| \__ annotation and \ | | | | \ ...
56,600
https://github.com/w771854332/easyWrite_pc/blob/master/src/utils/common.js
Github Open Source
Open Source
MIT
2,017
easyWrite_pc
w771854332
JavaScript
Code
193
515
/* eslint-disable */ (function (window, document) { const common = {}; window.common = common; common.writeStorage = function (key, value) { try { localStorage.setItem(key, value); } catch (e){ console.warn(e); } }; // 读取localStorage common.readStorage = function (key) { return ...
20,589
https://github.com/oracle/oci-toolkit-eclipse/blob/master/plugins/src/com/oracle/oci/eclipse/ui/explorer/database/PasswordUtils.java
Github Open Source
Open Source
UPL-1.0, CC0-1.0, LGPL-2.1-only, GPL-2.0-only, Apache-2.0, LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown-license-reference, BSD-3-Clause, LicenseRef-scancode-warranty-disclaimer, BSD-2-Clause, Classpath-exception-2.0, CDDL-1.1, EPL-2.0, GPL-1.0-or-later, MIT, LGPL-2.1-or-later
2,023
oci-toolkit-eclipse
oracle
Java
Code
642
2,017
/** * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. * Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl. */ package com.oracle.oci.eclipse.ui.explorer.database; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays...
19,851
https://github.com/remicollet/event/blob/master/php7/src/fe.h
Github Open Source
Open Source
PHP-3.01
2,021
event
remicollet
C
Code
542
2,739
/* +----------------------------------------------------------------------+ | PHP Version 8 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2020 The PHP Group | +---------...
18,557
https://github.com/TaimoorRana/Risk/blob/master/pre-build.sh
Github Open Source
Open Source
MIT
2,016
Risk
TaimoorRana
Shell
Code
48
135
#!/bin/sh /bin/echo -n "Is Homebrew installed? " which brew if [ $? -gt 0 ];then /bin/echo -n "no, proceed with installation? [Y/n] " read -n 1 answer if [ "$answer" == "n" ];then exit 1 fi ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" fi brew install qt5 brew ...
30,769
https://github.com/yuriilychak/MantiCore/blob/master/src/timer/Timer.js
Github Open Source
Open Source
MIT
2,019
MantiCore
yuriilychak
JavaScript
Code
951
2,668
import Math from "util/Math"; import Model from "model/Model"; import Constant from "constant"; /** * @desc Timer class. Don't us it manually!!! Managed by MANTICORE.timer * @class * @memberOf MANTICORE.timer * @extends MANTICORE.model.Model */ class Timer extends Model { /** * @constructor * @para...
3,392
https://github.com/ivelin1936/Studing-SoftUni-/blob/master/Java Fundamentals/Java OOP Advanced/Exercise SOLID Principles - Logger/src/main/java/factories/AppenderFactory.java
Github Open Source
Open Source
MIT
2,018
Studing-SoftUni-
ivelin1936
Java
Code
69
225
package factories; import interfaces.Appender; import interfaces.Layout; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; public final class AppenderFactory { private static final String CLASS_PATH = "models.appenders."; protected AppenderFactory() { } publ...
27,439
https://github.com/AndyYang78/wx-aio/blob/master/client/app.js
Github Open Source
Open Source
MIT
2,017
wx-aio
AndyYang78
JavaScript
Code
333
1,499
/** * @fileOverview 微信小程序的入口文件 */ // 引入 QCloud 小程序增强 SDK var qcloud = require('./vendor/wafer2-client-sdk/index'); // 引入配置 var config = require('./config'); var util = require('/common/util.js'); var bmap = require('/libs/bmap-wx.js'); const ak = 'bfwtSbwjqSnIPWGIjKssrQdsPZn0Q87g'; var wxMarkerData = []; // 显示繁忙提示 va...
47,172
https://github.com/Riktam-Santra/mangadexForDart/blob/master/mangadex_library/lib/models/login/Login.dart
Github Open Source
Open Source
BSD-3-Clause
null
mangadexForDart
Riktam-Santra
Dart
Code
69
203
import 'package:mangadex_library/mangadexServerException.dart'; class Login { late final String result; late final Token token; Login(this.result, this.token); Login.fromJson(Map<String, dynamic> json) { result = json['result'] ?? ''; if (result == 'ok') { token = Token.fromJson(json['token']!); ...
6,739
https://github.com/Blablaf/java-uvod-do-programovani-2/blob/master/Pro studenty/Java-Training/Projects/Java-uvod-2/Demos/Od studentek/Jana_Makovcova-Miny/src/main/java/cz/czechitas/miny/HlavniOkno.java
Github Open Source
Open Source
Apache-2.0
2,021
java-uvod-do-programovani-2
Blablaf
Java
Code
1,798
6,298
package cz.czechitas.miny; import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.Timer; import javax.swing.border.*; import java.util.*; import java.util.List; public class HlavniOkno extends JFrame { //public static int cas = 0; private int sirkaPole; private int vyskaPole;...
49,852
https://github.com/HomineLudens/FemtoIDE/blob/master/javacompiler/femto/StringPair.java
Github Open Source
Open Source
GPL-1.0-or-later, Apache-2.0, MIT
2,020
FemtoIDE
HomineLudens
Java
Code
26
58
package femto; public class StringPair { public String key; public String value; StringPair( String key, String value ){ this.key = key; this.value = value; } }
4,035
https://github.com/Darmandi/Java_intern/blob/master/chapter_002/src/main/java/ru/job4j/profession/Engeneer.java
Github Open Source
Open Source
Apache-2.0
2,018
Java_intern
Darmandi
Java
Code
73
208
package ru.job4j.profession; /** * Класс инженер * @author Дмитрий Сараев (guitarpro4@mail.ru) * @version 1 */ public class Engeneer extends Profession { public Engeneer() { } public Engeneer(String name, String profession) { super(name, profession); } /** * Строит дом * @p...
5,630
https://github.com/Jual6332/HarnessOnline/blob/master/HarnessOnlineCopy/src/common/utilities/buildRequest.js
Github Open Source
Open Source
MIT
null
HarnessOnline
Jual6332
JavaScript
Code
192
423
/* eslint-disable no-param-reassign */ import _ from 'lodash'; /** * Creates a query string from an object * @param {Object} query contains the query as keys and values * @returns {String} an object containing the url string and the query */ function createQS (query) { return _.reduce(query, (result, value, key)...
27,402
https://github.com/akania/cucumberjs-browserRunner/blob/master/Gruntfile.js
Github Open Source
Open Source
MIT
2,014
cucumberjs-browserRunner
akania
JavaScript
Code
50
295
module.exports = function (grunt) { 'use strict'; grunt.loadNpmTasks('grunt-jslint'); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.initConfig({ jslint: { client: { src: [ 'lib/runner.js', 'lib/listeners/**.js' ...
51,767
https://github.com/avik-pal/Getting-Started-with-C/blob/master/ESC101 Questions Y17 Batch A/timeticking.c
Github Open Source
Open Source
MIT
2,022
Getting-Started-with-C
avik-pal
C
Code
45
171
#include<stdio.h> int counter(int n, int m) { if(n==0 && m!=0) return 1; else if(n==0 && m==0) return 1; else if(n!=0 && m==0) return 0; else { return counter(n-1,m)+2*counter(n,m-1)+counter(n-1,m-1); } } int main() { int n,m; scanf("%d %d",&n,&m); i...
8,560
https://github.com/khajaphysist/office-maker-client/blob/master/src/elm/API/Cache.elm
Github Open Source
Open Source
Apache-2.0
null
office-maker-client
khajaphysist
null
Spoken
312
671
module API.Cache exposing (..) import Json.Decode as D exposing (Decoder) import Json.Encode as E exposing (Value) import Model.I18n as I18n exposing (..) import Model.Scale as Scale exposing (Scale) import PersistentCache as Cache import Task exposing (..) import Util.DecodeUtil exposing (..) type alias Cache = ...
1,541
https://github.com/CharulAggarwalSP/TastyIgniterNov2019/blob/master/extensions/igniter/payregister/payments/Stripe.php
Github Open Source
Open Source
MIT, GPL-1.0-or-later
2,019
TastyIgniterNov2019
CharulAggarwalSP
PHP
Code
405
1,672
<?php namespace Igniter\PayRegister\Payments; use Admin\Classes\BasePaymentGateway; use ApplicationException; use Exception; use Omnipay\Omnipay; use Redirect; use Session; class Stripe extends BasePaymentGateway { public function registerEntryPoints() { return [ 'stripe_return_url' => 'pr...
11,691
https://github.com/CharlesPryor/VSF1502/blob/master/Pryor_Charles_Project4/Resources/picturesViewController.js
Github Open Source
Open Source
Apache-2.0
2,015
VSF1502
CharlesPryor
JavaScript
Code
140
784
var OpenNewWindow = function(){ var imagesFolder = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, "Images"); var ImageFiles = imagesFolder.getDirectoryListing(); var lastIndex = Math.floor(Math.random()*ImageFiles.length); var detailedWindow = Ti.UI.createWindow({ backgroundColor:"#333", }); v...
48,436
https://github.com/Joel2B/Custom-Video-Player/blob/master/src/js/menu/subtitles.js
Github Open Source
Open Source
MIT
2,022
Custom-Video-Player
Joel2B
JavaScript
Code
1,633
4,657
import { createElement, emptyEl, insertAfter, toggleClass } from '../utils/dom'; import { on, triggerEvent } from '../utils/events'; import { selector } from './menu-item'; import WebVTT from 'videojs-vtt.js/lib/vtt'; import fetch from '../utils/fetch'; import is from '../utils/is'; class Subtitles { constructor(p...
8,359
https://github.com/MohammadPCh/nlai/blob/master/index.js
Github Open Source
Open Source
MIT
null
nlai
MohammadPCh
JavaScript
Code
360
1,130
// const HTML = ""; // const cheerio = require('cheerio') // const $ = cheerio.load(HTML); // let a = $('table tr:nth-child(2) table:nth-child(2) tr td:nth-child(2)').text(); // console.log('a', a) var Crawler = require("crawler"); var MongoClient = require('mongodb').MongoClient; var url = "mongodb://localhost:270...
35,828
https://github.com/lowre/bbn/blob/master/src/bbn/api/kendo/tree.php
Github Open Source
Open Source
MIT
2,017
bbn
lowre
PHP
Code
373
1,777
<?php /* * */ namespace bbn\api\kendo; use bbn; class tree // extends object { public /** @var \Kendo\UI\Tree Tree Object */ $tree, /** @var \Kendo\Data\DataSource DataSource Object */ $dataSource, /** @var \Kendo\Data\DataSourceSchema Sch...
19,163
https://github.com/sabin-chacko/nextjs-project/blob/master/dist/todo/schemas/todo.schema.d.ts
Github Open Source
Open Source
MIT
null
nextjs-project
sabin-chacko
TypeScript
Code
44
110
import { Document } from 'mongoose'; import * as mongoose from 'mongoose'; export declare type TodoDocument = Todo & Document; export declare class Todo { id: string; todo_item: string; User_id: string; status: string; } export declare const TodoSchema: mongoose.Schema<Document<Todo, any>, mongoose.Mode...
53,801
https://github.com/abhishekpshenoy/Python/blob/master/Conditional_statements/if_conditional.py
Github Open Source
Open Source
MIT
2,021
Python
abhishekpshenoy
Python
Code
25
58
""" NOTE if statement if condition: statement1 statement2 """ a = 10 b = 20 if (a<b): print("a<b") print("program has completed execution the if statment")
46,618
https://github.com/CragonGame/CasinosClient/blob/master/_Backup/_Backup5/Plugins/GameCloud.Unity.Native/Pay/OpenIAB/OpenIAB/OptionsVerifyMode.cs
Github Open Source
Open Source
MIT
2,023
CasinosClient
CragonGame
C#
Code
194
368
/******************************************************************************* * Copyright 2012-2014 One Platform Foundation * * 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 Lic...
52,186
https://github.com/DigitME2/MachineMonitoring/blob/master/app/src/main/java/uk/co/digitme/machinemonitoring/DataEntryActivity.java
Github Open Source
Open Source
Apache-2.0
null
MachineMonitoring
DigitME2
Java
Code
1,119
3,754
package uk.co.digitme.machinemonitoring; import android.app.AlertDialog; import android.app.TimePickerDialog; import android.content.BroadcastReceiver; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.IntentFilter; import android.icu.text.Sim...
31,919
https://github.com/toenuff/winss/blob/master/lib/winss/not_owning_ptr.hpp
Github Open Source
Open Source
MIT, Apache-2.0
2,017
winss
toenuff
C++
Code
558
1,110
/* * Copyright 2016-2017 Morgan Stanley * * 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 ag...
42,107
https://github.com/schana/skillsusa-java/blob/master/game/MyMover.java
Github Open Source
Open Source
Apache-2.0
null
skillsusa-java
schana
Java
Code
23
64
package game; public class MyMover extends SnakeMover { public MyMover(Board board) { super(board); } @Override public Direction getNextDirection() { return Direction.UP; } }
7,693
https://github.com/earthobservatory/isce2/blob/master/docker/build_env.sh
Github Open Source
Open Source
ECL-2.0, Apache-2.0
2,019
isce2
earthobservatory
Shell
Code
10
73
export BUILD_DIR=/root/build-isce export ISCE_SRC=$HOME/isce2 export SCONS_CONFIG_DIR=$ISCE_SRC/configuration export ISCE_BUILD_ROOT=$BUILD_DIR/build export ISCE_INSTALL_ROOT=/opt/isce2
38,798
https://github.com/NaldoDj-zz/tweb/blob/master/tutor5.prg
Github Open Source
Open Source
MIT
2,021
tweb
NaldoDj-zz
null
Spoken
245
563
// {% LoadHrb( 'lib/tweb/tweb.hrb' ) %} #include {% TWebInclude() %} function main() local o, oWeb local cLoren := "<h2>Why do we use it?</h2>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has...
22,866
https://github.com/michaelglass/accessible-html-with-css/blob/master/src/Accessibility/Styled/Style.elm
Github Open Source
Open Source
BSD-3-Clause
null
accessible-html-with-css
michaelglass
null
Spoken
102
268
module Accessibility.Styled.Style exposing (invisible) {-| ## Hiding content For more information on hiding/semi-hiding elements, please see [the a11y project.](http://a11yproject.com/posts/how-to-hide-content/) @docs invisible -} import Html.Styled as Html import Html.Styled.Attributes {-| Makes content invis...
11,406
https://github.com/michft/helloblink/blob/master/src/libi2c.asm
Github Open Source
Open Source
MIT
2,017
helloblink
michft
Assembly
Code
1,942
4,817
;**** A P P L I C A T I O N N O T E A V R 3 0 0 ************************ ;* ;* Title : I2C (Single) Master Implementation ;* Version : 1.0 (BETA) ;* Last updated : 97.08.27 ;* Target : AT90Sxxxx (any AVR device) ;* ;* Support email : avr@atmel.com ;* ;* DESCRIPTION ;* Basic routines for communicating with I2C ...
33,151
https://github.com/tinaedems/can-rrsp-cashout/blob/master/src/lib/viz-util.js
Github Open Source
Open Source
MIT
2,021
can-rrsp-cashout
tinaedems
JavaScript
Code
41
102
import { accounting } from 'accounting'; function barStyle(valueA, valueB) { const percentage = valueA < valueB ? `${(valueA / valueB) * 100}%` : '100%'; return { width: percentage, }; } function formatMoney(value) { return accounting.formatMoney(value); } export { barStyle, formatMoney };
42,981
https://github.com/RoyHirsch/BrainTumorSegmentation/blob/master/UnetModel/scripts/utils.py
Github Open Source
Open Source
MIT
null
BrainTumorSegmentation
RoyHirsch
Python
Code
310
1,203
from UnetModel import * import matplotlib.pyplot as plt def startLogging(logDir, debug=False): # this function starts logging the software outputs. # two levels logging: DEBUG and INFO # init a logger set logging level logFormat = '%(asctime)s - %(levelname)s - %(module)s : %(message)s' if debug: logging.basic...
124
https://github.com/ted1104/Rest-Api-Python-Todo/blob/master/todo/admin.py
Github Open Source
Open Source
MIT
null
Rest-Api-Python-Todo
ted1104
Python
Code
46
168
from django.contrib import admin from todo.models import Todo, TodoList # Register your models here. class TodoInline(admin.TabularInline): model = Todo extra = 0 @admin.register(TodoList) class TodoListAdmin(admin.ModelAdmin): list_display = ('name',) inlines = (TodoInline,) @admin.register(Todo)...
24,482
https://github.com/dbca-wa/biosys/blob/master/biosys/apps/main/migrations/0005_auto_20170512_1019.py
Github Open Source
Open Source
Apache-2.0
2,022
biosys
dbca-wa
Python
Code
96
475
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2017-05-12 02:19 from __future__ import unicode_literals import django.contrib.postgres.fields.jsonb import django.utils.timezone from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies =...
46,407
https://github.com/adachigit/BlueFrog-Cocos2dx/blob/master/lib/cocos2d-x/scripting/lua/proj.android/Android.mk
Github Open Source
Open Source
MIT
null
BlueFrog-Cocos2dx
adachigit
Makefile
Code
273
2,568
LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := cocos_lua_static LOCAL_MODULE_FILENAME := liblua LOCAL_SRC_FILES := ../cocos2dx_support/CCLuaEngine.cpp \ ../cocos2dx_support/CCLuaStack.cpp \ ../cocos2dx_support/CCLuaValue.cpp \ ../cocos2dx_support/Cocos2dxLuaLoader.cpp \ ../cocos2d...
33,881
https://github.com/TheusZer0/ctf-archives/blob/master/DEFCON/2021/Quals/pwn/gran-a-fallen-lap-ray/wrapper
Github Open Source
Open Source
MIT
2,021
ctf-archives
TheusZer0
Shell
Code
59
162
#!/bin/bash exec 2>/dev/null # create a temp directory for this connection TEMP_DIR=$(mktemp -d) chmod o+rx "$TEMP_DIR" cleanup() { rm -rf "$TEMP_DIR" exit 0 } trap cleanup EXIT ERR INT TERM # Copy the files to the new temp directory cp -p /service/* "$TEMP_DIR" cd "$TEMP_DIR" /schitzo 300 "$TEMP_DIR/manc...
30,018
https://github.com/zyxrrr/GraphSfM/blob/master/software/libvot/src/utils/global_params.h
Github Open Source
Open Source
BSD-3-Clause
2,022
GraphSfM
zyxrrr
C
Code
372
691
/* Copyright (c) 2015, Tianwei Shen All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following d...
44,681
https://github.com/woon5118/totara_ub/blob/master/server/totara/core/classes/hook/navigation/global_navigation_initialise.php
Github Open Source
Open Source
PostgreSQL
null
totara_ub
woon5118
PHP
Code
201
396
<?php /* * This file is part of Totara LMS * * Copyright (C) 2019 onwards Totara Learning Solutions LTD * * 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 3 of the License, ...
13,242
https://github.com/lebedevsergey/votershelper/blob/master/app/src/main/java/com/example/admin/vybor/util/DataBaseHelper.java
Github Open Source
Open Source
Apache-2.0
null
votershelper
lebedevsergey
Java
Code
618
1,763
package com.example.admin.vybor.util; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteException; import android.database.sqlite.SQLiteOpenHelper; import com.example.admin.vybor.Mo...
24,318
https://github.com/sylvainbonnot/stream2py/blob/master/stream2py/sources/video.py
Github Open Source
Open Source
Apache-2.0
2,020
stream2py
sylvainbonnot
Python
Code
253
1,094
from typing import Any, Optional, Union import cv2 import operator from stream2py import SourceReader from stream2py.utility.typing_hints import ComparableType _ITEMGETTER_0 = operator.itemgetter(0) class VideoCapture(SourceReader): """Video Capture using OpenCV""" def __init__(self, video_input: Union[st...
9,036
https://github.com/Agnes007/mybraft/blob/master/build/output/include/braft/errno.pb.h
Github Open Source
Open Source
Apache-2.0
null
mybraft
Agnes007
C
Code
268
928
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: braft/errno.proto #ifndef PROTOBUF_braft_2ferrno_2eproto__INCLUDED #define PROTOBUF_braft_2ferrno_2eproto__INCLUDED #include <string> #include <google/protobuf/stubs/common.h> #if GOOGLE_PROTOBUF_VERSION < 2006000 #error This file was generated ...
25,122
https://github.com/chenlinming/Anclient/blob/master/js/test/react/views/users.jsx
Github Open Source
Open Source
Apache-2.0
null
Anclient
chenlinming
null
Spoken
281
981
import React from 'react'; import { withStyles } from "@material-ui/core/styles"; import { TextField } from '@material-ui/core'; import { L } from '../../../lib/frames/react/utils/langstr'; import { QueryReq } from '../../../lib/protocol'; import { AnConst } from '../../../lib/frames/react/utils/consts'; import { ...
16,456
https://github.com/tkhatibi/php-field/blob/master/src/FieldFactory.php
Github Open Source
Open Source
MIT
2,016
php-field
tkhatibi
PHP
Code
114
284
<?php namespace tjpx\field; use tjpx\helper\Factory; /** * @link https://github.com/2rajpx/php-field/ * @license https://github.com/2rajpx/php-field/blob/master/LICENSE */ /** * The field factory class to make instance from form fields * * @author Tooraj Khatibi <2rajpx@gmail.com> * @link https://github.com/2...
24,896
https://github.com/eskaaren/docker-engine-api/blob/master/t/Docker/Engine/API/Services.t
Github Open Source
Open Source
Apache-2.0
2,016
docker-engine-api
eskaaren
Perl
Code
200
656
use v5.24; use Test::More; use lib '../../../../lib'; use lib 'lib'; use Docker::Engine::API; use JSON::PP; use Env; unless (-d '/tmp/swarmtest') { mkdir '/tmp/swarmtest'; } my $d = Docker::Engine::API->new( { base_url => $ENV{'prove_url'} // 'http://127.0.0.1:3375' } ); my $swarm = $d->{swarm}; $swarm->in...
5,832
https://github.com/Sapphire-CM/Sapphire/blob/master/app/controllers/concerns/exercise_context.rb
Github Open Source
Open Source
MIT
2,021
Sapphire
Sapphire-CM
Ruby
Code
30
114
module ExerciseContext extend ActiveSupport::Concern included do include TermContext before_action :fetch_exercise helper_method :current_exercise end def current_exercise @exercise end private def fetch_exercise id = params[:exercise_id] @exercise = current_term.exercises.fin...
12,734
https://github.com/jlarsson/Kiwi.Json/blob/master/Kiwi.Json.Tests/Theories/IEncodingExpectation.cs
Github Open Source
Open Source
MIT
2,012
Kiwi.Json
jlarsson
C#
Code
38
102
using System; using Kiwi.Json.Untyped; namespace Kiwi.Json.Tests.Theories { public interface IEncodingExpectation { Type ValueType { get; } Type JsonType { get; } object Value { get; } string ExpectedJsonEncoding { get; } IEncodingExpectation ShouldParseTo<T>() where T...
38,829
https://github.com/Planning-nl/flexbox.js-example/blob/master/webpack.config.js
Github Open Source
Open Source
Apache-2.0
null
flexbox.js-example
Planning-nl
JavaScript
Code
73
235
const { resolve } = require('path'); const config = { entry: { main: resolve('./src/index.ts') }, output: { filename: 'app.js', path: __dirname + '/out' }, module: { rules: [ { test: /\.tsx?$/, loader: ['ts-loader'], ...
5,707
https://github.com/zjplab/nmt_soft_prototype/blob/master/fairseq/models/fconv.py
Github Open Source
Open Source
MIT
2,020
nmt_soft_prototype
zjplab
Python
Code
2,484
9,208
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. import math import torch import to...
37,085
https://github.com/funkwerk/antlr-d/blob/master/Makefile
Github Open Source
Open Source
BSD-3-Clause
2,021
antlr-d
funkwerk
Makefile
Code
600
2,959
# Make for antlr-d EXPORT = /usr/local DMD_EXE = ldc2 UNAME_M := $(shell uname -m) ifeq ($(UNAME_M),x86_64) RDMD = rdmd EXPORT_INCLUDE = $(EXPORT)/include/d EXECUTABLE = x86-64 TESTRUNNER_OPT = endif ifeq ($(UNAME_M),i686) RDMD = rdmd EXPORT_INCLUDE = $(EXPORT)/include/d EXECUTABLE = 8038...
27,620
https://github.com/tlopo/k8s-cb/blob/master/resources/x509_certificate.rb
Github Open Source
Open Source
MIT
null
k8s-cb
tlopo
Ruby
Code
62
176
#resource_name :x509_cert actions :create, :delete, :update default_action :create attribute :ca_cert, kind_of: String, required: true attribute :ca_key, kind_of: String, required: true attribute :cert_dst, kind_of: String, required: true attribute :key_dst, kind_of: String, required: true attribute :subject, kind_of...
35,844
https://github.com/mpvyard/MT/blob/master/src/MarginTrading.Backend/Modules/BackendRepositoriesModule.cs
Github Open Source
Open Source
MIT
2,017
MT
mpvyard
C#
Code
147
1,188
using Autofac; using AzureStorage.Tables; using Common.Log; using MarginTrading.AzureRepositories; using MarginTrading.AzureRepositories.Reports; using MarginTrading.Core; using MarginTrading.Core.Clients; using MarginTrading.Core.Settings; using MarginTrading.Services; namespace MarginTrading.Backend.Modules { publ...
32,845
https://github.com/BA7JCM/metasploit-framework/blob/master/data/templates/src/pe/dll/template.c
Github Open Source
Open Source
BSD-2-Clause, BSD-3-Clause
2,017
metasploit-framework
BA7JCM
C
Code
619
1,509
#include <windows.h> #include "template.h" #if BUILDMODE == 2 /* hand-rolled bzero allows us to avoid including ms vc runtime */ void inline_bzero(void *p, size_t l) { BYTE *q = (BYTE *)p; size_t x = 0; for (x = 0; x < l; x++) *(q++) = 0x00; } #endif void ExecutePayload(void); BOOL WINAPI DllMain (HANDLE hDll...
52,793
https://github.com/pulumi/pulumi-aws-native/blob/master/sdk/dotnet/AmplifyUiBuilder/Enums.cs
Github Open Source
Open Source
Apache-2.0
2,023
pulumi-aws-native
pulumi
C#
Code
595
1,683
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.ComponentModel; using Pulumi; namespace Pulumi.AwsNative.AmplifyUiBuilder { [EnumType] public readonly struct FormActionType : I...
53,966
https://github.com/ashishchoksi/traffexchange/blob/master/application/views/register.php
Github Open Source
Open Source
MIT
null
traffexchange
ashishchoksi
PHP
Code
304
1,441
<?php if(validation_errors()) { $error=array(); if(@form_error('name')){ $error['name']=form_error('name'); } elseif(@form_error('email')){ $error['email']=form_error('email'); } elseif(@form_error('password')){ $error['password']=form_error('password'); } elseif(@form_error('confpassword')){ $error['confpa...
43,954