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/cameronfrandsen/externpro/blob/master/projects/wxxplotctrl.cmake | Github Open Source | Open Source | MIT | null | externpro | cameronfrandsen | CMake | Code | 69 | 392 | # wxxplotctrl
# repo http://wxcode.svn.sourceforge.net/viewvc/wxcode/trunk/wxCode/components/plotctrl/
# dwnl http://sourceforge.net/projects/wxcode/files/Components/wxPlotCtrl/
set(VER 2006.04.28)
string(REPLACE "." "_" VER_ ${VER})
set(REPO https://github.com/smanders/wxplotctrl)
set(PRO_WXXPLOTCTRL
NAME wxxplotctr... | 23,506 |
https://github.com/Reechajoshi/commercial-static-php/blob/master/js/talk.js | Github Open Source | Open Source | MIT | 2,018 | commercial-static-php | Reechajoshi | JavaScript | Code | 291 | 1,342 | // JS chat with server
///////////////////////////////////////////////////////////////////////////////////////////////////
CTalk = {
_M_IO_UNIX_BYTE_NL: String.fromCharCode(10),
_WAIT_ASYNC_REQ: 15000, //TODO: change this to 15 since 5 is unrealistic for net in india
_M_IFR_DIV_ID: '_ifr_div_hid',
inAsyncReq: ... | 10,265 |
https://github.com/yen-igaw/reactnative_dfinery_ecommerce_demo/blob/master/src/reducers/auth/authActions.js | Github Open Source | Open Source | Apache-2.0 | null | reactnative_dfinery_ecommerce_demo | yen-igaw | JavaScript | Code | 643 | 1,980 | import AsyncStorage from '@react-native-async-storage/async-storage';
import { API_URL } from '../../utils/Config';
import { timeoutPromise } from '../../utils/Tools';
export const AUTH_LOADING = 'AUTH_LOADING';
export const SIGN_UP = 'SIGN_UP';
export const LOGIN = 'LOGIN';
export const AUTH_FAILURE = 'AUTH_FAILURE';... | 26,694 |
https://github.com/vitalii-kopiievskiy/wt/blob/master/src/blocks/includes/main/main.scss | Github Open Source | Open Source | MIT | null | wt | vitalii-kopiievskiy | SCSS | Code | 25 | 102 | @import "menu/menu.scss";
@import "tabs/tabs.scss";
.main {
display: grid;
grid-template-columns: 24% 3fr;
grid-column-gap: 20px;
@media screen and (max-width: 1024px) {
grid-template-columns: 1fr;
grid-row-gap: 20px;
}
}
| 42,815 |
https://github.com/pombreda/syzygy/blob/master/syzygy/zap_timestamp/zap_timestamp_app.h | Github Open Source | Open Source | Apache-2.0 | 2,015 | syzygy | pombreda | C++ | Code | 170 | 410 | // Copyright 2014 Google 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 required by applicable... | 26,710 |
https://github.com/imjoseangel/100-days-of-code/blob/master/python/decorators/setter.py | Github Open Source | Open Source | MIT | 2,022 | 100-days-of-code | imjoseangel | Python | Code | 99 | 318 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import (division, absolute_import, print_function,
unicode_literals, annotations)
class Student:
def __init__(self, name, marks):
self.name = name
self.marks = marks
# self.gotmarks = self.name + ' obtai... | 17,706 |
https://github.com/jamalrefaideen/wrist-watch-picker/blob/master/watchpicker/projects/ngx-analog-wrist-watch/src/lib/ngx-analog-wrist-watch.service.ts | Github Open Source | Open Source | MIT | null | wrist-watch-picker | jamalrefaideen | TypeScript | Code | 1,375 | 5,417 | import { Injectable } from '@angular/core';
const watchStraps = [
{
styleClassName: ['strap-primary-top-left', 'border-color']
},
{
styleClassName: ['strap-primary-top-middle', 'border-color']
},
{
styleClassName: ['strap-primary-top-right', 'border-color']
},
{
styleClassName: ['strap-s... | 16,170 |
https://github.com/kumar86sandeep/Date-Meet/blob/master/src/app/core/services/auth.service.ts | Github Open Source | Open Source | MIT | null | Date-Meet | kumar86sandeep | TypeScript | Code | 145 | 472 | import { Injectable } from '@angular/core';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Observable, throwError } from 'rxjs';
import { retry, catchError } from 'rxjs/operators';
import { BehaviorSubject } from 'rxjs/BehaviorSubject';
import { Subject } from 'rxjs/Subject';
import { Router, ... | 52,713 |
https://github.com/viewdy/phantomjs/blob/master/src/qt/qtwebkit/Source/WebCore/accessibility/atk/WebKitAccessibleInterfaceHypertext.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,015 | phantomjs | viewdy | C++ | Code | 365 | 1,080 | /*
* Copyright (C) 2010, 2011, 2012 Igalia S.L.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* Th... | 1,386 |
https://github.com/amanda-tarafa/gax-dotnet/blob/master/Google.Api.Gax/PathTemplate.cs | Github Open Source | Open Source | BSD-3-Clause | 2,022 | gax-dotnet | amanda-tarafa | C# | Code | 1,736 | 4,237 | /*
* Copyright 2016 Google Inc. All Rights Reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file or at
* https://developers.google.com/open-source/licenses/bsd
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namesp... | 24,989 |
https://github.com/williansmartins/impacta-2018-03/blob/master/projeto-cabelereiro-back/src/main/java/br/com/impacta/dao/IUsuarioDao.java | Github Open Source | Open Source | MIT | 2,018 | impacta-2018-03 | williansmartins | Java | Code | 11 | 49 | package br.com.impacta.dao;
import br.com.impacta.model.Usuario;
public interface IUsuarioDao extends Dao<Usuario> {
} | 27,846 |
https://github.com/funnatic/ShowroomMgmtSystem/blob/master/resources/views/admin_section/inventory/view_inventory.blade.php | Github Open Source | Open Source | MIT | 2,021 | ShowroomMgmtSystem | funnatic | Blade | Code | 118 | 746 |
<x-headers/>
<link rel="stylesheet" href="{{asset('css/view_inventory.css')}}">
@extends('admin_section.master_layout')
@section('content')
<div class="content-wrapper">
<div class="container-fluid">
<div class="table-responsive mt-4">
<h4 class='card-title text-success text-center'>{{session('suc... | 9,014 |
https://github.com/kfarnung/advent-of-code/blob/master/2021/day13/lib.cc | Github Open Source | Open Source | MIT | 2,017 | advent-of-code | kfarnung | C++ | Code | 297 | 1,163 | #include "lib.h"
#include <common/input_parser.h>
#include <common/point2d.h>
#include <limits>
#include <unordered_set>
#include <tuple>
namespace
{
using grid_t = std::unordered_set<common::Point2D>;
using foldlist_t = std::vector<common::Point2D>;
std::tuple<grid_t, foldlist_t> parse_input(const std:... | 11,756 |
https://github.com/matipaulo/Demos/blob/master/CQRS/CQRS.Core/Repositories/Impl/Repository.cs | Github Open Source | Open Source | MIT | 2,022 | Demos | matipaulo | C# | Code | 92 | 357 | using CQRS.Core.Data;
using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace CQRS.Core.Repositories.Impl
{
public class Repository<TEntity> : IRepository<TEntity> where TEntity : class
{
protected readonly SchoolContext Sc... | 21,027 |
https://github.com/Boerman/Boerman.Networking/blob/master/Boerman.Networking/ConnectedEventArgs.cs | Github Open Source | Open Source | MIT | 2,021 | Boerman.Networking | Boerman | C# | Code | 57 | 162 | using System;
using System.IO;
using System.Net;
using System.Net.Sockets;
namespace Boerman.Networking
{
public class ConnectedEventArgs
{
private StateObject _state;
internal ConnectedEventArgs(StateObject state)
{
_state = state;
EndPoint = state.EndPoint;
... | 20,361 |
https://github.com/halink/multi-datasource-springboot-start/blob/master/src/main/java/com/halink/scaffold/common/vo/user/UserVo.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | multi-datasource-springboot-start | halink | Java | Code | 94 | 436 | package com.halink.scaffold.common.vo.user;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.halink.scaffold.common.enumerate.UserStatuesEnum;
import com.halink.scaffold.config.enumserialize.CustomEnumDeserialize;
import io.swagger.annotat... | 36,502 |
https://github.com/Harshinichandran/Assignment3Memcache/blob/master/main.py | Github Open Source | Open Source | MIT | null | Assignment3Memcache | Harshinichandran | Python | Code | 137 | 529 | from flask import Flask, render_template, request
import sqlite3 as sql
import pandas as pd
import time
app = Flask(__name__,template_folder="static")
#########################################################################################################################
@app.route('/')
def home():
return render_t... | 40,965 |
https://github.com/AshwinKumarVijay/ECS-Development/blob/master/ECS/Project/Project/Renderers/RendererModules/FPassLightingModule/FPassLightingModule.cpp | Github Open Source | Open Source | MIT | 2,017 | ECS-Development | AshwinKumarVijay | C++ | Code | 8 | 53 | #include "FPassLightingModule.h"
FPassLightingModule::FPassLightingModule()
{
}
FPassLightingModule::~FPassLightingModule()
{
}
| 9,803 |
https://github.com/smallkot/A-IOSHelper/blob/master/A_IOSHelper/RESTRequest/A_RESTRequest.m | Github Open Source | Open Source | MIT | 2,015 | A-IOSHelper | smallkot | Objective-C | Code | 1,041 | 3,861 | //
// A_RESTRequest.m
// A-IOSHelper
//
// Created by Animax
// Copyright (c) 2014 AnimaxStudio. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "A_RESTRequest.h"
#import "A_JSONHelper.h"
#define boundary @"A_iOSHelper"
@interface A_RESTRequestUploadDataSet()
@property (strong, nonatomic) NSData *fileDa... | 47,659 |
https://github.com/shachindrasingh/apiman/blob/master/manager/ui/war/plugins/api-manager/ts/api/api-contracts.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | apiman | shachindrasingh | TypeScript | Code | 163 | 595 | /// <reference path="../apimanPlugin.ts"/>
/// <reference path="../rpc.ts"/>
module Apiman {
export var ApiContractsController = _module.controller("Apiman.ApiContractsController",
['$q', '$scope', '$location', 'PageLifecycle', 'ApiEntityLoader', 'OrgSvcs', 'Logger', '$routeParams', 'Configuration',
... | 7,263 |
https://github.com/CUBRID/cubrid/blob/master/src/broker/shard_proxy_function.h | Github Open Source | Open Source | BSD-3-Clause, Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | cubrid | CUBRID | C | Code | 514 | 1,671 | /*
* Copyright 2008 Search Solution Corporation
* Copyright 2016 CUBRID Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-... | 38,671 |
https://github.com/Kitware/SMTK/blob/master/smtk/attribute/testing/cxx/unitDefinitionTags.cxx | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-unknown-license-reference | 2,023 | SMTK | Kitware | C++ | Code | 909 | 2,663 | //=========================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE... | 4,034 |
https://github.com/JamesLinus/vimium/blob/master/background_scripts/main.coffee | Github Open Source | Open Source | MIT | 2,019 | vimium | JamesLinus | CoffeeScript | Code | 3,228 | 9,183 | root = exports ? window
# The browser may have tabs already open. We inject the content scripts immediately so that they work straight
# away.
chrome.runtime.onInstalled.addListener ({ reason }) ->
# See https://developer.chrome.com/extensions/runtime#event-onInstalled
return if reason in [ "chrome_update", "share... | 22,174 |
https://github.com/the-t-in-rtf/gpii-live-solutions-registry/blob/master/src/js/index.js | Github Open Source | Open Source | BSD-3-Clause | 2,017 | gpii-live-solutions-registry | the-t-in-rtf | JavaScript | Code | 37 | 69 | /*
The main file to include for node-side code provided by this package. See the docs for details.
If you add functions, etc. to this package, make sure you include them from here.
*/
"use strict";
require("./optionsHierarchyLoader.js");
| 24,271 |
https://github.com/RK-MSU/CSCI-331-Final-Project/blob/master/system/user/addons/art_hub/javascript/app/filters/html-unsafe.js | Github Open Source | Open Source | Apache-2.0 | null | CSCI-331-Final-Project | RK-MSU | JavaScript | Code | 12 | 55 | (function(w, ee) {
"use_strict";
ee.app.filter('unsafe', function($sce) {
return $sce.trustAsHtml;
});
})(window, EE); | 49,280 |
https://github.com/deepparrot/gen-efficientnet-pytorch/blob/master/hubconf.py | Github Open Source | Open Source | Apache-2.0 | 2,019 | gen-efficientnet-pytorch | deepparrot | Python | Code | 54 | 290 | dependencies = ['scipy', 'torchvision', 'torch']
from gen_efficientnet import efficientnet_b0
from sotabench.image_classification import imagenet
import torch
import torchvision.transforms as transforms
import PIL
def benchmark():
model = torch.hub.load('rwightman/gen-efficientnet-pytorch', 'efficientnet_b0', pre... | 766 |
https://github.com/joshbalfour/foundations/blob/master/packages/geo-diary/src/components/ui/icon/icons/chevron-right.tsx | Github Open Source | Open Source | MIT | 2,022 | foundations | joshbalfour | TypeScript | Code | 61 | 433 | import React from 'react'
export default () => (
<svg width="9px" height="16px" viewBox="0 0 9 16" version="1.1" xmlns="http://www.w3.org/2000/svg">
<title>Path</title>
<desc>Created with Sketch.</desc>
<g id="Symbols" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
<g id="icon_chevro... | 35,229 |
https://github.com/Mur4ik/shadow-engine/blob/master/shadow-platformer/src/net/fourbytes/shadow/GameObject.java | Github Open Source | Open Source | MIT | 2,014 | shadow-engine | Mur4ik | Java | Code | 824 | 2,668 | package net.fourbytes.shadow;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.Pixmap;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.TextureData;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.math.MathUtils;
import com.badlogic.gdx.math... | 29,128 |
https://github.com/infobyte/nixpkgs/blob/master/pkgs/applications/networking/instant-messengers/pidgin-plugins/purple-slack/default.nix | Github Open Source | Open Source | MIT | 2,022 | nixpkgs | infobyte | null | Spoken | 78 | 334 | { stdenv, fetchFromGitHub, pidgin, pkgconfig }:
stdenv.mkDerivation {
pname = "purple-slack-unstable";
version = "2019-08-18";
src = fetchFromGitHub {
owner = "dylex";
repo = "slack-libpurple";
rev = "be97802c7fd0b611722d2f551756e2a2672f6084";
sha256 = "0l6hwnnv6zzszxkk0a3nli88w5gijvlc9qgkkai0sb... | 249 |
https://github.com/IBMStreams/OSStreams/blob/master/src/cpp/SPL/Runtime/Operator/Port/ScheduledPort.cpp | Github Open Source | Open Source | Apache-2.0 | 2,021 | OSStreams | IBMStreams | C++ | Code | 129 | 294 | /*
* Copyright 2021 IBM Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 19,954 |
https://github.com/medewitt/vecalc/blob/master/tests/testthat.R | Github Open Source | Open Source | MIT | 2,021 | vecalc | medewitt | R | Code | 3 | 22 | library(testthat)
library(vecalc)
test_check("vecalc")
| 8,380 |
https://github.com/lhutyra/parallel-patterns/blob/master/src/ParallelPatterns/src/Common/Helpers/TaskComposition.cs | Github Open Source | Open Source | MIT | 2,019 | parallel-patterns | lhutyra | C# | Code | 148 | 465 | using System;
using System.Threading.Tasks;
namespace ParallelPatterns.TaskComposition
{
public static partial class TaskEx
{
// TODO (1)
// implement missing code
public static Task<TOut> Then<TIn, TOut>(
this Task<TIn> task,
Func<TIn, TOut> next)
{
... | 32,296 |
https://github.com/gonguelun/DP2-1920-G2-13/blob/master/src/main/resources/db/hsqldb/data.sql | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, Apache-2.0 | 2,020 | DP2-1920-G2-13 | gonguelun | SQL | Code | 930 | 3,392 | -- One admin user, named admin1 with passwor 4dm1n and authority admin
INSERT INTO users(id, username,password,enabled) VALUES (1, 'admin1','4dm1n',TRUE);
INSERT INTO authorities VALUES ( 'admin1','admin');
-- One owner user, named owner1 with passwor 0wn3r
INSERT INTO users(id, username,password,enabled) VALUES (2, 'o... | 28,265 |
https://github.com/WenzheLiu-Speech/TinyNeuralNetwork/blob/master/tinynn/converter/operators/base.py | Github Open Source | Open Source | MIT | 2,021 | TinyNeuralNetwork | WenzheLiu-Speech | Python | Code | 115 | 366 | import inspect
import sys
from enum import IntEnum
from tflite.ActivationFunctionType import ActivationFunctionType
from tflite.BuiltinOperator import BuiltinOperator
# In Python 3.6, we cannot make ExtendedOperator derive from IntEnum
if sys.version_info >= (3, 7):
bases = (IntEnum, )
else:
bases = ()
cla... | 25,342 |
https://github.com/ekayuliet/andioffset/blob/master/approvecuti.php | Github Open Source | Open Source | MIT | 2,020 | andioffset | ekayuliet | PHP | Code | 7 | 37 | <?php
include 'koneksi.php';
approve($_GET['id']);
header("Location: cuti_drk.php");
?> | 44,656 |
https://github.com/SimuelTang/TinyJSONParser/blob/master/src/test/java/JSONParserTest.java | Github Open Source | Open Source | MIT | 2,021 | TinyJSONParser | SimuelTang | Java | Code | 31 | 108 | import java.io.IOException;
import org.junit.Test;
import pers.simuel.parser.JSONParser;
public class JSONParserTest {
@Test
public void test() throws IOException {
JSONParser jsonParser = new JSONParser();
Object json = jsonParser.fromJSON("{\"foods\":[18, true, {\"calories\":200}]}");
... | 887 |
https://github.com/apollographql/apollo-rs/blob/master/crates/apollo-parser/src/parser/grammar/argument.rs | Github Open Source | Open Source | Apache-2.0, MIT | 2,022 | apollo-rs | apollographql | Rust | Code | 222 | 876 | use crate::{
parser::grammar::{input, name, value},
Parser, SyntaxKind, TokenKind, S, T,
};
/// See: https://spec.graphql.org/October2021/#Argument
///
/// *Argument*:
/// Name **:** Value
pub(crate) fn argument(p: &mut Parser, mut is_argument: bool) {
if let Some(TokenKind::Name) = p.peek() {
l... | 22,041 |
https://github.com/GNN2QSU/super-pixels/blob/master/src/models/__init__.py | Github Open Source | Open Source | MIT | 2,021 | super-pixels | GNN2QSU | Python | Code | 36 | 98 | """Package Exports for Models."""
from src.models.cnn import SimpleCnn
from src.models.gat import Gat
from src.models.gcn import Gcn
from src.models.hybrid import Hybrid
from src.models.monet import MoNet
from src.models.multigat import MultiGat
from src.models.projection import Projection
from src.models.vgg import Vg... | 26,740 |
https://github.com/SulemanAli303/SwiftMan/blob/master/SwiftMan/Extension/Swift/Int+Man.swift | Github Open Source | Open Source | MIT | 2,020 | SwiftMan | SulemanAli303 | Swift | Code | 54 | 135 | //
// Int+Man.swift
// SwiftMan
//
// Created by yangjun zhu on 2017/1/11.
// Copyright © 2017年 cactus. All rights reserved.
//
extension Int {
public var m_isEven:Bool {return (self % 2 == 0)}
public var m_isOdd:Bool {return (self % 2 != 0)}
public var m_toDouble:Double {return Double(s... | 22,333 |
https://github.com/OHAKO-Inc/PagingManagerSample/blob/master/Carthage/Checkouts/OHAKO-Prelude/Prelude/UIKitExtensions/NSMutableAttributedStringExtension.swift | Github Open Source | Open Source | MIT | 2,018 | PagingManagerSample | OHAKO-Inc | Swift | Code | 136 | 489 | //
// NSMutableAttributedStringExtension.swift
// Prelude
//
// Created by Yoshikuni Kato on 2016/08/03.
// Copyright © 2016年 Ohako Inc. All rights reserved.
//
import UIKit
public extension NSMutableAttributedString {
convenience public init(text: String, font: UIFont, lineSpacing: CGFloat = 0.0) {
s... | 9,641 |
https://github.com/ManageIQ/manageiq-ui-classic/blob/master/app/controllers/host_controller.rb | Github Open Source | Open Source | Apache-2.0 | 2,023 | manageiq-ui-classic | ManageIQ | Ruby | Code | 1,281 | 4,856 | class HostController < ApplicationController
before_action :check_privileges
before_action :get_session_data
after_action :cleanup_action
after_action :set_session_data
include Mixins::GenericFormMixin
include Mixins::GenericSessionMixin
include Mixins::GenericListMixin
include Mixins::GenericShowMixin... | 19,391 |
https://github.com/Kiririn00/chatbot/blob/master/SQL/linkdata.sql | Github Open Source | Open Source | MIT | null | chatbot | Kiririn00 | SQL | Code | 13,602 | 47,754 | -- phpMyAdmin SQL Dump
-- version 4.5.2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Sep 20, 2017 at 06:03 AM
-- Server version: 10.1.16-MariaDB
-- PHP Version: 5.5.38
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL... | 29,229 |
https://github.com/enactjs/agate/blob/master/internal/util/util.js | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-warranty-disclaimer | 2,023 | agate | enactjs | JavaScript | Code | 196 | 481 | import equals from 'ramda/src/equals';
import {memo} from 'react';
/**
* Compares two children and returns true if they are equivalent, false otherwise.
*
* @function
* @param {children} a children props
* @param {children} b children props
*
* @returns {Boolean} `true` if same
* @memb... | 8,435 |
https://github.com/Coursemology/coursemology2/blob/master/spec/mailers/course/mailer_spec.rb | Github Open Source | Open Source | MIT | 2,023 | coursemology2 | Coursemology | Ruby | Code | 366 | 1,391 | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe Course::Mailer, type: :mailer do
subject { mail }
let(:instance) { Instance.default }
with_tenant(:instance) do
let(:course) { create(:course) }
let(:course_creator) { course.course_users.first }
let(:text) { mail.body.parts.find { ... | 14,803 |
https://github.com/MattMello88/seeutola/blob/master/resources/js/components/produto/index.js | Github Open Source | Open Source | MIT | null | seeutola | MattMello88 | JavaScript | Code | 408 | 2,131 |
const Produto = () => {
var loadGridProduto = function (event) {
fetch(url + '/api/produto', {
method: "GET",
headers: [
["Accept", "application/json"],
["Authorization", "Bearer " + tokenAdmin],
]
})
.then(function(res){
return res.json();
})
.then(functi... | 39,739 |
https://github.com/prettyblacc0504/crystal/blob/master/mbhd-core/src/test/java/org/multibit/hd/core/trezor/TrezorWalletTest.java | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,014 | crystal | prettyblacc0504 | Java | Code | 733 | 3,497 | package org.multibit.hd.core.trezor;
import com.google.bitcoin.core.Address;
import com.google.bitcoin.core.NetworkParameters;
import com.google.bitcoin.core.Wallet;
import com.google.bitcoin.crypto.ChildNumber;
import com.google.bitcoin.crypto.DeterministicHierarchy;
import com.google.bitcoin.crypto.DeterministicKey;... | 49,556 |
https://github.com/JasmineZhen218/P-WL/blob/master/data/NCI109/0950.gml | Github Open Source | Open Source | MIT | 2,021 | P-WL | JasmineZhen218 | null | Spoken | 366 | 891 | graph [
directed 0
node [
id 25200
label "21"
]
node [
id 25202
label "1"
]
node [
id 25203
label "1"
]
node [
id 25204
label "1"
]
node [
id 25205
label "1"
]
node [
id 25210
label "2"
]
node [
id 25201
label "1"
]
node [
id 25... | 40,688 |
https://github.com/dotnetjunkie/codesamples/blob/master/AopECommerce/src/Commerce.Web.Presentation/Models/AdjustInventoryViewModel.cs | Github Open Source | Open Source | MIT | 2,022 | codesamples | dotnetjunkie | C# | Code | 39 | 144 | using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Mvc.Rendering;
using Ploeh.Samples.Commerce.Domain.Commands;
namespace Ploeh.Samples.Commerce.Web.Presentation.Models
{
public class AdjustInventoryViewModel
{
public IEnumerable<SelectListItem> P... | 9,028 |
https://github.com/herbergomez/sicmec/blob/master/src/main/java/com/uesocc/sicmec/model/adapter/SicPersonaAdapter.java | Github Open Source | Open Source | Apache-2.0 | 2,014 | sicmec | herbergomez | Java | Code | 85 | 568 | /**
*
*/
package com.uesocc.sicmec.model.adapter;
import com.uesocc.sicmec.framework.general.BaseAdapter;
import com.uesocc.sicmec.framework.general.SicDataTypeFormat;
import com.uesocc.sicmec.model.dto.SicPersonaDto;
import com.uesocc.sicmec.model.entity.SicPersona;
/**
* @author xtiyo
*
*/
public class SicPer... | 10,563 |
https://github.com/ghostlitao/pd-openweb/blob/master/src/pages/worksheet/components/SearchInput/SearchInput.less | Github Open Source | Open Source | Apache-2.0 | 2,022 | pd-openweb | ghostlitao | Less | Code | 79 | 269 | .searchInputComp {
display: inline-block;
border-radius: 24px;
background-color: #eaeaea;
font-size: 13px;
vertical-align: middle;
.inputCon {
display: flex;
padding: 3px 6px;
position: relative;
}
.icon {
font-size: 21px;
color: #cacaca;
}
input {
width: 180px;
border: n... | 26,055 |
https://github.com/wasabi-cms/cms/blob/master/src/View/Layout/Grid.php | Github Open Source | Open Source | MIT | null | cms | wasabi-cms | PHP | Code | 123 | 301 | <?php
namespace Wasabi\Cms\View\Layout;
use Cake\Core\Exception\Exception;
class Grid
{
/**
* The column width.
*
* @var int
*/
public $colWidth = 0;
/**
* The base width.
*
* @var int
*/
public $baseWidth = 0;
/**
* Grid constructor.
*
* @... | 11,696 |
https://github.com/line/armeria/blob/master/core/src/test/java/com/linecorp/armeria/server/ServerBuilderTest.java | Github Open Source | Open Source | LGPL-2.1-only, JSON, GPL-2.0-only, Apache-2.0, LGPL-2.0-or-later, WTFPL, CC0-1.0, LicenseRef-scancode-unknown-license-reference, EPL-1.0, BSD-3-Clause, CDDL-1.0, Classpath-exception-2.0, MIT | 2,023 | armeria | line | Java | Code | 1,666 | 8,268 | /*
* Copyright 2018 LINE Corporation
*
* LINE Corporation licenses this file to you 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:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | 10,526 |
https://github.com/BaseXdb/basex/blob/master/basex-core/src/main/java/org/basex/query/util/parse/ModInfo.java | Github Open Source | Open Source | BSD-3-Clause | 2,023 | basex | BaseXdb | Java | Code | 56 | 130 | package org.basex.query.util.parse;
import org.basex.util.*;
import org.basex.util.list.*;
/**
* Information required for parsing a module.
*
* @author BaseX Team 2005-23, BSD License
* @author Christian Gruen
*/
public final class ModInfo {
/** Paths. */
public final TokenList paths = new TokenList(1);
/*... | 19,301 |
https://github.com/VShell/nixpkgs/blob/master/pkgs/servers/openafs-client/ae86b07f827d6f3e2032a412f5f6cb3951a27d2d.patch | Github Open Source | Open Source | MIT | 2,020 | nixpkgs | VShell | null | Spoken | 164 | 816 | From e284db57f94c8f97ed1c95dcd0bd9518d86c050c Mon Sep 17 00:00:00 2001
From: Marc Dionne <marc.dionne@your-file-system.com>
Date: Wed, 18 Jun 2014 08:53:48 -0400
Subject: [PATCH] Linux 3.16: Switch to iter_file_splice_write
Users of generic_file_splice_write need to switch to
using iter_file_splice_write.
Change-Id: ... | 31,205 |
https://github.com/Storyitr8/LivingScripturesWS/blob/master/src/LSI/OrderBundle/Entity/TaxRate.php | Github Open Source | Open Source | MIT | null | LivingScripturesWS | Storyitr8 | PHP | Code | 92 | 322 | <?php
namespace LSI\OrderBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
*/
class TaxRate
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\Column(type="string", length=5, unique=true)
*/
... | 51,117 |
https://github.com/postpersonality/public/blob/master/js-api/src/data.d.ts | Github Open Source | Open Source | MIT | null | public | postpersonality | TypeScript | Code | 831 | 1,960 | import {DataFrame} from "./dataframe";
import {JOIN_TYPE, SYNC_TYPE} from "./const";
import {FuncCall} from "./functions";
export const QNUM_LESS: number;
export const QNUM_EXACT: number;
export const QNUM_GREATER: number;
/**
* A set of static methods for working with qualified numbers.
* The internal representa... | 22,654 |
https://github.com/s1n7ax/uob-sppm-client/blob/master/src/components/ItemManagement.js | Github Open Source | Open Source | MIT | 2,021 | uob-sppm-client | s1n7ax | JavaScript | Code | 448 | 1,440 | import { useState } from 'react';
import { useItemStore } from '../store/ItemStore';
import TableOfContent from './TableOfContent2';
import { IconButton, Tooltip } from '@material-ui/core';
import AddIcon from '@material-ui/icons/Add';
import EditIcon from '@material-ui/icons/Edit';
import RemoveCircleIcon from '@mater... | 50,430 |
https://github.com/Dreamvention/2_d_visual_designer/blob/master/admin/view/template/extension/d_visual_designer/field.twig | Github Open Source | Open Source | MIT | 2,023 | 2_d_visual_designer | Dreamvention | Twig | Code | 19 | 84 | <div class="form-group">
<label class="control-label col-sm-2">{{ text_label }}</label>
<div class="col-sm-10">
<div class="d_visual_designer_backend" data-name="{{ name }}" data-content="{{ content }}"></div>
</div>
</div> | 37,743 |
https://github.com/foss-for-synopsys-dwc-arc-processors/synopsys-caffe/blob/master/python/pre_roi_align.py | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, BSD-2-Clause | 2,023 | synopsys-caffe | foss-for-synopsys-dwc-arc-processors | Python | Code | 176 | 492 | import caffe
import numpy as np
class Pre_Roi_Align(caffe.Layer):
"""
Implement the previous part of ROI Align in Mask RCNN
"""
def setup(self, bottom, top):
# check number of inputs and outputs
if len(bottom) != 1:
raise Exception("Only input one Tensor at a time!")
... | 41,559 |
https://github.com/josephlee2633/myos/blob/master/Drivers/Peripherals/inc/gd32f20x_bkp.h | Github Open Source | Open Source | MIT | 2,017 | myos | josephlee2633 | C | Code | 408 | 2,216 | /**
******************************************************************************
* @brief BKP header file of the firmware library.
******************************************************************************
*/
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __GD3... | 13,816 |
https://github.com/pubudu91/PropNetsVisualizer/blob/master/app/propnets.js | Github Open Source | Open Source | BSD-3-Clause | null | PropNetsVisualizer | pubudu91 | JavaScript | Code | 2,295 | 6,942 | var PropNets = (function(d3) {
var MOD = MOD || {};
var decodedShapeFile;
var startTime;
var width; // width of the map canvas
var height; // height of the map canvas
var projection;
var svgMap;
var g;
var path;
var zoom;
var currentMap;
/* variables representing the various DOM elements in the... | 34,576 |
https://github.com/NateTheGreatt/phaser/blob/master/dist/config/maxtextures/MaxTextures.js | Github Open Source | Open Source | MIT | 2,021 | phaser | NateTheGreatt | JavaScript | Code | 19 | 48 | import { SetMaxTextures } from "./SetMaxTextures";
export function MaxTextures(max = 0) {
return () => {
SetMaxTextures(max);
};
}
| 52,546 |
https://github.com/ComfortablyDumb/IAW-S2/blob/master/php-tp1/exo2.php | Github Open Source | Open Source | MIT | null | IAW-S2 | ComfortablyDumb | PHP | Code | 202 | 659 | <?php
# retourne le nom du jour de la semaine
# correspondant à '$week', le numéro du
# jour de la semaine (0 -> dimanche, 1 -> lundi, ...)
function jour($week)
{
switch ($week) {
case 0:
return ("Dimanche");
case 1:
return ("Lundi");
case 2:
return ("Mardi");
case 3:
return ("Mercredi");
ca... | 17,426 |
https://github.com/HigashinoKatsuaki/cleanarchitecture-learn/blob/master/src/usecase/todo_usecase.go | Github Open Source | Open Source | MIT | null | cleanarchitecture-learn | HigashinoKatsuaki | Go | Code | 33 | 131 | package usecase
import (
"cleanarchitecture-learn/src/domain/model"
"cleanarchitecture-learn/src/domain/repository"
)
type TodoUsecase struct {
Repo repository.TodoRepository
}
func (u *TodoUsecase) All() []*model.Todo {
return u.Repo.All()
}
func (u *TodoUsecase) Save(t *model.Todo) error {
return u.Repo.Save... | 11,537 |
https://github.com/siddhantk232/nixpkgs/blob/master/nixos/modules/hardware/gkraken.nix | Github Open Source | Open Source | MIT | 2,022 | nixpkgs | siddhantk232 | null | Spoken | 43 | 119 | { config, lib, pkgs, ... }:
with lib;
let
cfg = config.hardware.gkraken;
in
{
options.hardware.gkraken = {
enable = mkEnableOption "gkraken's udev rules for NZXT AIO liquid coolers";
};
config = mkIf cfg.enable {
services.udev.packages = with pkgs; [
gkraken
];
};
}
| 31,477 |
https://github.com/rhencke/engine/blob/master/src/third_party/dart/tests/language/void/void_type_function_types_test.dart | Github Open Source | Open Source | BSD-3-Clause | 2,022 | engine | rhencke | Dart | Code | 312 | 1,014 | // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Dart test for type checks involving the void type in function types.
import 'package:expect/expect.... | 42,876 |
https://github.com/louieogrady/Guided-Module-One-Project-London-Web-Career-021819/blob/master/db/migrate/002_create_releases.rb | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain | 2,019 | Guided-Module-One-Project-London-Web-Career-021819 | louieogrady | Ruby | Code | 23 | 77 | class CreateReleases < ActiveRecord::Migration
def change
create_table :releases do |t|
t.string :artist
t.string :title
t.date :released
t.string :genre
t.string :format
end
end
end
| 35,094 |
https://github.com/lwluc/opentelemetry-collector/blob/master/model/pdata/traces_alias.go | Github Open Source | Open Source | Apache-2.0 | null | opentelemetry-collector | lwluc | Go | Code | 290 | 718 | // Copyright The OpenTelemetry Authors
//
// 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... | 46,480 |
https://github.com/Botanicbot/Controlador/blob/master/routes/Admin.js | Github Open Source | Open Source | MIT | 2,018 | Controlador | Botanicbot | JavaScript | Code | 12 | 45 | module.exports = function(app){
app.get('/admin', function (request, response) {
response.render('admin'); //views/admin.ejs
});
}; | 40,054 |
https://github.com/paulosouzav/memory-game-react/blob/master/src/components/Card/index.tsx | Github Open Source | Open Source | MIT | null | memory-game-react | paulosouzav | TypeScript | Code | 63 | 162 | import React from 'react';
import { IImage } from '../Image';
import BaseCard, { IBaseCard } from './BaseCard';
import { DEFAULT_CARD_IMAGE } from '../../constants/cards';
export interface ICard extends IBaseCard {
id: string;
image: IImage;
}
export const Card = ({ image, ...cardProps }: ICard) => {
return (
... | 25,147 |
https://github.com/emersion/chromiumos-platform2/blob/master/vm_tools/cicerone/container.cc | Github Open Source | Open Source | BSD-3-Clause | 2,021 | chromiumos-platform2 | emersion | C++ | Code | 658 | 3,060 | // Copyright 2018 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "vm_tools/cicerone/container.h"
#include <arpa/inet.h>
#include <algorithm>
#include <memory>
#include <utility>
#include <base/bind.h>
#in... | 5,450 |
https://github.com/Anntroy/Data_converter/blob/master/location_register/migrations/0005_auto_20200625_1419.py | Github Open Source | Open Source | MIT | 2,020 | Data_converter | Anntroy | Python | Code | 33 | 156 | # Generated by Django 3.0.7 on 2020-06-25 14:19
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('location_register', '0004_auto_20200621_1735'),
]
operations = [
migrations.AlterField(
model_n... | 22,334 |
https://github.com/marieqg/blog-perso/blob/master/src/pages/voyages/thailande.js | Github Open Source | Open Source | FSFAP | null | blog-perso | marieqg | JavaScript | Code | 36 | 90 | import React from "react"
import { Construction } from "../../components/common/Construction"
import Layout from "../../components/layout"
import SEO from "../../components/seo"
const IndexPage = () => (
<Layout>
<SEO title="New Zealand" />
<Construction />
</Layout>
)
export default IndexPage
| 52,588 |
https://github.com/mheadd/derbycityfood/blob/master/classes/connect.php | Github Open Source | Open Source | MIT | 2,015 | derbycityfood | mheadd | PHP | Code | 264 | 785 | <?php
/**
*
* MySQL Connection Class.
* @author mheadd
*
*/
class DBConnect {
// Private class members.
private $host;
private $user;
private $password;
private $dbConnection;
private $dbName;
private $rowsAffected;
private $debug;
private $errorMessage;
/**
*
* Class constructor.
* @param strin... | 48,337 |
https://github.com/cholcool/ora2.co.th/blob/master/20160831-backup/newdemosite/js/myscript.js | Github Open Source | Open Source | MIT | 2,017 | ora2.co.th | cholcool | JavaScript | Code | 183 | 632 | $( document ).ready(function() {
function readURL(input) {
if (input.files && input.files[0]) {
var reader = new FileReader();
reader.onload = function (e) {
$('#blah').attr('src', e.target.result);
$('#blah').attr('width', 300);
}
reader.readAsDataURL(input.fil... | 25,130 |
https://github.com/NeuroRoboticTech/Jetduino/blob/master/Software/Python/dynamixel_synch_move.py | Github Open Source | Open Source | MIT | 2,016 | Jetduino | NeuroRoboticTech | Python | Code | 350 | 841 | #!/usr/bin/env python
#
# Jetduino Example for moving multiple dyanimxel smart servo at the same time using the Jetduino.
#
# The Jetduino connects the Jetson and Grove sensors. You can learn more about the Jetduino here: http://www.NeuroRoboticTech.com/Projects/Jetduino
#
# Have a question about this example? Ask o... | 42,950 |
https://github.com/sky-chaser-high/adobe-illustrator-scripts/blob/master/removeDeletedGlobalColor.js | Github Open Source | Open Source | MIT | 2,022 | adobe-illustrator-scripts | sky-chaser-high | JavaScript | Code | 123 | 285 | /* ===============================================================================================================================================
removeDeletedGlobalColor.js
description
Deletes the Deleted Global Colors displayed in the Separations Preview panel.
usage
1. Open the Ai file.
2. Run t... | 8,460 |
https://github.com/MaxEstHere/laravel-crud/blob/master/resources/views/authors.blade.php | Github Open Source | Open Source | MIT | null | laravel-crud | MaxEstHere | PHP | Code | 50 | 267 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Authors</title>
<link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet">
<style>
html, body {
... | 29,329 |
https://github.com/MayankAgarwal30/Project-Tradewell/blob/master/vendor/flutter_application/lib/generated/intl/messages_tr.dart | Github Open Source | Open Source | LicenseRef-scancode-free-unknown, GPL-1.0-or-later, LicenseRef-scancode-proprietary-license, MIT | 2,021 | Project-Tradewell | MayankAgarwal30 | Dart | Code | 977 | 5,322 | // DO NOT EDIT. This is code generated via package:intl/generate_localized.dart
// This is a library that provides messages for a tr locale. All the
// messages from the main program should be duplicated here with the same
// function name.
// Ignore issues from commonly used lints in this file.
// ignore_for_file:unn... | 19,778 |
https://github.com/pullbox/iae/blob/master/code/java/idsync/src/test/java/demo/IdMutexProviderTest.java | Github Open Source | Open Source | MIT | 2,015 | iae | pullbox | Java | Code | 366 | 845 | /*
Copyright (c) 2008 McDowell
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublic... | 4,563 |
https://github.com/SourceDecoded/JustBASE/blob/master/tests/BASE.web.Url.js | Github Open Source | Open Source | MIT | 2,016 | JustBASE | SourceDecoded | JavaScript | Code | 280 | 1,813 | var assert = require("assert");
require("../BASE.js");
BASE.require.loader.setRoot("./");
BASE.require([
"BASE.web.Url"
], function () {
exports["BASE.web.Url"] = function () {
// Alias BASE.web.Url to a shorter variable.
var Url = BASE.web.Url;
var googleAddress = "http... | 34,912 |
https://github.com/Crystal9332/Domain-Management-System/blob/master/app/Http/Controllers/DashboardController.php | Github Open Source | Open Source | MIT | 2,021 | Domain-Management-System | Crystal9332 | PHP | Code | 55 | 287 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Ixudra\Curl\Facades\Curl;
class DashboardController extends Controller
{
public function index() {
$response = Curl::to('https://api.namecheap.com/xml.response?ApiUser=bakkalisimo&ApiKey=dc5c2c1dc6ac45709eac708668ad05ff&UserName=bakkali... | 49,513 |
https://github.com/longlene/clx/blob/master/dev-inferno/inferno/files/issue-122-csendalt.patch | Github Open Source | Open Source | MIT | 2,021 | clx | longlene | null | Spoken | 52 | 218 | http://code.google.com/p/inferno-os/issues/detail?id=122
--- emu/port/inferno.c 2009-02-16 01:22:50.000000000 +0200
+++ emu/port/inferno.c 2008-10-23 00:04:07.000000000 +0300
@@ -760,10 +760,10 @@
fio = H2D(Sys_FileIO*, h);
- c = cnewc(FioTread, movtmp, 16);
+ c = cnewc(FioTread, movtmp, 1024);
fio->read = c;
... | 2,159 |
https://github.com/iasmini/vue-finances/blob/master/front/src/utils.js | Github Open Source | Open Source | MIT | null | vue-finances | iasmini | JavaScript | Code | 130 | 353 | const currencyFormater = ({ locale, currency } = { locale: 'pt-BR', currency: 'BRL' }) => {
return new Intl.NumberFormat(locale, {
style: 'currency',
currency
})
}
const errorHandler = (error, vm, info) => {
console.log('Vue [error hanler]: ', error, info)
const jwtErrors = ['jwt malformed', 'jwt expir... | 47,320 |
https://github.com/jsdelivrbot/dockerfiles-1/blob/master/data/c/cardinalsoftwaresolutions/sho-bows-client/Dockerfile | Github Open Source | Open Source | MIT | 2,018 | dockerfiles-1 | jsdelivrbot | Dockerfile | Code | 68 | 211 | FROM cardinalsoftwaresolutions/nginx-node-bower-ember
COPY deploy/nginx.conf /etc/nginx/nginx.conf
# Copy application files and set working dir
RUN mkdir /sho-bows-client
COPY . /sho-bows-client
WORKDIR /sho-bows-client
RUN npm set progress=false && npm install
RUN bower --allow-root install
... | 23,504 |
https://github.com/samwelkey/leetcode-go/blob/master/0032/longest_valid_parentheses.go | Github Open Source | Open Source | MIT | null | leetcode-go | samwelkey | Go | Code | 65 | 174 | func longestValidParentheses(s string) int {
ss := []byte(s)
var count int
var longest int
for i:=0; i<len(s); i++ {
count = 0
for j:=i; j<len(s); j++ {
if ss[j] == '('{
count ++
}
if ss[j] == ')'{
count --
}
if count < 0 {
break
}
if count == 0 && j-i+1 > longest{
longest =... | 29,165 |
https://github.com/faber-forks/nodebeats/blob/master/admin/src/app/admin-app/components/dashboard/dashboard.module.ts | Github Open Source | Open Source | Apache-2.0 | null | nodebeats | faber-forks | TypeScript | Code | 52 | 215 | import {NgModule} from '@angular/core';
import{SharedModule} from '../../../shared/shared.module';
import {ChartModule} from 'primeng/primeng';
import {
UserCount, PageViewComponent, BrowserAnalysisChart, CountryWiseChart,
LastWeekVsThisWeekAnalysisChart
} from "./dashboard.component";
import {DashboardSer... | 3,163 |
https://github.com/tefra/xsdata-w3c-tests/blob/master/output/instances/nistData/atomic/NMTOKEN/Schema+Instance/NISTXML-SV-IV-atomic-NMTOKEN-length-5-4.py | Github Open Source | Open Source | MIT | 2,023 | xsdata-w3c-tests | tefra | Python | Code | 9 | 120 | from output.models.nist_data.atomic.nmtoken.schema_instance.nistschema_sv_iv_atomic_nmtoken_length_5_xsd.nistschema_sv_iv_atomic_nmtoken_length_5 import NistschemaSvIvAtomicNmtokenLength5
obj = NistschemaSvIvAtomicNmtokenLength5(
value="and:electronic.signatures:in-The.Working_as.through.Experimental"
)
| 22,968 |
https://github.com/premkumaar/VachanAppReact-1/blob/master/app/screens/Audio/index.js | Github Open Source | Open Source | MIT | 2,019 | VachanAppReact-1 | premkumaar | JavaScript | Code | 107 | 471 | import React, { Component } from 'react';
import Player from './Player';
import {Text} from 'react-native'
import Icon from 'react-native-vector-icons/MaterialIcons'
export const TRACKS = [
{
title: 'Genesis 1',
// artist: 'Twenty One Pilots',
albumArtUrl: "http://36.media.tumblr.com/14e9a12cd4dca7a3c3c4... | 39,979 |
https://github.com/vishalbelsare/Birch/blob/master/birch/src/statement/Braces.hpp | Github Open Source | Open Source | Apache-2.0 | 2,023 | Birch | vishalbelsare | C++ | Code | 65 | 169 | /**
* @file
*/
#pragma once
#include "src/statement/Statement.hpp"
#include "src/common/Single.hpp"
#include "src/statement/EmptyStatement.hpp"
namespace birch {
/**
* Statement in braces.
*
* @ingroup statement
*/
class Braces: public Statement, public Single<Statement> {
public:
/**
* Constructor.
*
... | 9,054 |
https://github.com/vincentCGI/ensae_teaching_cs/blob/master/_doc/notebooks/exams/interro_rapide_20_minutes_2014_10.ipynb | Github Open Source | Open Source | MIT | 2,015 | ensae_teaching_cs | vincentCGI | Jupyter Notebook | Code | 1,727 | 6,287 | {
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Correction de l'interrogation écrite du 10 octobre 2014"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"* [Enoncé 1](#e1)\n",
"* [Enoncé 2](#e2)\n",
"\n",
"<h3 id=\"e1\">Enoncé 1<h3>\n",
... | 8,207 |
https://github.com/fxiao/gitlab/blob/master/ee/app/assets/javascripts/feature_flags/components/new_environments_dropdown.vue | Github Open Source | Open Source | MIT | null | gitlab | fxiao | Vue | Code | 208 | 818 | <script>
import {
GlNewDropdown,
GlNewDropdownDivider,
GlNewDropdownItem,
GlIcon,
GlLoadingIcon,
GlSearchBoxByType,
} from '@gitlab/ui';
import axios from '~/lib/utils/axios_utils';
import { __, sprintf } from '~/locale';
import createFlash from '~/flash';
export default {
components: {
GlNewDropdown... | 44,891 |
https://github.com/pneedle/pwd/blob/master/sites/all/themes/corolla/scss/fields.scss | Github Open Source | Open Source | MIT | null | pwd | pneedle | SCSS | Code | 99 | 324 | /* Fields */
.field .field-label {
font-size: 1em;
font-weight: 700;
line-height: inherit;
margin: 0;
}
.field-lable-inline .field-label {
display: inline;
}
.field-type-taxonomy-term-reference .field-label {
font-size: 1em;
}
.field-type-taxonomy-term-reference ul {
margin: 0;
padding: 0;
}
.field-type... | 17,458 |
https://github.com/Onapsis/pgdiff/blob/master/pgdiff/parser/AlterSequenceParser.py | Github Open Source | Open Source | MIT | 2,020 | pgdiff | Onapsis | Python | Code | 77 | 287 | from ..parser.Parser import Parser, ParserUtils
from ..schema.PgSequence import PgSequence
class AlterSequenceParser(object):
@staticmethod
def parse(database, statement):
parser = Parser(statement)
parser.expect("ALTER", "SEQUENCE")
sequenceName = parser.parse_identifier()
sc... | 5,763 |
https://github.com/bgoonz/Learning-Redux/blob/master/repos/Learning-Redux/Chapter07/chapter7_1/src/actions/posts.js | Github Open Source | Open Source | MIT | 2,022 | Learning-Redux | bgoonz | JavaScript | Code | 163 | 618 | import {
FETCH_POSTS_REQUEST,
FETCH_POSTS_SUCCESS,
FETCH_POSTS_FAILURE,
CREATE_POST_REQUEST,
CREATE_POST_SUCCESS,
CREATE_POST_FAILURE,
EDIT_POST,
DELETE_POST,
} from "../actionTypes";
import { thunkCreator } from "./utils";
import { fetchUser, fetchUsersByUsernames } from "./users";
export const fetch... | 40,332 |
https://github.com/HuginTech/mysql-connector-cpp/blob/master/cdk/cmake/DepFindProtobuf.cmake | Github Open Source | Open Source | Artistic-1.0-Perl | null | mysql-connector-cpp | HuginTech | CMake | Code | 914 | 3,172 | # Copyright (c) 2009, 2019, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2.0, as
# published by the Free Software Foundation.
#
# This program is also distributed with certain s... | 4,911 |
https://github.com/mtreis86/coalton/blob/master/src/typechecker/typed-node.lisp | Github Open Source | Open Source | MIT | null | coalton | mtreis86 | Common Lisp | Code | 1,243 | 5,286 | (in-package #:coalton-impl/typechecker)
;;;
;;; Typed AST nodes
;;;
(defstruct (typed-node (:constructor nil))
(type (required 'type) :type ty-scheme :read-only t)
(unparsed (required 'unparsed) :type t :read-only t))
(defun typed-node-list-p (x)
(and (alexandria:proper-list-p x)
(every ... | 36,573 |
https://github.com/DistCompiler/pgo/blob/master/src/pgo/model/mpcal/AST.scala | Github Open Source | Open Source | Apache-2.0 | 2,022 | pgo | DistCompiler | Scala | Code | 349 | 1,171 | package pgo.model.mpcal
import pgo.model.{Definition, DefinitionOne, RefersTo, Rewritable, SourceLocatable}
import pgo.model.tla._
import pgo.model.pcal._
sealed abstract class MPCalNode extends Rewritable with SourceLocatable {
override def decorateLike(succ: this.type): this.type =
super.decorateLike(succ.set... | 19,439 |
https://github.com/gyoza/stim/blob/master/stim/rootcmd.go | Github Open Source | Open Source | MIT | 2,019 | stim | gyoza | Go | Code | 181 | 662 | package stim
import (
// "os"
// "path/filepath"
// "github.com/mitchellh/go-homedir"
"github.com/spf13/cobra"
)
func (stim *Stim) initRootCommand() {
var cmd = &cobra.Command{
Use: "stim",
Short: "stim (stimulation delivery package) - Use your psychoactive hyperstimulants responsibly.",
Long: "... | 48,542 |
https://github.com/Tsur/bmol-editor/blob/master/root/public/modules/core/css/animation.less | Github Open Source | Open Source | MIT | null | bmol-editor | Tsur | Less | Code | 131 | 478 | .animated {
-webkit-animation-duration: 1s;
-webkit-animation-fill-mode: both;
}
.animated.infinite {
-webkit-animation-iteration-count: infinite;
}
.animated.hinge {
-webkit-animation-duration: 2s;
}
// Shake
@keyframes shake {
0%, 100% {
transform: translate3d(0, 0, 0);
}
10%, 30%, 50%, 70%, 90%... | 22,450 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.