repo_name
stringlengths
4
116
path
stringlengths
3
942
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
tucnak/telebot
api.go
5082
package telebot import ( "bytes" "encoding/json" "fmt" "io" "io/ioutil" "log" "mime/multipart" "net/http" "os" "strconv" "strings" "time" ) // Raw lets you call any method of Bot API manually. // It also handles API errors, so you only need to unwrap // result field from json data. func (b *Bot) Raw(metho...
mit
rishii7/vscode
src/vs/base/parts/tree/browser/treeDnd.ts
1682
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
mit
nextgensparx/quantum-router
src/vue-router/index.js
1330
import Vue from 'vue'; import Router from 'vue-router'; import Home from '@/views/Home.vue'; import Sms from '@/views/SMS.vue'; import Services from '@/views/Services.vue'; import Settings from '@/views/Settings.vue'; import Wlan from '@/views/settings/wlan.vue'; import DialUp from '@/views/settings/dialup.vue'; import...
mit
fjz13/Medusa
External/openal/Alc/effects/modulator.c
10189
/** * OpenAL cross platform audio library * Copyright (C) 2009 by Chris Robinson. * 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 ...
mit
mpay24/mpay24-php
src/Responses/AbstractPaymentResponse.php
2290
<?php namespace Mpay24\Responses; /** * The AbstractPaymentResponse class contains all the parameters, returned with the confirmation from mPAY24 * * Class AbstractPaymentResponse * @package Mpay24\Responses * * @author mPAY24 GmbH <support@mpay24.com> * @author Stefan Polzer <develop@ps-webdesign.c...
mit
jrg365/gpytorch
test/examples/test_sgpr_regression.py
6354
#!/usr/bin/env python3 import os import random import unittest import warnings from math import exp, pi import gpytorch import torch from gpytorch.distributions import MultivariateNormal from gpytorch.kernels import InducingPointKernel, RBFKernel, ScaleKernel from gpytorch.likelihoods import GaussianLikelihood from g...
mit
bradylove/wocket
lib/wocket/bindable.rb
353
module Wocket module Bindable def available_bindings raise NotImplementedError end def bind(name, &callback) raise "Invalid binding: #{name}" unless available_bindings.include? name @callbacks[name] = callback end def trigger(name, *args) @callbacks[name].call *args if @c...
mit
stoiandan/msg-code
Marius/Day6/src/main/java/test/Test.java
3349
package main.java.test; import java.util.Optional; import main.java.modul.Catalog; import main.java.modul.Categorie; import main.java.modul.Oferta; import main.java.modul.Produs; import main.java.service.Log; import main.java.util.Printer; import main.java.util.Sort; import main.java.util.SortUtil1; impor...
mit
Gargol/Ghost
core/server/api/v2/themes.js
7109
const Promise = require('bluebird'); const fs = require('fs-extra'); const debug = require('ghost-ignition').debug('api:themes'); const common = require('../../lib/common'); const themeService = require('../../services/themes'); const settingsCache = require('../../services/settings/cache'); const models = require('../...
mit
bakat/linkedin-profile-retrieve
README.md
92
# linkedin-profile-retrieve Retrieve linkedin profile with just give a linkedin profile URL
mit
z81/PolarOS_Next
src/components/Elements/NavGroup/NavGroup.js
397
import React, {PropTypes, Component} from 'react'; import { NavGroup } from 'react-photonkit' /*class NavGroup extends Component { static propTypes = { children: PropTypes.any } constructor(props) { super(props); this.state = {}; } render() { return ( <nav className="nav-group"> ...
mit
Rikmuld/Atlas
public/scripts/libs/plena/math.js
11693
var Vector; (function (Vector) { function clean(n) { var vector = []; for (var i = 0; i < n; i++) { vector[i] = 0; } return vector; } Vector.clean = clean; function create() { var values = []; for (var _i = 0; _i < arguments.length; _i++) { ...
mit
kuhlenh/port-to-core
Reports/gr/griffin.container.mvc5.1.0.2/Griffin.Container.Mvc5-net40.html
23153
<!DOCTYPE html> <html xmlns:msxsl="urn:schemas-microsoft-com:xslt"> <head> <meta content="en-us" http-equiv="Content-Language" /> <meta content="text/html; charset=utf-16" http-equiv="Content-Type" /> <title _locid="PortabilityAnalysis0">.NET Portability Report</title> <style> ...
mit
VKCOM/vk-java-sdk
sdk/src/main/java/com/vk/api/sdk/objects/messages/responses/GetChatFieldsResponse.java
5808
// Autogenerated from vk-api-schema. Please don't edit it manually. package com.vk.api.sdk.objects.messages.responses; import com.google.gson.Gson; import com.google.gson.annotations.SerializedName; import com.vk.api.sdk.objects.Validable; import com.vk.api.sdk.objects.annotations.Required; import com.vk.api.sdk.objec...
mit
AVinitzca/0FPS
TGC.Group/Model/Entities/EntityPlayerItemNightVisionDevice.cs
695
using Microsoft.DirectX; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TGC.Core.SceneLoader; namespace TGC.Group.Model.Entities { class EntityPlayerItemNightVisionDevice : EntityPlayerItem { public EntityPlayerItemNightVisionD...
mit
gh6-team/less-homelessness-api
src/main/java/svc/managers/UserManager.java
431
package svc.managers; import javax.inject.Inject; import org.springframework.stereotype.Component; import svc.data.users.UserDAO; import svc.models.User; @Component public class UserManager { @Inject private UserDAO userDAO; public User Login(String userId, String pwd) { return userDAO.checkUserLogin(userId,...
mit
phpchap/symfony14-beauty-salon
apps/frontend/modules/content/templates/gallerySuccess.php
2587
<?php use_helper('Pagination'); ?> <script type="text/javascript" src="/js/jquery.lightbox-0.5.js"></script> <link rel="stylesheet" type="text/css" href="/css/jquery.lightbox-0.5.css" media="screen" /> <script type="text/javascript"> $(function() { $('a.lightbox').lightBox(); // Select all links with lightbox class })...
mit
Hiroto-K/HkApps
app/Http/Middleware/HttpsProtocol.php
837
<?php /* * This file is part of HkApps. * * (c) Hiroto Kitazawa <hiro.yo.yo1610@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace HkApps\App\Http\Middleware; use Closure; /** * Class HttpsProtocol. * * @pa...
mit
moonik/conqueror
src/main/java/conqueror/security/StatelessAuthenticationFilter.java
1573
package conqueror.security; import io.jsonwebtoken.JwtException; import org.springframework.security.core.Authentication; import org.springframework.security.core.AuthenticationException; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.web.filter.GenericFilterBean; i...
mit
shaunak1111/material2
src/lib/button/button.spec.ts
9914
import {async, ComponentFixture, TestBed} from '@angular/core/testing'; import {Component, DebugElement} from '@angular/core'; import {By} from '@angular/platform-browser'; import {ViewportRuler} from '@angular/cdk/scrolling'; import {FakeViewportRuler} from '@angular/cdk/testing'; import {MdButtonModule} from './index...
mit
AfricanUhambo/AfricanUhambo.github.io
categories/summer-2011/index.html
13761
<!DOCTYPE html> <html lang="en-us"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>Summer 2011 -- African Uhamb...
mit
polleverywhere/fannypack
lib/fanny_pack.rb
98
require "fanny_pack/version" require "fanny_pack/assets" FannyPack::Assets::Sprockets.auto_detect
mit
V4Fire/Client
build/stylus/ds/plugins.js
7150
'use strict'; /*! * V4Fire Client Core * https://github.com/V4Fire/Client * * Released under the MIT license * https://github.com/V4Fire/Client/blob/master/LICENSE */ const $C = require('collection.js'); const {getThemes} = include('build/ds'), {getThemedPathChunks, checkDeprecated} = include('build/stylus/...
mit
krisachai/GelfLogger
src/org/graylog2/GelfMessage.java
8476
/*Copyright (c) 2011 Anton Yakimov. GELF created by Lennart Koopmann, Aleksey Palazhchenko. 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 r...
mit
alabeduarte/mypodcasts-android
app/src/main/java/com/mypodcasts/support/injection/ImageLoaderProvider.java
506
package com.mypodcasts.support.injection; import com.android.volley.RequestQueue; import com.android.volley.toolbox.ImageLoader; import javax.inject.Inject; import javax.inject.Provider; public class ImageLoaderProvider implements Provider<ImageLoader> { @Inject private ImageLoader.ImageCache imageCache; @Inj...
mit
diasdavid/issue-tracker
db/models/meta.js
873
var model = require('model'); var adapter = require('./..').adapter; var Issue = function () { this.adapter = adapter; this.property('assignees','string'); this.property('htmlUrl','string'); this.property('number','number'); this.property('state','string'); this.property('title','string'); this.property(...
mit
psionin/smartcoin
src/qt/locale/bitcoin_hu.ts
52718
<TS language="hu" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>A cím vagy címke szerkeszteséhez kattintson a jobb gombbal</translation> </message> <message> <source>Create a new address</source>...
mit
ice-services/moleculer
test/unit/strategies/random.spec.js
489
"use strict"; const RandomStrategy = require("../../../src/strategies/random"); const { extendExpect } = require("../utils"); extendExpect(expect); describe("Test RandomStrategy", () => { it("test with empty opts", () => { const strategy = new RandomStrategy(); const list = [ { a: "hello" }, { b: "worl...
mit
SafiStudio/LaravelGenerators
templates/elements/inputs/text.php
313
<div class="form-input"> <input class="form-line-text" type="text" id="{name}" name="data[{name}]" value="{{ (old('data.{name}')) ? old('data.{name}') : $item->{name} }}" {params} /> </div> <label class="form-line-label" for="{name}">{label}</label>
mit
snehasp13/main
src/main/java/seedu/address/logic/commands/MarkDeadlineUnfinishedCommand.java
1602
package seedu.address.logic.commands; import seedu.address.commons.core.IndexPrefix; import seedu.address.commons.exceptions.IllegalValueException; import seedu.address.model.Model; import seedu.address.model.task.DeadlineTask; import seedu.address.model.task.DeadlineTaskBuilder; public class MarkDeadlineUnfinishedCo...
mit
jamesynz/mapp
public/modules/core/controllers/home.client.controller.js
952
'use strict'; angular.module('core').controller('HomeController', ['$scope', 'Authentication', function($scope, Authentication) { // This provides Authentication context. $scope.authentication = Authentication; $scope.alerts = [ { icon: 'glyphicon-user', colour: 'btn-success', total: '20,408', d...
mit
rodrixcornell/bin
check_git_push.sh
3134
#!/bin/bash #clear echo data=`/bin/date +%Y%m%d` echo $data #echo ${data} cd ~ echo cd ~/public_html/semad/contaspublicas echo contaspublicas git checkout develop && git push && git checkout master && git push && git checkout develop echo cd ~/public_html/semad/contratos echo contratos git checkout develop && git pu...
mit
FinchYang/test
AecPrivateCloud.ALL/Client/SimulaDesign.WPFCustomUI/Converters/ShadowConverter.cs
2398
using System; using System.Collections.Generic; using System.Globalization; using System.Windows; using System.Windows.Data; using System.Windows.Media.Effects; using SimulaDesign.WPFCustomUI.Util; namespace SimulaDesign.WPFCustomUI.Converters { public class ShadowConverter : IValueConverter { private...
mit
astex/nbody.js
vector.js
2770
var Vector = function(values) { // An N-Dimensional vector. // // Args: // values: A list of values for each dimension of the vector. var self = this; self.values = values; self.hash = function() { // Generate a hash of the vector. // // Returns: // A hash of the vector. var r = '...
mit
hathach/tinyusb
examples/device/cdc_dual_ports/src/usb_descriptors.c
9553
/* * The MIT License (MIT) * * Copyright (c) 2019 Ha Thach (tinyusb.org) * * 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...
mit
nathankmiller/NFLToy
Conversion/Offense/PuntConverter.cs
3555
// ----------------------------------------------------------------------- // <copyright file="PuntConverter.cs" company="Nathan Miller"> // The MIT License (MIT) // // Copyright(c) 2015 Nathan Miller // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associate...
mit
rorykoehler/soundcloud_radio_channels
spec/controllers/soundcloud_controller_spec.rb
87
require 'rails_helper' RSpec.describe SoundcloudController, type: :controller do end
mit
digitalocean/droplet_kit
lib/droplet_kit/models/links.rb
188
# frozen_string_literal: true module DropletKit class Links < BaseModel attribute :myself attribute :first attribute :next attribute :prev attribute :last end end
mit
frag-o-matic/back2BASIC
OldCode/README.md
2234
### Old BASIC Code ### This folder contains scans of some very old BASIC code that I wrote in ~1999 (I think). This code was written for the "F-BASIC" interpreter of a Famicom clone similar to [this](http://www.nesworld.com/pirate-glk2003.php) one. The interpreter itself was on a cartridge similar to [this](http://www....
mit
mooming/hardbopengine
Code/System/ComponentSystem.h
3775
// Copyright Hansol Park (anav96@naver.com, mooming.go@gmail.com). All rights reserved. #ifndef __ComponentSystem_h__ #define __ComponentSystem_h__ #include "ComponentState.h" #include "Debug.h" #include "Vector.h" #include "String.h" #include <algorithm> namespace HE { template <typename Component> class C...
mit
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.09.1-2.0.6/released/8.9.1/mathcomp-odd-order/1.6.1.html
8467
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>mathcomp-odd-order: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootst...
mit
sarastik/coin-counter
static/styles.css
655
body { background-color: #1C2331; } .card { margin-top: 40px; padding-right: 0px; padding-left: 0px; } .card-header { display: flex; flex-direction: row; } h3 { margin-bottom: 0px; } #exchange-holder { margin-left: 25px; margin-right: 25px; } .panel-rate { text-align: right;...
mit
GMcD/generator-cordovum
app/templates/app/jasmine.html
346
<!DOCTYPE html> <html> <head> <title>Jasmine Spec Runner</title> <link rel="stylesheet" href="../bower_components/jasmine/lib/jasmine-core/jasmine.css"> <script data-main="require.jasmine" src="../bower_components/requirejs/require.js"></script> </head> <body> <div id="stage" style="overflow: hidden; height: 1p...
mit
beerlington/beerlington.github.com
_posts/2011-07-25-building-a-csv-renderer-in-rails-3.markdown
9905
--- layout: post title: "Building a Custom CSV Renderer in Rails 3" date: 2011-07-25 22:18 comments: true categories: rails renderers --- This post will walk you through creating a simple renderer in Rails 3. ## What are renderers? A renderer in Rails is a way of customizing how content is rendered for the browser o...
mit
tygarimew/Mana-Haven
global/js/auto_suggest.js
12043
/** * Plugin Name: Autocomplete for Textarea * Author: Amir Harel * Copyright: amir harel (harel.amir1@gmail.com) * Twitter: @amir_harel * Version 1.4 * Published at : http://www.amirharel.com/2011/03/07/implementing-autocomplete-jquery-plugin-for-textarea/ */ (function($){ /** * @param obj * @attr wordCo...
mit
farity/farity
Farity.Tests/FilterTests.cs
745
using System.Linq; using Xunit; namespace Farity.Tests { public class FilterTests { [Fact] public void FilterFiltersElementsInTheList() { var expected = new[] {1, 2, 3}; var actual = F.Filter(x => x < 4, new[] {1, 2, 3, 4, 5}); Assert.Equal(expected,...
mit
pattu777/LearningDjango
apps/apps/settings.py
3307
""" Django settings for apps project. Generated by 'django-admin startproject' using Django 1.9.7. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ import os from...
mit
zhanghedr/design-pattern
src/main/java/com/zhanghedr/mvc/User.java
518
package com.zhanghedr.mvc; /** * Created by zhanghedr on 1/2/17. */ public class User { private String name; private String email; public User(String name, String email) { this.name = name; this.email = email; } public String getName() { return name; } public v...
mit
fcanbolat/ponscoin
src/qt/locale/bitcoin_bs.ts
96738
<?xml version="1.0" ?><!DOCTYPE TS><TS language="bs" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Ponscoin</source> <translation>O Ponscoinu</translation> </messa...
mit
JinkiJung/PAUT
VRAT/vrat/Assets/Editor/NoesisGUI/NoesisUpdater.cs
15876
using UnityEngine; using UnityEditor; using UnityEditor.Callbacks; using System; using System.Text; using System.IO; using System.Collections; using System.Text.RegularExpressions; [InitializeOnLoad] public class NoesisUpdater: EditorWindow { static NoesisUpdater() { EditorApplication.update += CheckV...
mit
matudelatower/logiautos
src/VehiculosBundle/Tests/Controller/TipoDanioInternoControllerTest.php
1980
<?php namespace VehiculosBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class TipoDanioInternoControllerTest extends WebTestCase { /* public function testCompleteScenario() { // Create a new client to browse the application $client = static::createClient(); ...
mit
bolatov/contests
codeforces.ru/cf183/p4.cpp
1861
#include <set> #include <map> #include <string> #include <vector> #include <queue> #include <stack> #include <cmath> #include <list> #include <cassert> #include <climits> #include <cstring> #include <cstdio> #include <cstdlib> #include <cctype> #include <fstream> #include <sstream> #include <iostream> #include <algori...
mit
Sorsly/subtle
google-cloud-sdk/lib/surface/spanner/databases/create.py
2377
# Copyright 2016 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 law or ag...
mit
sdb1228/chess
app/controllers/home_controller.rb
1377
class HomeController < ApplicationController def index end def playgame @orientation = "" @waiting_players = [] if params[:nick_name] # This user gave us a nickname and is looking for other players @looking = true #register user nick_name = params[:nick_name] @u = User....
mit
fairesy/fairesy.github.io
projects/prismof/handmaiden.css
509
h1{ text-align: center; } main{ width: 50%; margin: 0 auto; } .question-wrapper{ width: 100%; overflow: auto; } .question{ width: 100%; } .square{ width:80px; height:80px; margin:20px; border-radius:50%; border: 2px solid rgb(40,40,40); float:left; } .red{ /*background-color:rgb(250,0,0);*/ } ...
mit
AlmasB/FXGLGames
GeometryWars/src/main/java/com/almasb/fxglgames/geowars/component/MineComponent.java
1735
package com.almasb.fxglgames.geowars.component; import com.almasb.fxgl.dsl.FXGL; import com.almasb.fxgl.dsl.components.HealthIntComponent; import com.almasb.fxgl.entity.component.Component; import com.almasb.fxgl.texture.Texture; import com.almasb.fxgl.time.LocalTimer; import com.almasb.fxglgames.geowars.GeoWarsApp; i...
mit
sisioh/aws4s
aws4s-eb/src/main/scala/org/sisioh/aws4s/eb/model/RichEnvironmentResourceDescription.scala
2727
package org.sisioh.aws4s.eb.model import com.amazonaws.services.elasticbeanstalk.model._ import org.sisioh.aws4s.PimpedType import scala.collection.JavaConverters._ object EnvironmentResourceDescriptionFactory { def create(): EnvironmentResourceDescription = new EnvironmentResourceDescription() } class Rich...
mit
datamade/elpc_bakken
ocr_extracted/W28513_text/page112.html
3012
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>W28513_text</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <div style="margin-left: auto; margin-right: auto; width: 800px; overflow: hidden;"> ...
mit
lems111/bittrex-node-client
node_modules/rijs/node_modules/rijs.components/dist/types/fn.js
1205
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = fn; var _includes = require('utilise/includes'); var _includes2 = _interopRequireDefault(_includes); var _client = require('utilise/client'); var _client2 = _interopRequireDefault(_client); var _all = require('utilise...
mit
ericmdev/php5-fann.dockerfile
Dockerfile
480
# Debian: PHP 5 (+ FANN) # # VERSION 0.0.1 # Pull the base image. FROM ericmdev/php5 # Set the author. MAINTAINER Eric Mugerwa <dev@ericmugerwa.com> # Set environment variables. ENV FILES config/ # Install packages. RUN apt-get update && apt-get install -y \ libfann-dev # Install pecl fann. RUN pecl install fa...
mit
jenavarro/AllRules
packages/custom/rules/public/controllers/rules.js
4812
'use strict'; /* jshint -W098 */ angular.module('mean.rules').controller('RulesController', ['$scope', '$stateParams', '$location', '$http','Global', 'Rules', 'MeanUser','Circles','Groups', function($scope, $stateParams, $location, $http, Global, Rules, MeanUser,Circles,Groups) { $scope.global = Global; $sco...
mit
Circular-Studios/Dash-Docs
api/v0.6.6/utility/awesomium/awe_jsobject_get_size.html
7672
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"/><!-- using block title in layout.dt--><!-- using block ddox.defs in ddox.layout.dt--><!-- using block ddox.title in ddox.layout.dt--> <title>Function awe_jsobject_get_size</title> <link rel="stylesheet" type="text/css" href="../../styles/ddox.css"/> <link r...
mit
RioSatria/ciptamedia
hibahcmb/409.md
2049
--- title: Gayaku date: 2011-09-16 11:08:00 +07:00 nohibah: 409 inisiator: Ifan Maulana lokasi: Depok dana: 2 Miliar Rupiah topik: Meretas batas – kebhinekaan bermedia lama: November 2011 – unlimited time deskripsi: Portal informasi dan jejaring sosial mengenai fashion dan gaya hidup orang-orang Indonesia masalah: In...
mit
shindochan/bashenv
scripts/mobilisaon.bash
40
#! /bin/bash sudo ifconfig en1 mtu 1200
mit
paradite/GestFly
js/app/utilities.js
4614
var utilities = (function(window, $){ /** * Draws a rounded rectangle using the current state of the canvas. * If you omit the last three params, it will draw a rectangle * outline with a 5 pixel border radius * @param {CanvasRenderingContext2D} ctx * @param {Number} x The top left x coordi...
mit
KomodoHQ/WeMojo
README.md
537
# WeMojo Node module for interfacing with Belkin Wemo devices. Heavily inspired by [wemonode](https://github.com/supsi/wemonode) but with a (hopefully) nicer API. ## Getting Started Install the module with: `npm install wemojo` ```javascript var WeMojo = require('wemojo'), Client = WeMojo.Client() Client.startD...
mit
microheart/microheart.github.io
_posts/Redis/2014-04-28-Redis_application.md
2799
--- layout: post title: Redis应用场景 category: Redis tags: Redis keywords: Redis,应用场景 description: --- ## 1.取最新N个数据的操作 比如典型的取网站的最新文章,通过下面方式,我们可以将最新的500条评论的ID放在Redis的List集合中,并将超出集合部分从数据库获取。 * 使用LPUSH latest.comments<ID>命令,向list集合中插入数据 * 插入完成后再用LTRIM latest.comments 0 500命令使其永远只保存最近500个ID * 然后我们在客户端获取某...
mit
darashi/gimlet-model
lib/gimlet/queryable.rb
1545
require 'forwardable' module Gimlet module Queryable module API extend Forwardable def select(options = {}) selecting = @instances options[:where].each do |attribute, operator, argument| selecting = selecting.select do |id, instance| instance[attribute].send(ope...
mit
Edzvu/Edzvu.github.io
M2Crypto-0.35.2/doc/conf.py
9150
# -*- coding: utf-8 -*- # # M2Crypto documentation build configuration file, created by # sphinx-quickstart on Thu Apr 20 11:15:12 2017. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # Al...
mit
apemost/Newq
src/Newq/Properties/AssemblyInfo.cs
902
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyTitle("Newq")] [assembly: AssemblyDescription("A new query builder for building SQL statements on .NET and Mono")] [assembly: AssemblyProduct("Newq")] [assembly: AssemblyCopyright("Copyright (c) 201...
mit
martiansideofthemoon/martiansideofthemoon.github.io
_posts/2016-12-22-zero-to-established.markdown
6528
--- layout: post title: "Zero to Established! - StackOverflow" date: 2016-12-22 06:00:55 +0530 tags: stackoverflow --- It's been a great winter month, and I've finally started my StackOverflow journey. I had a goal of reaching 1000 reputation by New Year's, but I've already surpassed it by 122 points (at this momen...
mit
GoC-Spending/data-corporations
html/234567159406.html
29406
<!DOCTYPE html> <!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" dir="ltr"> <!--<![endif]--> <!-- Usage: /eic/site/ccc-rec.nsf/tpl-eng/template-1col.html?Open...
mit
trustify/oroplatform
src/Oro/Bundle/PlatformBundle/Tests/Unit/Provider/PackageProviderTest.php
4084
<?php namespace Oro\Bundle\PlatformBundle\Tests\Unit\Provider; use Composer\Package\Package; use Oro\Bundle\PlatformBundle\Composer\LocalRepositoryFactory; use Oro\Bundle\PlatformBundle\Provider\PackageProvider; class PackageProviderTest extends \PHPUnit_Framework_TestCase { /** @var PackageProvider */ prote...
mit
graphql-java/graphql-java
src/main/java/graphql/analysis/QueryVisitorFieldArgumentEnvironment.java
706
package graphql.analysis; import graphql.PublicApi; import graphql.language.Argument; import graphql.language.Node; import graphql.schema.GraphQLArgument; import graphql.schema.GraphQLFieldDefinition; import graphql.schema.GraphQLSchema; import graphql.util.TraverserContext; import java.util.Map; @PublicApi public i...
mit
xiazemin/MyBlog
golang/2019/11/02/url.html
31906
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="Sci blog jekyll theme"> <meta name="author" content="AIR RAYA Group"> <link href='...
mit
ArcAwe/hazc
hazc_device.py
6518
#!/usr/local/bin/python3 from zeroconf import Zeroconf, ServiceInfo import socket import configparser from . import hazc_cmd # import pdb class hazc_device: #Forward constants NO_PARAM = hazc_cmd.NO_PARAM BOOL = hazc_cmd.BOOL FLOAT = hazc_cmd.FLOAT STRING = hazc_cmd.STRING INT = hazc_cmd....
mit
DataViva/dataviva-site
dataviva/apps/product/templates/product/graphs-trade-partner.html
16573
<div id="graphs-trade-partner" class="container"> <nav class="nav-graph col-xs-12 col-sm-3 col-md-3" > <h3>{%trans%}Preview{%endtrans%}:</h3> <div class="list-group panel"> <h4>{% trans %}Trade Balance{% endtrans %}</h4> <a href="#trade-balance-product" class="list-group-it...
mit
biola/buweb-content-models
spec/lib/buweb/department_spec.rb
10147
require 'spec_helper' def department_in_index?(d) Department.__elasticsearch__.refresh_index! Department.__elasticsearch__.search(query: { match: { '_id' => d.id.to_s } }).count == 1 end describe Department do let(:attrs) { {} } subject(:department) { build :department, attrs } # relationships it { shoul...
mit
tonirilix/test-express-mongoose-todo
doc/deploy/v2.sh
766
#!/bin/bash # Copy this script to $HOME and run it path=/srv/www/todo tmp=/srv/www/tmp echo 'Cloning repo from github...' git clone git@github.com:dreamerslab/express-todo-example.git $tmp echo '...done!' echo '' echo 'Removing development files...' sudo rm $tmp/README.md sudo rm -fr $tmp/doc echo '....
mit
russjohnson09/rdjgvus
twit.js
691
var c = require("./config").twitter; var Twit = require('twit'); //console.log(c); console.log(c.apiKey); console.log(c.apiSecret); console.log(c.accessToken); console.log(c.accessTokenSecret); var T = new Twit({ consumer_key: c.apiKey, consumer_secret: c.apiSecret, access_token: c.accessToken, acce...
mit
mikejong0815/Temp
app/routes.js
4755
// These are the pages you can go to. // They are all wrapped in the App component, which should contain the navbar etc // See http://blog.mxstbr.com/2016/01/react-apps-with-pages for more information // about the code splitting business import { getAsyncInjectors } from './utils/asyncInjectors'; const errorLoading = ...
mit
tasjs/fac
lib/core/core.js
1691
/** * Fac.js * (c) 2017 Owen Luke * https://github.com/tasjs/fac * Released under the MIT License. */ var copy = require('./copy'); var chain = require('./chain'); var super_ = require('./super'); var core = { new: function(options){ typeof options === 'string' && (options = {name: options}); var obj = cha...
mit
Asky314159/kitechan
UserInfo.cs
5514
using System; using System.Collections.Generic; using System.Drawing; using System.IO; using System.Net; using System.Threading.Tasks; using System.Xml; namespace Kitechan { public class UserInfo { public struct ImagePath { public string ImageUrl { get; set; } public st...
mit
alexph/victor
victor/vector.py
4717
from victor.exceptions import ( FieldValidationException, FieldTypeConversionError, FieldRequiredError, VectorInputTypeError ) class Field(object): required = True """Field is required and an exception will be raised if missing""" missing_value = None """Value to use when field is mis...
mit
shtse8/miningcore
src/MiningCore/Stratum/StratumError.cs
1708
/* Copyright 2017 Coin Foundry (coinfoundry.org) Authors: Oliver Weichhold (oliver@weichhold.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without l...
mit
CaioDonizetti/CurriculoOnline
index.html
17375
<!DOCTYPE html> <html> <head> <!--Import Google Icon Font--> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <!--Import materialize.css--> <link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection" /> <!--main.css--> <l...
mit
flericoin-project/flericoin
tests/TransfersTests/Tests.cpp
17519
// Copyright (c) 2011-2016 The Flericoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "Globals.h" #include "CryptoNoteCore/Account.h" #include "CryptoNoteCore/CryptoNoteFormatUtils.h" #include "CryptoN...
mit
G5/heroku_config_manager
lib/heroku_config_manager/version.rb
51
module HerokuConfigManager VERSION = "0.0.1" end
mit
jpmitchellpierson/nile.js
nileServer.js
907
const express = require('express'); const path = require('path'); const fs = require('fs'); const bodyParser = require('body-parser') // const formidable = require('formidable'); // const createTorrent = require('create-torrent'); // const WebTorrent = require('webtorrent'); const socketController = require('./socketCo...
mit
arunetm/ChakraCore_0114
lib/Parser/globals.cpp
627
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
mit
pipboy3000/count0.org
src/_posts/2013-12-08-dropbox-core-api-via-proxy.md
1042
--- layout: post title: Dropbox Core API(ruby)でproxyを使う categories: ruby --- Rubyの[Dropbox Core API](https://www.dropbox.com/developers/core)をproxy経由で使う方法です。 ドキュメントを読んでもproxyの設定方法は書かれていませんでした。しかし、Dorpbox Core APIはNet::HTTPを使っているので、環境変数に`http_proxy`が設定してあれば自動で使うようです。OSXやLinuxならば.bashrcあたりに書いておけばいいでしょう。 ``` bash export...
mit
cronelab/radroom
conversion/dcmtk/dcmrt/include/dcmtk/dcmrt/seq/drtrbos1.h
13828
/* * * Copyright (C) 2008-2012, OFFIS e.V. and ICSMED AG, Oldenburg, Germany * Copyright (C) 2013-2015, J. Riesmeier, Oldenburg, Germany * All rights reserved. See COPYRIGHT file for details. * * Header file for class DRTReferencedBolusSequenceInRTBeamsModule * * Generated automatically from DICOM PS 3.3-...
mit
simonmysun/praxis
TAIHAO2019/pub/SmallGame/AsFastAsYouCan2/f1862534f158512c17360214016a02c762a0a6259bfc63f3087e402218bca89f.html
550
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>18 --> 19</title> <link href="./../../assets/style.css" rel="stylesheet"> </head> <body> <h2>You have to be fast</h2> <a href="./975912234e0b6cd9df0835877320000d8468927c89f14baa534f8d244749b270.html">Teleport</a> <hr> ...
mit
regiluze/vim_mamba
README.md
296
# vim_mamba it's a simple vim plugin for [mamba]https://github.com/nestorsalceda/mamba BDD specs library it adds expects, doublex_expects and doublex import; and a bare spec structure to install it: just put the repository at ~/.vim/plugin/ to use it: in an empty python file execute: :Mambat
mit
emn178/Chart.PieceLabel.js
README.md
4708
# chartjs-plugin-labels Chart.js plugin to display labels on pie, doughnut and polar area chart. Original Chart.PieceLabel.js ## Demo [Demo](http://emn178.github.io/chartjs-plugin-labels/samples/demo/) ## Download [Compress](https://raw.github.com/emn178/chartjs-plugin-labels/master/build/chartjs-plugin-labels.min.js...
mit
newtheatre/history-project
_people/robert_bradley.md
67
--- title: Robert Bradley submitted: 2020-04-05 gender: male ---
mit
space-wizards/space-station-14
Content.Server/Explosion/Components/ExplosionLaunchedComponent.cs
1249
using Content.Server.Throwing; using Content.Shared.Acts; using Robust.Shared.GameObjects; using Robust.Shared.IoC; using Robust.Shared.Maths; namespace Content.Server.Explosion.Components { [RegisterComponent] public sealed class ExplosionLaunchedComponent : Component, IExAct { [Dependency] privat...
mit
wolfgangimig/joa
java/joa/src-gen/com/wilutions/mslib/office/impl/ODSOColumnImpl.java
1933
/* ** GENEREATED FILE - DO NOT MODIFY ** */ package com.wilutions.mslib.office.impl; import com.wilutions.com.*; @SuppressWarnings("all") @CoClass(guid="{C09B8C5A-A463-DB41-5DAE-69E7A5F7FCBC}") public class ODSOColumnImpl extends Dispatch implements com.wilutions.mslib.office.ODSOColumn { @DeclDISPID(16107438...
mit
fukuroder/bandlimited_sawtooth_synthesis
source/BLITSaw_processor.cpp
3004
/* * BLITSaw_processor.cpp * * Copyright (c) 2014, fukuroda (https://github.com/fukuroder) * Released under the MIT license */ #include "BLITSaw_processor.h" #include "BLITSaw_guids.h" #include "pluginterfaces/vst/ivstparameterchanges.h" #include <algorithm> namespace MyVst { // BLITSaw_processor...
mit
rossifederico/testanimaedulandingpage
v802.html
2236
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title></title> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootst...
mit