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/sjbarigye/CPP_Primer/blob/master/chap19/Exer19_26.c | Github Open Source | Open Source | Apache-2.0 | 2,022 | CPP_Primer | sjbarigye | C | Code | 14 | 41 | #include "Exer19_26.h"
int compute(int *p, int i)
{
p = &i;
return *p;
}
| 3,145 |
https://github.com/jainsakshi2395/linux/blob/master/arch/x86/entry/Makefile | Github Open Source | Open Source | Linux-OpenIB | 2,022 | linux | jainsakshi2395 | Makefile | Code | 50 | 229 | # SPDX-License-Identifier: GPL-2.0
#
# Makefile for the x86 low level entry code
#
KASAN_SANITIZE := n
UBSAN_SANITIZE := n
KCOV_INSTRUMENT := n
CFLAGS_REMOVE_common.o = $(CC_FLAGS_FTRACE)
CFLAGS_common.o += -fno-stack-protector
obj-y := entry_$(BITS).o thunk_$(BITS).o syscall_$(BITS).o
obj-y += common.o
o... | 36,168 |
https://github.com/payhawk/xero-integration/blob/master/src/services/fx-rates/client/Client.ts | Github Open Source | Open Source | MIT | 2,022 | xero-integration | payhawk | TypeScript | Code | 78 | 261 | import * as request from 'request-promise';
import { formatDate } from '@utils';
import { IClient, IHistoricalDataResponse } from './IClient';
export class Client implements IClient {
constructor(
private readonly url: string,
private readonly accessKey: string,
) {
}
async getByDate... | 35,827 |
https://github.com/RajatPugaliya1234/ScanGHfromAzDO/blob/master/node_modules/mocha-multi-reporters/tests/lib/MultiReporters.test.js | Github Open Source | Open Source | MIT | 2,021 | ScanGHfromAzDO | RajatPugaliya1234 | JavaScript | Code | 805 | 3,158 | /*global require, describe, it, before, beforeEach */
var _require = require('root-require');
var expect = require('chai').expect;
var Mocha = require('mocha');
var sinon = require('sinon');
var Suite = Mocha.Suite;
var Runner = Mocha.Runner;
var Test = Mocha.Test;
describe('lib/MultiReporters', function () {
var ... | 32,810 |
https://github.com/team-epk/garbagehorse-International-website/blob/master/includes/htmlhead.php | Github Open Source | Open Source | MIT | null | garbagehorse-International-website | team-epk | PHP | Code | 53 | 265 | <meta name=viewport content="width=device-width, initial-scale=1.0" />
<!--<link rel="stylesheet" href="src/js/normalize.min.css" />-->
<!--<link rel="stylesheet" href="src/js/skeleton.min.css" />-->
<meta charset="utf-8">
<link rel="stylesheet" href="css/garbagestyle.css" />
<title>Garbagehorse International</titl... | 3,071 |
https://github.com/JurajKubelka/MQTTCallbackClient/blob/master/repository/MQTT-CallbackClient.package/MQTTCommand.class/instance/responseBlock.st | Github Open Source | Open Source | MIT | 2,017 | MQTTCallbackClient | JurajKubelka | null | Spoken | 4 | 11 | accessing
responseBlock
^ responseBlock | 33,091 |
https://github.com/danielpecak/myLittleCuda/blob/master/FortranExample2/Makefile | Github Open Source | Open Source | MIT | null | myLittleCuda | danielpecak | Makefile | Code | 22 | 79 | all: bin/addvec bin/addvec_pinned
bin/%: %.cuf mod10mat.o
pgf90 -o $@ $^ -mcmodel=medium
%.o: %.cuf
pgf90 -c $^ -mcmodel=medium
clear:
rm *.o *.mod bin/*
| 19,103 |
https://github.com/CircuitVerse/CircuitVerse/blob/master/spec/requests/api/v1/projects_controller/user_projects_spec.rb | Github Open Source | Open Source | MIT, LicenseRef-scancode-free-unknown | 2,023 | CircuitVerse | CircuitVerse | Ruby | Code | 432 | 1,505 | # frozen_string_literal: true
require "rails_helper"
RSpec.describe Api::V1::ProjectsController, "#user_projects", type: :request do
describe "list user's projects" do
let!(:user_one) { FactoryBot.create(:user) }
let!(:user_two) { FactoryBot.create(:user) }
let!(:public_project_user_one) do
Factor... | 24,754 |
https://github.com/jakicho/booking-project/blob/master/contracts/Coladay.sol | Github Open Source | Open Source | MIT | null | booking-project | jakicho | Solidity | Code | 511 | 1,488 | pragma solidity ^0.4.24;
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
/**
* @title Coladay
* @dev allow users to book a room during the ColaDay
* A slot (ex: C0105) is defined by:
* - the name of the company ("C" or "P")
* - the ID of the room (from 01 to 10)
* - the hour (08 to 18)
*/
contr... | 5,933 |
https://github.com/yuds68/shops/blob/master/resources/views/layouts/main-layout-menu.blade.php | Github Open Source | Open Source | MIT | null | shops | yuds68 | PHP | Code | 154 | 815 | <div id="hornav" class="bottom-border-shadow">
<div class="container no-padding border-bottom">
<div class="row">
<div class="col-md-12 no-padding">
<div class="visible-lg">
<ul id="hornavmenu" class="nav navbar-nav">
<li>
<span class="fa-copy ">Master</span>
<ul>
<li>
... | 57,060 |
https://github.com/pengxi1996/hui-demo/blob/master/src/frame/utils/transWhiteList.js | Github Open Source | Open Source | MIT | null | hui-demo | pengxi1996 | JavaScript | Code | 61 | 381 | const omcGsv = window.LOCAL_CONFIG.OMC_GSV
const whiteList = [
'/cas/user/logout',
'/getSecurityKey',
'/unlock.json',
'/submitLogin',
'/updatePwd',
'/lock.json',
'/insertUserMenuFavorite',
'/deleteByMenuCodeAndUserId',
'/getCurrUserInfo',
'/updateUserInfo',
'/checkUserNameOrPwd.json',
'/getCheck... | 37,218 |
https://github.com/tianyl1984/shell_demo/blob/master/checkout.sh | Github Open Source | Open Source | Apache-2.0 | null | shell_demo | tianyl1984 | Shell | Code | 30 | 118 | #!/bin/bash
set -e
BASE_DIR=D:/code-huijin
GIT_REPO=(huijin-admin huijin-apigateway huijin-base huijin-charging huijin-core huijin-debt huijin-loanpayment)
for repo in ${GIT_REPO[@]}
do
cd ${BASE_DIR}/${repo}
git checkout master
done
echo "press enter to exit"
read temp
exit | 55,267 |
https://github.com/allangomessl/crypto/blob/master/dev_deps.ts | Github Open Source | Open Source | MIT, LicenseRef-scancode-warranty-disclaimer | 2,021 | crypto | allangomessl | TypeScript | Code | 30 | 144 | export {
bench,
runBenchmarks,
} from "https://deno.land/std@0.92.0/testing/bench.ts";
export {
assertEquals,
assertThrows,
} from "https://deno.land/std@0.92.0/testing/asserts.ts";
export { parse as parseArgs } from "https://deno.land/std@0.92.0/flags/mod.ts";
export { decodeString as decodeHex } from "https:/... | 18,160 |
https://github.com/liuflylove666/headlamp/blob/master/frontend/src/components/common/ViewButton.tsx | Github Open Source | Open Source | Apache-2.0 | 2,021 | headlamp | liuflylove666 | TSX | Code | 98 | 324 | import eyeIcon from '@iconify/icons-mdi/eye';
import eyeOff from '@iconify/icons-mdi/eye-off';
import Icon from '@iconify/react';
import { IconButton, Tooltip } from '@material-ui/core';
import React from 'react';
import { KubeObject } from '../../lib/k8s/cluster';
import EditorDialog from './EditorDialog';
interface ... | 24,226 |
https://github.com/just1994/Web-Training/blob/master/11. Node/expressRoute/Routes.js | Github Open Source | Open Source | MIT | 2,022 | Web-Training | just1994 | JavaScript | Code | 95 | 280 | //Creating Server Using express
const express = require("express");
/*
New method based on ES6
include express from 'express';
*/
const app = express();
app.get("/", function (req, res) {
res.send("Hello World");
});
app.get("/about", function (req, res) {
res.send("about us");
});
app.get("/heyy", functi... | 45,669 |
https://github.com/blackms/goarubacloud/blob/master/configuration.go | Github Open Source | Open Source | MIT | 2,019 | goarubacloud | blackms | Go | Code | 419 | 956 | package goarubacloud
import (
"gopkg.in/ini.v1"
"os"
"strings"
"path/filepath"
"fmt"
)
// Use variables for easier test overload
var (
systemConfigPath = "/etc/arubacloud.conf"
userConfigPath = "/.arubacloud.conf" // prefixed with homeDir
localConfigPath = "./arubacloud.conf"
)
// appendConfigurationFile... | 23,033 |
https://github.com/Brent-rb/University/blob/master/master/networking-and-interfacing-iot-platforms/practica/2/1-rfid/main.py | Github Open Source | Open Source | MIT | null | University | Brent-rb | Python | Code | 268 | 655 | #!/usr/bin/env python3
# Based on https://github.com/cspencer/parallax-rfid-reader/blob/master/parallax.py
import serial
import time
import RPi.GPIO as GPIO
# RPI3 UART is on ttyS0
SERIAL_PORT = "/dev/ttyS0"
ENABLE_RFID_PIN = 23
def validate_rfid(code):
# A valid code will be 12 characters long with the first... | 8,278 |
https://github.com/PandoraHeartss/notes/blob/master/Spring/spring-in-action/src/main/java/me/young1lin/spring/boot/thinking/listener/generics/User.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | notes | PandoraHeartss | Java | Code | 48 | 160 | package me.young1lin.spring.boot.thinking.listener.generics;
/**
* @author <a href="mailto:young1lin0108@gmail.com">young1lin</a>
* @since 2020/12/29 上午8:22
* @version 1.0
*/
public class User {
private final String name;
public User(String name) {
this.name = name;
}
@Override
public String toString() {... | 11,927 |
https://github.com/mitrejcevski/lyrics/blob/master/app/src/androidTest/java/nl/jovmit/lyrics/main/edit/EditSongScreenRobot.kt | Github Open Source | Open Source | Apache-2.0 | null | lyrics | mitrejcevski | Kotlin | Code | 133 | 645 | package nl.jovmit.lyrics.main.edit
import androidx.test.core.app.ActivityScenario.launch
import androidx.test.espresso.action.ViewActions.*
import nl.jovmit.lyrics.*
import nl.jovmit.lyrics.main.MainActivity
import nl.jovmit.lyrics.main.data.song.Song
@DslMarker
annotation class EditSongScreenRobot
fun launchMainScr... | 48,569 |
https://github.com/MikeDoig/js-deli-counter-bootcamp-prep-000/blob/master/index.js | Github Open Source | Open Source | LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown-license-reference | 2,019 | js-deli-counter-bootcamp-prep-000 | MikeDoig | JavaScript | Code | 77 | 211 | var katzDeliLine = [];
function takeANumber (line, name) {
line.push(name);
return `Welcome, ${name}. You are number ${line.length} in line.`;
}
function nowServing(front) {
if (front.length===0)
return 'There is nobody waiting to be served!';
else
return `Currently serving ${front.shift()}.`;
}
funct... | 17,951 |
https://github.com/derekju/fusionjs/blob/master/fusion-react/src/__tests__/render.js | Github Open Source | Open Source | MIT | 2,021 | fusionjs | derekju | JavaScript | Code | 201 | 514 | /** Copyright (c) 2018 Uber Technologies, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import test from 'tape-cup';
import * as React from 'react';
import {getSimulator} from 'fusion-test-utils';
import App, {SkipP... | 32,043 |
https://github.com/hcmarchezi/manipulator-robot-api/blob/master/domain/LinkTrajectory.h | Github Open Source | Open Source | MIT | null | manipulator-robot-api | hcmarchezi | C | Code | 98 | 286 | #ifndef LINKTRAJECTORY_H
#define LINKTRAJECTORY_H
namespace PDC
{
typedef struct
{
double initialTime;
double finalTime;
double initialPosition;
double finalPosition;
double initialVelocity;
double finalVelocity;
} LinkTrajectoryParams;
class LinkTrajectory... | 13,403 |
https://github.com/alejandrojapkin/tabris-js/blob/master/test/tabris/Layout.spec.js | Github Open Source | Open Source | BSD-3-Clause | 2,016 | tabris-js | alejandrojapkin | JavaScript | Code | 564 | 1,768 | describe("Layout:", function() {
describe("checkConsistency", function() {
var check = tabris.Layout.checkConsistency;
beforeEach(function() {
spyOn(console, "warn");
});
it("raises a warning for inconsistent layoutData (width)", function() {
check({top: 0, left: 0, right: 0, width: 10... | 21,594 |
https://github.com/harrymt/harry-change/blob/master/app/src/OpenOrders.js | Github Open Source | Open Source | MIT | 2,019 | harry-change | harrymt | JavaScript | Code | 165 | 505 | import React from 'react';
import './OpenOrders.css';
const fetchUtil = {
HealthCheckResponse: res => {
if (!res.ok) {
console.warn("Response was not okay :(", res);
}
return res;
},
ParseJSON: res => {
return res.json().then(data => {
return data;
}, error => {
console.war... | 1,727 |
https://github.com/rcmdnk/vim_ahk/blob/master/lib/bind/vim_search.ahk | Github Open Source | Open Source | MIT | 2,023 | vim_ahk | rcmdnk | null | Spoken | 32 | 152 | #If Vim.IsVimGroup() and (Vim.State.IsCurrentVimMode("Vim_Normal"))
/::
Send, ^f
Vim.State.SetMode("Insert")
Return
*::
bak := ClipboardAll
Clipboard=
Send, ^{Left}+^{Right}^c
ClipWait, 1
Send, ^f
Send, ^v!f
clipboard := bak
Vim.State.SetMode("Insert")
Return
n::Send, {F3}
+n::Send, +{F3}
#If
| 2,854 |
https://github.com/corsairmarks/band.personalize/blob/master/src/Band.Personalize.App.Universal/Behaviors/UniformRowsOrColumnsBehavior.cs | Github Open Source | Open Source | Apache-2.0 | 2,016 | band.personalize | corsairmarks | C# | Code | 337 | 868 | // Copyright 2016 Nicholas Butcher
//
// 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 ... | 50,845 |
https://github.com/wcbn/readback/blob/master/db/migrate/20150812133544_add_random_to_signoffs.rb | Github Open Source | Open Source | MIT | 2,021 | readback | wcbn | Ruby | Code | 18 | 57 | class AddRandomToSignoffs < ActiveRecord::Migration
def change
add_column :signoffs, :random_interval, :text
add_column :signoffs, :random, :boolean, default: false
end
end
| 39,678 |
https://github.com/tony1427/keycloak/blob/master/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/admin/SMTPConnectionVaultTest.java | Github Open Source | Open Source | Apache-2.0 | null | keycloak | tony1427 | Java | Code | 30 | 107 | package org.keycloak.testsuite.admin;
/**
* @author Martin Kanis <mkanis@redhat.com>
*/
public class SMTPConnectionVaultTest extends SMTPConnectionTest {
public final String SMTP_PASSWORD = setSmtpPassword();
@Override
public String setSmtpPassword() {
return "${vault.smtp_password}";
}
} | 22,767 |
https://github.com/LeeCareFree/design_server/blob/master/middleware/socket.js | Github Open Source | Open Source | MIT | null | design_server | LeeCareFree | JavaScript | Code | 756 | 2,353 | /*
* @Author: your name
* @Date: 2021-04-07 16:50:57
* @LastEditTime: 2021-04-17 15:33:55
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \design_server\middleware\socket.js
*/
const dbHelper = require('../db/dpHelper')
const Message = dbHelper.getModel('message')
const ... | 39,743 |
https://github.com/louie28lee/pd-openweb/blob/master/src/pages/account/container/registerName.jsx | Github Open Source | Open Source | Apache-2.0 | 2,022 | pd-openweb | louie28lee | null | Spoken | 359 | 1,283 | import React from 'react';
import '../components/message.less';
import cx from 'classnames';
import RegisterController from 'src/api/register';
import Config from '../config';
import { getRequest } from 'src/util';
let request = getRequest();
import { inputFocusFn, inputBlurFn } from '../util';
export default class Re... | 26,161 |
https://github.com/osos199995/goomla/blob/master/resources/views/admin/orders/create.blade.php | Github Open Source | Open Source | MIT | 2,021 | goomla | osos199995 | Blade | Code | 162 | 846 | @extends('layouts.main')
@section('content')
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_title">
<h2>اضافه طلب</h2>
<ul class="nav navbar-right panel_toolbox">
<li><a class="collapse-l... | 35,478 |
https://github.com/jleung51/SAPatar/blob/master/src/components/CustomizeModal.js | Github Open Source | Open Source | MIT | 2,021 | SAPatar | jleung51 | JavaScript | Code | 643 | 3,148 | import React, {Component} from 'react';
import Modal from 'react-modal';
import Person from './Person';
import CustomizeMouthContainer from './CustomizeComponents/CustomizeMouthContainer';
import CustomizeEyebrowsContainer from './CustomizeComponents/CustomizeEyebrowsContainer';
import CustomizeEyesContainer from './Cu... | 34,822 |
https://github.com/ferhat-aslan/Angular-E-Commerce-App/blob/master/node_modules/ng2-charts/schematics/ng-add/setup-project.d.ts | Github Open Source | Open Source | MIT | null | Angular-E-Commerce-App | ferhat-aslan | TypeScript | Code | 43 | 77 | import { Rule } from '@angular-devkit/schematics';
import { Schema } from './schema';
/**
* Sets up a project with all required to run ng-bootstrap.
* This is run after 'package.json' was patched and all dependencies installed
*/
export default function ngAddSetupProject(options: Schema): Rule;
| 23,159 |
https://github.com/andela/vale-ah-frontend/blob/master/src/scss/components/_social-button.scss | Github Open Source | Open Source | MIT | 2,019 | vale-ah-frontend | andela | SCSS | Code | 46 | 185 | .social {
margin: 0.3125rem 0;
.social-button {
width: 100%;
&:hover {
background-color: $color-social-hover;
color: $color-white;
}
.link {
color: $color-white;
width: 100%;
}
}
.button--facebook {
background-color: $color-facebook;
color: $color-white;
}... | 49,774 |
https://github.com/c-cube/mc2/blob/master/src/core/Het_map.ml | Github Open Source | Open Source | Apache-2.0 | 2,022 | mc2 | c-cube | OCaml | Code | 781 | 1,653 |
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Associative containers with Heterogenerous Values} *)
(*$R
let k1 : int Key.t = Key.create() in
let k2 : int Key.t = Key.create() in
let k3 : string Key.t = Key.create() in
let k4 : float Key.t = Key.create() in... | 41,028 |
https://github.com/Tell1/nilmtk/blob/master/nilmtk/dataset.py | Github Open Source | Open Source | Apache-2.0 | 2,014 | nilmtk | Tell1 | Python | Code | 140 | 438 | from __future__ import print_function, division
from collections import OrderedDict
from .building import Building
from .datastore import join_key, HDFDataStore
class DataSet(object):
"""
Attributes
----------
buildings : OrderedDict
Each key is an integer, starting from 1.
Each value i... | 21,914 |
https://github.com/phsin/vetrf/blob/master/src/MD/Справочники/ОКЕИ/ФормаСписка.fls/Форма.frm | Github Open Source | Open Source | Apache-2.0 | 2,022 | vetrf | phsin | null | Spoken | 253 | 1,263 | Диалог:
{
Параметры формы:
{
Параметры:
{
Ширина: 272
Высота: 162
Заголовок: "Классификатор единиц измерения"
АвтоПорядокОбхода: Нет
Param24: 6
Param25: 28
Слои
{
Основной: Видимый, Активный
}
}
}
Табличная часть:
{
Param1: 1
Multicolumn:
{
browse:
{
ДопФл... | 21,625 |
https://github.com/wqk317/mi8_kernel_source/blob/master/mi8/drivers/media/platform/msm/camera/cam_sync/Makefile | Github Open Source | Open Source | MIT | null | mi8_kernel_source | wqk317 | Makefile | Code | 7 | 51 | ccflags-y += -Idrivers/media/platform/msm/camera/cam_utils
obj-$(CONFIG_SPECTRA_CAMERA) += cam_sync.o cam_sync_util.o
| 38,300 |
https://github.com/ichbinder/knxmaster/blob/master/node_modules/knx/test/connection/test-control.js | Github Open Source | Open Source | Apache-2.0 | null | knxmaster | ichbinder | JavaScript | Code | 136 | 410 | /**
* knx.js - a KNX protocol stack in pure Javascript
* (C) 2016-2017 Elias Karakoulakis
*/
var knx = require('../..');
// this is a WIRED test and requires a real KNX IP router on the LAN
// just define a datapoint that should respond to a a GroupValue_Read request
var connection = new knx.Connection({
debug: tru... | 38,497 |
https://github.com/Falumpaset/handson-ml2/blob/master/backend/application-ps/src/main/java/de/immomio/service/propertySearcher/onboarding/PropertySearcherUserProfileMergeService.java | Github Open Source | Open Source | Apache-2.0 | null | handson-ml2 | Falumpaset | Java | Code | 418 | 2,515 | package de.immomio.service.propertySearcher.onboarding;
import de.immomio.constants.exceptions.ApiValidationException;
import de.immomio.data.base.type.user.profile.PropertySearcherUserProfileType;
import de.immomio.data.landlord.entity.customer.LandlordCustomer;
import de.immomio.data.landlord.entity.customquestion.C... | 33,462 |
https://github.com/TurkuNLP/BioCreativeVI_CHEMPROT_RE/blob/master/ANN_Systems/TSDPTSVMCore/FeatureGeneration.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | BioCreativeVI_CHEMPROT_RE | TurkuNLP | Python | Code | 4,495 | 18,576 | """
def BuildBagsOfFeatures (self, Sentences):
self.lp (["-"*80,"-"*80,"-"*80,"-"*20+" BUILDING BAGS OF WORDS "+"-"*30]);
for sentence in Sentences:
# IMPORTANT: There can be some ISOLATED-components (nodes not connected to others) in the graph.
DependencyParseGraph = ... | 19,568 |
https://github.com/schoolofacceleratedlearning/huboard-web/blob/master/vendor/engines/saas/config/routes.rb | Github Open Source | Open Source | Unlicense, MIT | 2,021 | huboard-web | schoolofacceleratedlearning | Ruby | Code | 101 | 480 | Rails.application.routes.draw do
match 'unauthenticated_saas' => 'saas/errors#unauthenticated_saas', via: :all
match 'unauthenticated_canceled' => 'saas/errors#unauthenticated_canceled', via: :all
match 'unauthenticated_expired' => 'saas/errors#unauthenticated_expired', via: :all
get '/rails/mailers' => "rail... | 29,001 |
https://github.com/ryochack/emkit/blob/master/Makefile | Github Open Source | Open Source | MIT | 2,015 | emkit | ryochack | Makefile | Code | 130 | 353 | ROOT_DIR := .
include $(ROOT_DIR)/mk/defs.mk
SOURCE_DIR := $(ROOT_DIR)/src
TEST_DIR = $(ROOT_DIR)/test
UNITTESTS = $(addsuffix _test,$(addprefix $(BUILD_TEST_DIR)/,$(TARGETS)))
TARGETS =
TARGETS += archive
# TARGETS += bit
TARGETS += container
TARGETS += framework
TARGETS += memory
# TARGETS += protocol
# TARGETS ... | 43,058 |
https://github.com/ducis/computer-network-labs/blob/master/a4/read_nam.hs | Github Open Source | Open Source | MIT | null | computer-network-labs | ducis | Haskell | Code | 11 | 25 | module Read_nam where
rdnam fname = readFile fname >>= return.map words.lines
| 6,196 |
https://github.com/rrostock1/terra-graphs/blob/master/packages/terra-graphs-docs/src/terra-dev-site/graph/example/Graphs-Carbon/CombinationGraph/BasicCombinationGraphs/LineWithSingleBubbleData.jsx | Github Open Source | Open Source | Apache-2.0 | 2,022 | terra-graphs | rrostock1 | null | Spoken | 85 | 467 | import React from 'react';
import Carbon from '@cerner/carbon-graphs/lib/js/carbon';
import utils from '@cerner/carbon-graphs/lib/js/helpers/utils';
import '@cerner/terra-graphs-docs/lib/terra-graphs-src/components/Graph.module.scss';
import '@cerner/terra-graphs-docs/lib/terra-graphs-src/components/Line/LineGraph.modu... | 23,434 |
https://github.com/Kidev/DemoAdaPhysics2D/blob/master/src/mainmenu.ads | Github Open Source | Open Source | BSD-3-Clause | 2,022 | DemoAdaPhysics2D | Kidev | Ada | Code | 17 | 44 | with Menus; use Menus;
package MainMenu is
procedure ShowMainMenu;
procedure ShowHelpScreen(This : in out Menu);
end MainMenu;
| 54,700 |
https://github.com/Hassanzadeh-sd/tweetme/blob/master/hashtags/admin.py | Github Open Source | Open Source | MIT | 2,021 | tweetme | Hassanzadeh-sd | Python | Code | 9 | 26 | from django.contrib import admin
from .models import HashTag
admin.site.register((HashTag)) | 56,926 |
https://github.com/qpmnguyen/sc2meta/blob/master/power/datasets_and_models.R | Github Open Source | Open Source | MIT | 2,020 | sc2meta | qpmnguyen | R | Code | 232 | 1,294 | library(phyloseq)
library(plyr)
library(zinbwave)
library(HMP16SData)
library(curatedMetagenomicData)
### STOOL
if(!file.exists("./data/Stool_16S_WMS_models.RData")){
load("./data/Stool_16S_WMS.RData")
Stool_16S_WMS_models <- lapply(Stool_16S_WMS,function(ps){
zinbFit(ps@otu_table@.Data,
X = m... | 33,492 |
https://github.com/SimoGira/Embedded-Systems-Design/blob/master/Watertank-System/2.1_Synthesis/Solution/VHDL_behavioral_implementation_not_synthetizable/stimuli_not_synth.do | Github Open Source | Open Source | BSD-3-Clause | null | Embedded-Systems-Design | SimoGira | null | Spoken | 92 | 241 | add wave *
add wave /xtea/mode
add wave /xtea/i
add wave /xtea/v0
add wave /xtea/v1
force clk 1 10 ns, 0 20 ns -repeat 20
force rst 1 0
#force word0_in <> 0
force word0_in 0x12345678 0
force word1_in 0x9abcdeff 0
# enchipered words ##############################
#force word0_in <> 0
#force word1_in <> 0
############... | 46,297 |
https://github.com/shiroe1036/laravel_gestion_pharmacie/blob/master/app/MedocEtagere.php | Github Open Source | Open Source | MIT | 2,021 | laravel_gestion_pharmacie | shiroe1036 | PHP | Code | 24 | 98 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class MedocEtagere extends Model
{
use SoftDeletes;
protected $fillable = [
'nbrEtagere', 'unite', 'medoc_stock_id', 'user_id'
];
}
| 43,694 |
https://github.com/nuccch/spring-falsework/blob/master/bin/shutdown.sh | Github Open Source | Open Source | Apache-2.0 | null | spring-falsework | nuccch | Shell | Code | 34 | 161 | #!/bin/bash
echo "Shutdown ..."
current_path=`pwd`
case "`uname`" in
Linux)
bin_absolute_path=$(readlink -f $(dirname $0))
;;
*)
bin_absolute_path=`cd $(dirname $0);pwd`
;;
esac
export LANG=en_US.UTF-8
base_dir=${bin_absolute_path}/..
pid_file=$base_dir/bin/pid
pid=`cat $pid_file`
kill -15 $pid
rm -rf $... | 13,081 |
https://github.com/nasastry/op-test-framework/blob/master/common/OpTestUtil.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | op-test-framework | nasastry | Python | Code | 9,900 | 32,012 | #!/usr/bin/env python3
# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
# $Source: op-test-framework/common/OpTestUtil.py $
#
# OpenPOWER Automated Test Project
#
# Contributors Listed Below - COPYRIGHT 2015
# [+] International Business Machines Corp.
#
#
# Licensed under the Apache License, Versio... | 16,084 |
https://github.com/xigua366/yangxi-projects/blob/master/yangxi-samples/yangxi-boot-sample/yangxi-boot-sample-admin/src/main/java/cn/xigua366/sample/security/token/store/TokenStore.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | yangxi-projects | xigua366 | Java | Code | 85 | 310 | package cn.xigua366.sample.security.token.store;
import cn.xigua366.sample.security.service.MyUserDetails;
import cn.xigua366.sample.security.token.LoginUser;
/**
* 令牌存储方式
*
* @author yangxi
* @version 1.0
* @date 2020-11-23 15:18
*/
public interface TokenStore {
/**
* 基于用户信息生成令牌
*
* @param ... | 41,788 |
https://github.com/sensoro-design/sensoro-design/blob/master/src/schedule/constant.ts | Github Open Source | Open Source | MIT | 2,022 | sensoro-design | sensoro-design | TypeScript | Code | 114 | 283 | export enum WEEK {
monday = 1,
tuesday = 2,
wednesday = 3,
thursday = 4,
friday = 5,
saturday = 6,
sunday = 7
}
type WeekConfig = {
[key in WEEK]: { text: string };
};
export const weekConfig: WeekConfig = {
[WEEK.monday]: { text: '周一' },
[WEEK.tuesday]: { text: '周二' },
[WEEK.wednesday]: { text:... | 19,916 |
https://github.com/paponpatpimkot/order_supply/blob/master/pages/admin/purpose.php | Github Open Source | Open Source | MIT | null | order_supply | paponpatpimkot | PHP | Code | 162 | 757 | <html lang="en">
<?php
include 'navbar.php';
if(isset($_POST['submit'])){
$PurID = $_POST['PurID'];
$PurName = $_POST['PurName'];
$sql = "INSERT INTO purpose VALUES('$PurID','$PurName')";
$query = $connect->query($sql);
if($query){
echo '<meta http-equ... | 24,551 |
https://github.com/Maqui-LP/ppm-operations/blob/master/Makefile | Github Open Source | Open Source | MIT | 2,021 | ppm-operations | Maqui-LP | Makefile | Code | 64 | 310 | CC=gcc
FLAGS=$(CFLAGS) -Wall -I$(INCLUDE_DIR)
INCLUDE_DIR=./include
SRC_DIR=./src
BIN_DIR=./bin
BUILD_DIR=./build
all: build bin ppm clean
ppm: ppm.o util.o ppm-operations.o
$(CC) $(FLAGS) $(SRC_DIR)/main.c $(BUILD_DIR)/*.o -o $(BIN_DIR)/$@ -lm
ppm.o:
$(CC) $(FLAGS) -c $(SRC_DIR)/ppm.c -o $(BUILD_DIR)/$@
ppm-oper... | 6,067 |
https://github.com/popeye-api/ledger/blob/master/app/Users.php | Github Open Source | Open Source | MIT | null | ledger | popeye-api | PHP | Code | 101 | 358 | <?php
/*
* Users
* Users จัดการข้อมูล
* @author Thanach Jintakanont
* @Create Date 08-08-2563
*/
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Auth;
/*
* Users
* Users จัดการข้อมูล
* @author Thanach Jintakanont
* @Create Date 08-08-2563
* @Up... | 22,183 |
https://github.com/jpriesten/smallboulo_dev/blob/master/resources/views/layouts/worker.blade.php | Github Open Source | Open Source | MIT | null | smallboulo_dev | jpriesten | PHP | Code | 2 | 24 |
@include('layouts.workerNav')
@extends('layouts.master')
| 30,748 |
https://github.com/domdomegg/tabula/blob/master/common/src/main/scala/uk/ac/warwick/tabula/commands/profiles/SearchProfilesCommand.scala | Github Open Source | Open Source | 0BSD | null | tabula | domdomegg | Scala | Code | 132 | 588 | package uk.ac.warwick.tabula.commands.profiles
import uk.ac.warwick.tabula.CurrentUser
import uk.ac.warwick.tabula.commands.{CommandInternal, ComposableCommand, Unaudited}
import uk.ac.warwick.tabula.data.model.MemberUserType.{Staff, Student}
import uk.ac.warwick.tabula.data.model.{Department, Member}
import uk.ac.war... | 46,702 |
https://github.com/ElonGame/UnityNativeTextureLoader/blob/master/Plugins/NativeTextureLoader/src/main.cpp | Github Open Source | Open Source | CC0-1.0 | 2,018 | UnityNativeTextureLoader | ElonGame | C++ | Code | 126 | 456 | #include <queue>
#include "png_loader.h"
using namespace NativeImageLoader;
using UnityRenderEvent = void(*)(int);
std::queue<PngLoader*> g_updateQueue;
extern "C"
{
void * CreateLoader()
{
return new PngLoader();
}
void DestroyLoader(PngLoader *pPngLoader)
{
if (pPngLoader == nullptr) return;
delete ... | 16,296 |
https://github.com/geekcheng/supler/blob/master/supler-js/src/validation/ElementValidator.ts | Github Open Source | Open Source | Apache-2.0 | 2,014 | supler | geekcheng | TypeScript | Code | 52 | 147 | /**
* Can validate a single form element using the given validator functions.
*/
class ElementValidator {
constructor(private validatorFns: ValidatorFn[]) {}
public validate(element: HTMLElement): string[] {
var value = Util.getSingleProperty(ReadFormValues.getValueFrom(element));
var errors ... | 49,893 |
https://github.com/madcode-tech/easymake-preset-default-webapp-react/blob/master/empty/task/someTask/task.js | Github Open Source | Open Source | MIT | 2,017 | easymake-preset-default-webapp-react | madcode-tech | JavaScript | Code | 11 | 20 | module.exports = function ({ environment, api }) {
//some code
};
| 44,562 |
https://github.com/aligege123/kibana-7.6/blob/master/x-pack/legacy/plugins/index_lifecycle_management/public/register_routes.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | kibana-7.6 | aligege123 | JavaScript | Code | 192 | 538 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import React from 'react';
import { render, unmountComponentAtNode } from 're... | 48,393 |
https://github.com/CVBDL/RALibraryClient/blob/master/app/app.js | Github Open Source | Open Source | MIT | null | RALibraryClient | CVBDL | JavaScript | Code | 87 | 371 | // Declare app level module which depends on views, and components
(function () {
var app = angular.module('libraryApp', [
'ngMaterial',
'ngMessages',
'ngMdIcons',
'material.svgAssetsCache',
'ui.router']);
app.config(function ($stateProvider, $urlRouterProvider) {
var adminHomeState = {
... | 1,928 |
https://github.com/bilawal786/hdms/blob/master/resources/views/layouts/dashboard/sidebar.blade.php | Github Open Source | Open Source | MIT | null | hdms | bilawal786 | PHP | Code | 561 | 2,437 | <!-- Main Sidebar Container -->
<aside class="main-sidebar sidebar-dark-primary elevation-4">
<!-- Brand Logo -->
<a href="{{route('home')}}" class="brand-link">
<span class="brand-text font-weight-light pl-4"><strong>HDMS CLIM</strong></span>
</a>
<!-- Sidebar -->
<div class="sidebar">
... | 20,940 |
https://github.com/daring2/image-sandbox/blob/master/src/main/kotlin/com/gitlab/daring/image/command/structure/GrubCutCenterCommand.kt | Github Open Source | Open Source | Apache-2.0 | null | image-sandbox | daring2 | Kotlin | Code | 88 | 384 | package com.gitlab.daring.image.command.structure
import com.gitlab.daring.image.command.CommandEnv
import com.gitlab.daring.image.command.KBaseCommand
import com.gitlab.daring.image.opencv.size
import org.bytedeco.javacpp.opencv_core.*
import org.bytedeco.javacpp.opencv_imgproc.*
internal class GrubCutCenterCommand(... | 23,793 |
https://github.com/solid-o/query-language/blob/master/src/Walker/Validation/InvalidWalker.php | Github Open Source | Open Source | MIT | 2,021 | query-language | solid-o | PHP | Code | 147 | 487 | <?php
declare(strict_types=1);
namespace Solido\QueryLanguage\Walker\Validation;
use Solido\QueryLanguage\Expression\ExpressionInterface;
use Solido\QueryLanguage\Expression\Literal\LiteralExpression;
use Solido\QueryLanguage\Expression\ValueExpression;
/**
* This walker always adds a violation, whatever expresion... | 1,778 |
https://github.com/cofu-app/couchbase-lite-core/blob/master/LiteCore/Support/Actor.hh | Github Open Source | Open Source | Apache-2.0 | null | couchbase-lite-core | cofu-app | C++ | Code | 760 | 2,027 | //
// Actor.hh
//
// Copyright (c) 2017 Couchbase, Inc All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless r... | 23,070 |
https://github.com/9b9387/leetcode/blob/master/112_PathSum/hasPathSum.ts | Github Open Source | Open Source | MIT | null | leetcode | 9b9387 | TypeScript | Code | 86 | 220 | import { TreeNode } from "../common/TreeNode";
function hasPathSum(root: TreeNode | null, sum: number): boolean {
if(root == null)
{
return false;
}
return searchPath(root, 0, sum);
};
function searchPath(node: TreeNode, totalSum: number, target: number): boolean {
totalSum += node.val
... | 21,249 |
https://github.com/kokizzu/colima/blob/master/environment/container/kubernetes/containerd.go | Github Open Source | Open Source | MIT | null | colima | kokizzu | Go | Code | 74 | 295 | package kubernetes
import (
_ "embed"
"fmt"
"path/filepath"
"github.com/abiosoft/colima/cli"
"github.com/abiosoft/colima/embedded"
"github.com/abiosoft/colima/environment"
)
func installContainerdDeps(guest environment.GuestActions, a *cli.ActiveCommandChain) {
// fix cni config
a.Add(func() error {
flanne... | 24,593 |
https://github.com/emkay/linux-notes/blob/master/c-playground/hello-world/Makefile | Github Open Source | Open Source | Apache-2.0 | null | linux-notes | emkay | Makefile | Code | 8 | 30 | CFLAGS=-Wall -g
all: hello-world
clean:
rm -f hello-world
| 48,967 |
https://github.com/gerardog/gsudo/blob/master/build/03-sign.ps1 | Github Open Source | Open Source | MIT | 2,023 | gsudo | gerardog | PowerShell | Code | 170 | 642 | pushd $PSScriptRoot\..
# Find SignTool.exe
if ($env:SignToolExe) {
# From env var.
} elseif (get-command signtool.exe -ErrorAction Ignore) {
# From path.
$env:SignToolExe = (gcm signtool.exe).Path
} elseif ($i = get-item "C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\signtool.exe" -ErrorAction I... | 7,988 |
https://github.com/hybridgroup/taskmapper-bitbucket/blob/master/spec/projects_spec.rb | Github Open Source | Open Source | MIT | null | taskmapper-bitbucket | hybridgroup | Ruby | Code | 155 | 566 | require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
describe "TaskMapper::Provider::Bitbucket::Project" do
before(:all) do
@repo_name = "test-repo"
@klass = TaskMapper::Provider::Bitbucket::Project
end
before(:each) do
#@repository = Factory.build :repository
@repositories = [Tas... | 33,493 |
https://github.com/UCLA-ECE209AS-2018W/Liang/blob/master/Rachio_apk/sources/com/crashlytics/android/answers/RetryManager.java | Github Open Source | Open Source | BSD-2-Clause | null | Liang | UCLA-ECE209AS-2018W | Java | Code | 62 | 231 | package com.crashlytics.android.answers;
import io.fabric.sdk.android.services.concurrency.internal.RetryState;
final class RetryManager {
long lastRetry;
private RetryState retryState;
public RetryManager(RetryState retryState) {
this.retryState = retryState;
}
public final boolean canR... | 35,118 |
https://github.com/rezaydpn/MigrationSite/blob/master/resources/views/partials/_header.blade.php | Github Open Source | Open Source | MIT | null | MigrationSite | rezaydpn | PHP | Code | 100 | 477 | {{--header--}}
<div class="container">
<div class=" d-flex justify-content-between card-icon-bg-gray-300 p-2 no-gutters">
<a href="/">
<i class="fas fa-home" title="خانه"></i>
</a>
<div><i class="fas fa-phone"></i>
<span>021-2367876</span>
</div>
</div>
</... | 33,663 |
https://github.com/prfasuncion/pcbemis_is295b/blob/master/framework/database/migrations/2021_05_15_231542_create_eligibilities_table.php | Github Open Source | Open Source | MIT | 2,021 | pcbemis_is295b | prfasuncion | PHP | Code | 59 | 239 | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateEligibilitiesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('eligibili... | 3,143 |
https://github.com/cssd2019/mutationplanner/blob/master/mutationplanner/convert_fasta_case.py | Github Open Source | Open Source | MIT | 2,019 | mutationplanner | cssd2019 | Python | Code | 62 | 201 | def convert_fasta_case(seq_dict):
"""Loops over fasta dictionary and coverts all the fasta records
to lower case.
:param seq_dict (dict): a dictionary of fasta sequence IDs and sequences
:return: a dictionary of fasta record
"""
for k, v in seq_dict.items():
seq_dict[k] = v.lower()
... | 25,977 |
https://github.com/app-on-mic/POP-2.0.1-opt/blob/master/bench01opt_cpu_n1t1p1/compile/SrcDepends/boundary.do | Github Open Source | Open Source | BSD-2-Clause | null | POP-2.0.1-opt | app-on-mic | null | Spoken | 2 | 19 | boundary.f90: ../../mpi/boundary.F90
| 1,311 |
https://github.com/nowoh/kopo33_source_backup/blob/master/kopo33/src/hw0322_Mon_ch5/P01_1.java | Github Open Source | Open Source | MIT | null | kopo33_source_backup | nowoh | Java | Code | 39 | 125 | package hw0322_Mon_ch5;
import java.util.Scanner;
public class P01_1 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
Price price = new Price(1000, 2000, 3000, 5000);
while (true) {
price.printMenu();
int a = scan.nextInt();
price.getPrice(a);
}
}
}
| 43,700 |
https://github.com/llimllib/loglevel/blob/master/Makefile | Github Open Source | Open Source | MIT | 2,022 | loglevel | llimllib | Makefile | Code | 135 | 248 | BIN=$(GOPATH)/bin
# The testfatal/* tests need to be in package main so that I can "go run" them.
# They also need to import loglevel. If the source tree is contained within
# a GOPATH, I must use "import loglevel" instead of "import ../../loglevel".
# Most of the time I'm working in the repo which is not in a GOPATH,... | 41,650 |
https://github.com/gl4ssesbo1/alexandria/blob/master/spec/mailers/strike_mailer_spec.rb | Github Open Source | Open Source | MIT | 2,014 | alexandria | gl4ssesbo1 | Ruby | Code | 106 | 381 | require 'spec_helper'
describe StrikeMailer do
let(:patron) { create(:patron) }
let(:distributor) { create(:distributor) }
let(:reason) { create(:reason) }
let(:strike) { Strike.create(reason_id: reason.id, patron_id: patron.id, distributor_id: distributor.id, other_info: 'Test Message') }
shared_examples_f... | 7,656 |
https://github.com/ko7m/NXP_Kinetis_Bootloader/blob/master/targets/MK65F18/src/bootloader_config.h | Github Open Source | Open Source | BSD-3-Clause | 2,021 | NXP_Kinetis_Bootloader | ko7m | C | Code | 689 | 1,636 | /*
* Copyright (c) 2014-2015, Freescale Semiconductor, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright notice, this list
*... | 34,498 |
https://github.com/isogon/styled-mdl/blob/master/src/components/buttons/demos/Flat.js | Github Open Source | Open Source | MIT | 2,018 | styled-mdl | isogon | JavaScript | Code | 15 | 30 | import React from 'react'
import { Button } from '../../../'
export default () => <Button>Default</Button>
| 23,045 |
https://github.com/ky-s/ky_s_extensions/blob/master/lib/ky_s_extensions/array/cumlative.rb | Github Open Source | Open Source | MIT | 2,019 | ky_s_extensions | ky-s | Ruby | Code | 27 | 70 | # Cumlative method.
class Array
# cumlative array sum
# [1, 2, 3].cumsum # => [1, 3, 6]
def cumsum
size.times.map { |i| self[0..i].sum }
end
end
| 41,298 |
https://github.com/andrewnottaviano/terra-dev-site/blob/master/src/navigation/_ApplicationSwitcher.jsx | Github Open Source | Open Source | LicenseRef-scancode-free-unknown, Apache-2.0 | 2,020 | terra-dev-site | andrewnottaviano | JavaScript | Code | 143 | 441 | import React from 'react';
import PropTypes from 'prop-types';
import ContentContainer from 'terra-content-container';
import ActionHeader from 'terra-action-header';
import List, { Item } from 'terra-list';
import Hyperlink from 'terra-hyperlink';
import { disclosureManagerShape, withDisclosureManager } from 'terra-ap... | 21,796 |
https://github.com/cholojuanito/free_flutter_widgets/blob/master/packages/free_flutter_sliders/lib/src/slider_shapes.dart | Github Open Source | Open Source | MIT | 2,021 | free_flutter_widgets | cholojuanito | Dart | Code | 4,123 | 13,696 | import 'dart:math' as math;
import 'dart:ui';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:free_flutter_core/theme.dart';
import 'common.dart';
import 'constants.dart';
import 'render_slider_base.dart';
/// Base class for [SfSlider], [SfRangeSlider] and [SfRangeSele... | 56,596 |
https://github.com/brunopmartins/web-vtt/blob/master/components/colmeia.js | Github Open Source | Open Source | Apache-2.0 | null | web-vtt | brunopmartins | JavaScript | Code | 293 | 1,028 | import React from "react";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { css } from "@emotion/react";
import Link from "next/link";
import { Tooltip } from "antd";
const colmeiaStyle = (scale, n_cols, n_rows) => css`
--escala: calc(${scale}vw / ${n_cols * 2});
--altura: calc(0.5 * var(... | 41,849 |
https://github.com/onmyway133/Runtime-Headers/blob/master/macOS/10.13/AppKit.framework/NSTouchBarColorPickerSlidersRGB.h | Github Open Source | Open Source | MIT | 2,022 | Runtime-Headers | onmyway133 | C | Code | 137 | 611 | /* Generated by RuntimeBrowser
Image: /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
*/
@interface NSTouchBarColorPickerSlidersRGB : NSTouchBarColorPickerSliders {
long long _entryMode;
}
@property (atomic, readonly, copy) NSTouchBarColorPickerSliderArtworkProvider *_alphaArtworkProvider;
@pro... | 53,038 |
https://github.com/deni15/Admin-Telekomunikasi-Laravel/blob/master/resources/views/dashboard/proyect/listProyect.blade.php | Github Open Source | Open Source | MIT | null | Admin-Telekomunikasi-Laravel | deni15 | PHP | Code | 132 | 694 | @extends('layout.template')
@section('title','Users')
@section('container')
<div class="main">
<div class="main-content">
<div class="container-fluid">
<!-- CONDENSED TABLE -->
<div class="panel">
<div class="panel-heading">
<div class="row">
... | 41,482 |
https://github.com/unnhao/2019-IT30-Game/blob/master/src/loaders/Loader.ts | Github Open Source | Open Source | MIT | 2,021 | 2019-IT30-Game | unnhao | TypeScript | Code | 119 | 334 | import * as PIXI from "pixi.js"
/**
* Loader 把設定檔的srcs傳進來自動全部load
*/
class Loader {
private onChange: Function = () => { }
public load(srcs: any) {
let on = (onChange: Function): Promise<any> => {
this.onChange = onChange
return then()
}
let then = (): Promise<any> => {
return new P... | 41,416 |
https://github.com/JohnsGain/fballfans/blob/master/fballfans-server/src/main/java/com/john/server/config/WebSocketServer.java | Github Open Source | Open Source | ICU, MIT | null | fballfans | JohnsGain | Java | Code | 210 | 794 | package com.john.server.config;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import javax.websocket.*;
import javax.websocket.server.PathParam;
import javax.websocket.server.ServerEndpoint;
import java.io.IOException;
import java.util.Map;
import java.util.concurrent.ConcurrentHa... | 35,865 |
https://github.com/raphink/gopass/blob/master/action/edit_others.go | Github Open Source | Open Source | MIT | null | gopass | raphink | Go | Code | 57 | 103 | // +build !linux,!windows
package action
import "os"
func getEditor() string {
if ed := os.Getenv("EDITOR"); ed != "" {
return ed
}
// given, this is a very opinionated default, but this should be available
// on virtually any UNIX system and the user can still set EDITOR to get
// his favorite one
return "v... | 39,121 |
https://github.com/Video-Computing-Group/vcg-website/blob/master/pages/people.vue | Github Open Source | Open Source | MIT | 2,017 | vcg-website | Video-Computing-Group | Vue | Code | 1,180 | 4,283 | <template>
<div id="data" class="inherit-height">
<div id="home-body">
<div class="container">
<div class="row">
<div class="col-md-12 text-center">
<h2>Faculty Members</h2>
</div>
<div class="col-md-6">
<div class="row">
... | 52,046 |
https://github.com/herry531/hongyu/blob/master/app/Repositories/UserChatLogList.php | Github Open Source | Open Source | MIT | 2,017 | hongyu | herry531 | PHP | Code | 143 | 600 | <?php
namespace App\Repositories;
use App\Models\UserChatLog as UserChatLogModel;
use App\Models\UserChatMessage as UserChatMessageModel;
class UserChatLogList extends BaseList
{
public static $model = UserChatLogModel::class;
public function countUnreadMessage()
{
foreach ($this->getItems() as ... | 33,564 |
https://github.com/olafurpg/scala-repos/blob/master/repos/intellij-scala/src/org/jetbrains/sbt/project/data/SbtProjectData.scala | Github Open Source | Open Source | Apache-2.0 | 2,016 | scala-repos | olafurpg | Scala | Code | 51 | 208 | package org.jetbrains.sbt
package project.data
import com.intellij.openapi.externalSystem.model.project.AbstractExternalEntityData
import com.intellij.openapi.externalSystem.model.{Key, ProjectKeys, ProjectSystemId}
/**
* @author Pavel Fatin
*/
class SbtProjectData(val owner: ProjectSystemId,
... | 47,456 |
https://github.com/tyraindreams/EpicBasic/blob/master/src/ebcompiler/GarbageCheck.eb | Github Open Source | Open Source | CC0-1.0 | 2,020 | EpicBasic | tyraindreams | null | Spoken | 68 | 263 | ; -----------------------------------------------------------------
;
; EpicBasic GarbageCheck
; ~ Epic Crossings
; ... | 43,411 |
https://github.com/bionicle12/HTML5-Speech-to-Text/blob/master/lib/file-loader.js | Github Open Source | Open Source | MIT | 2,019 | HTML5-Speech-to-Text | bionicle12 | JavaScript | Code | 371 | 1,130 |
let openLoadFromUrlModel = function () {
$('.ui.modal.load-from-url').modal('show')
}
$('.open-load-url-model-btn').click(openLoadFromUrlModel)
let getFullFilenameFromURL = function (url) {
if (typeof(url) !== 'string') {
return
}
// Remove everything to the last slash in URL
url = url.substr(1 + url.l... | 12,994 |
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/a/apollo-reporting-protobuf/src/main/scala/typingsSlinky/apolloReportingProtobuf/protobufMod/FieldStat.scala | Github Open Source | Open Source | MIT | 2,021 | SlinkyTyped | ScalablyTyped | Scala | Code | 559 | 1,773 | package typingsSlinky.apolloReportingProtobuf.protobufMod
import org.scalablytyped.runtime.StringDictionary
import typingsSlinky.apolloProtobufjs.mod.IConversionOptions
import typingsSlinky.apolloProtobufjs.mod.Reader
import typingsSlinky.apolloProtobufjs.mod.Writer
import org.scalablytyped.runtime.StObject
import sca... | 16,325 |
https://github.com/Talentec/taller-react/blob/master/src/components/Header.jsx | Github Open Source | Open Source | MIT | null | taller-react | Talentec | null | Spoken | 73 | 264 | import React, {Component} from 'react';
export default class Header extends Component {
constructor(props, context) {
super(props, context);
this.state = {
menu: ['Inicio', 'Dashboard', 'Users'],
user : {}
}
}
componentDidMount(){
this.setState({
... | 16,436 |
https://github.com/tokensmith/tokensmith/blob/master/core/src/main/java/net/tokensmith/authorization/persistence/repository/ResourceOwnerTokenRepo.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | tokensmith | tokensmith | Java | Code | 79 | 333 | package net.tokensmith.authorization.persistence.repository;
import net.tokensmith.authorization.persistence.mapper.ResourceOwnerTokenMapper;
import net.tokensmith.repository.entity.ResourceOwnerToken;
import net.tokensmith.repository.exceptions.RecordNotFoundException;
import net.tokensmith.repository.repo.ResourceOw... | 17,930 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.