code stringlengths 3 1.01M | repo_name stringlengths 5 116 | path stringlengths 3 311 | language stringclasses 30
values | license stringclasses 15
values | size int64 3 1.01M |
|---|---|---|---|---|---|
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... | tucnak/telebot | api.go | GO | mit | 5,082 |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | rishii7/vscode | src/vs/base/parts/tree/browser/treeDnd.ts | TypeScript | mit | 1,682 |
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... | nextgensparx/quantum-router | src/vue-router/index.js | JavaScript | mit | 1,330 |
/**
* 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 ... | fjz13/Medusa | External/openal/Alc/effects/modulator.c | C | mit | 10,189 |
<?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... | mpay24/mpay24-php | src/Responses/AbstractPaymentResponse.php | PHP | mit | 2,290 |
#!/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... | jrg365/gpytorch | test/examples/test_sgpr_regression.py | Python | mit | 6,354 |
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... | bradylove/wocket | lib/wocket/bindable.rb | Ruby | mit | 353 |
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... | stoiandan/msg-code | Marius/Day6/src/main/java/test/Test.java | Java | mit | 3,349 |
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('../... | Gargol/Ghost | core/server/api/v2/themes.js | JavaScript | mit | 7,109 |
# linkedin-profile-retrieve
Retrieve linkedin profile with just give a linkedin profile URL
| bakat/linkedin-profile-retrieve | README.md | Markdown | mit | 92 |
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">
... | z81/PolarOS_Next | src/components/Elements/NavGroup/NavGroup.js | JavaScript | mit | 397 |
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++) {
... | Rikmuld/Atlas | public/scripts/libs/plena/math.js | JavaScript | mit | 11,693 |
<!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>
... | kuhlenh/port-to-core | Reports/gr/griffin.container.mvc5.1.0.2/Griffin.Container.Mvc5-net40.html | HTML | mit | 23,153 |
// 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... | VKCOM/vk-java-sdk | sdk/src/main/java/com/vk/api/sdk/objects/messages/responses/GetChatFieldsResponse.java | Java | mit | 5,808 |
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... | AVinitzca/0FPS | TGC.Group/Model/Entities/EntityPlayerItemNightVisionDevice.cs | C# | mit | 695 |
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,... | gh6-team/less-homelessness-api | src/main/java/svc/managers/UserManager.java | Java | mit | 431 |
<?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
})... | phpchap/symfony14-beauty-salon | apps/frontend/modules/content/templates/gallerySuccess.php | PHP | mit | 2,587 |
<?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... | Hiroto-K/HkApps | app/Http/Middleware/HttpsProtocol.php | PHP | mit | 837 |
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... | moonik/conqueror | src/main/java/conqueror/security/StatelessAuthenticationFilter.java | Java | mit | 1,573 |
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... | shaunak1111/material2 | src/lib/button/button.spec.ts | TypeScript | mit | 9,914 |
<!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... | AfricanUhambo/AfricanUhambo.github.io | categories/summer-2011/index.html | HTML | mit | 13,761 |
require "fanny_pack/version"
require "fanny_pack/assets"
FannyPack::Assets::Sprockets.auto_detect | polleverywhere/fannypack | lib/fanny_pack.rb | Ruby | mit | 98 |
'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/... | V4Fire/Client | build/stylus/ds/plugins.js | JavaScript | mit | 7,150 |
/*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... | krisachai/GelfLogger | src/org/graylog2/GelfMessage.java | Java | mit | 8,476 |
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... | alabeduarte/mypodcasts-android | app/src/main/java/com/mypodcasts/support/injection/ImageLoaderProvider.java | Java | mit | 506 |
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(... | diasdavid/issue-tracker | db/models/meta.js | JavaScript | mit | 873 |
<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>... | psionin/smartcoin | src/qt/locale/bitcoin_hu.ts | TypeScript | mit | 52,718 |
"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... | ice-services/moleculer | test/unit/strategies/random.spec.js | JavaScript | mit | 489 |
<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> | SafiStudio/LaravelGenerators | templates/elements/inputs/text.php | PHP | mit | 313 |
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... | snehasp13/main | src/main/java/seedu/address/logic/commands/MarkDeadlineUnfinishedCommand.java | Java | mit | 1,602 |
'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... | jamesynz/mapp | public/modules/core/controllers/home.client.controller.js | JavaScript | mit | 952 |
#!/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... | rodrixcornell/bin | check_git_push.sh | Shell | mit | 3,134 |
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... | FinchYang/test | AecPrivateCloud.ALL/Client/SimulaDesign.WPFCustomUI/Converters/ShadowConverter.cs | C# | mit | 2,398 |
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 = '... | astex/nbody.js | vector.js | JavaScript | mit | 2,770 |
/*
* 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... | hathach/tinyusb | examples/device/cdc_dual_ports/src/usb_descriptors.c | C | mit | 9,553 |
// -----------------------------------------------------------------------
// <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... | nathankmiller/NFLToy | Conversion/Offense/PuntConverter.cs | C# | mit | 3,555 |
require 'rails_helper'
RSpec.describe SoundcloudController, type: :controller do
end
| rorykoehler/soundcloud_radio_channels | spec/controllers/soundcloud_controller_spec.rb | Ruby | mit | 87 |
# frozen_string_literal: true
module DropletKit
class Links < BaseModel
attribute :myself
attribute :first
attribute :next
attribute :prev
attribute :last
end
end
| digitalocean/droplet_kit | lib/droplet_kit/models/links.rb | Ruby | mit | 188 |
### 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.... | frag-o-matic/back2BASIC | OldCode/README.md | Markdown | mit | 2,234 |
// 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... | mooming/hardbopengine | Code/System/ComponentSystem.h | C | mit | 3,775 |
<!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... | 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 | HTML | mit | 8,467 |
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;... | sarastik/coin-counter | static/styles.css | CSS | mit | 655 |
<!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... | GMcD/generator-cordovum | app/templates/app/jasmine.html | HTML | mit | 346 |
---
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... | beerlington/beerlington.github.com | _posts/2011-07-25-building-a-csv-renderer-in-rails-3.markdown | Markdown | mit | 9,905 |
/**
* 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... | tygarimew/Mana-Haven | global/js/auto_suggest.js | JavaScript | mit | 12,043 |
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,... | farity/farity | Farity.Tests/FilterTests.cs | C# | mit | 745 |
"""
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... | pattu777/LearningDjango | apps/apps/settings.py | Python | mit | 3,307 |
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... | zhanghedr/design-pattern | src/main/java/com/zhanghedr/mvc/User.java | Java | mit | 518 |
<?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... | fcanbolat/ponscoin | src/qt/locale/bitcoin_bs.ts | TypeScript | mit | 96,738 |
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... | JinkiJung/PAUT | VRAT/vrat/Assets/Editor/NoesisGUI/NoesisUpdater.cs | C# | mit | 15,876 |
<?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();
... | matudelatower/logiautos | src/VehiculosBundle/Tests/Controller/TipoDanioInternoControllerTest.php | PHP | mit | 1,980 |
#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... | bolatov/contests | codeforces.ru/cf183/p4.cpp | C++ | mit | 1,861 |
# 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... | Sorsly/subtle | google-cloud-sdk/lib/surface/spanner/databases/create.py | Python | mit | 2,377 |
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.... | sdb1228/chess | app/controllers/home_controller.rb | Ruby | mit | 1,377 |
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);*/
}
... | fairesy/fairesy.github.io | projects/prismof/handmaiden.css | CSS | mit | 509 |
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... | AlmasB/FXGLGames | GeometryWars/src/main/java/com/almasb/fxglgames/geowars/component/MineComponent.java | Java | mit | 1,735 |
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... | sisioh/aws4s | aws4s-eb/src/main/scala/org/sisioh/aws4s/eb/model/RichEnvironmentResourceDescription.scala | Scala | mit | 2,727 |
<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;">
... | datamade/elpc_bakken | ocr_extracted/W28513_text/page112.html | HTML | mit | 3,012 |
'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... | lems111/bittrex-node-client | node_modules/rijs/node_modules/rijs.components/dist/types/fn.js | JavaScript | mit | 1,205 |
# 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... | ericmdev/php5-fann.dockerfile | Dockerfile | Dockerfile | mit | 480 |
'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... | jenavarro/AllRules | packages/custom/rules/public/controllers/rules.js | JavaScript | mit | 4,812 |
<!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... | Circular-Studios/Dash-Docs | api/v0.6.6/utility/awesomium/awe_jsobject_get_size.html | HTML | mit | 7,672 |
---
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... | RioSatria/ciptamedia | hibahcmb/409.md | Markdown | mit | 2,049 |
#! /bin/bash
sudo ifconfig en1 mtu 1200
| shindochan/bashenv | scripts/mobilisaon.bash | Shell | mit | 40 |
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... | paradite/GestFly | js/app/utilities.js | JavaScript | mit | 4,614 |
# 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... | KomodoHQ/WeMojo | README.md | Markdown | mit | 537 |
---
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
* 然后我们在客户端获取某... | microheart/microheart.github.io | _posts/Redis/2014-04-28-Redis_application.md | Markdown | mit | 2,799 |
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... | darashi/gimlet-model | lib/gimlet/queryable.rb | Ruby | mit | 1,545 |
# -*- 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... | Edzvu/Edzvu.github.io | M2Crypto-0.35.2/doc/conf.py | Python | mit | 9,150 |
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... | apemost/Newq | src/Newq/Properties/AssemblyInfo.cs | C# | mit | 902 |
---
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... | martiansideofthemoon/martiansideofthemoon.github.io | _posts/2016-12-22-zero-to-established.markdown | Markdown | mit | 6,528 |
<!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... | GoC-Spending/data-corporations | html/234567159406.html | HTML | mit | 29,406 |
<?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... | trustify/oroplatform | src/Oro/Bundle/PlatformBundle/Tests/Unit/Provider/PackageProviderTest.php | PHP | mit | 4,084 |
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... | graphql-java/graphql-java | src/main/java/graphql/analysis/QueryVisitorFieldArgumentEnvironment.java | Java | mit | 706 |
<!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='... | xiazemin/MyBlog | golang/2019/11/02/url.html | HTML | mit | 31,906 |
#!/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.... | ArcAwe/hazc | hazc_device.py | Python | mit | 6,518 |
<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... | DataViva/dataviva-site | dataviva/apps/product/templates/product/graphs-trade-partner.html | HTML | mit | 16,573 |
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... | biola/buweb-content-models | spec/lib/buweb/department_spec.rb | Ruby | mit | 10,147 |
#!/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 '.... | tonirilix/test-express-mongoose-todo | doc/deploy/v2.sh | Shell | mit | 766 |
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... | russjohnson09/rdjgvus | twit.js | JavaScript | mit | 691 |
// 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 = ... | mikejong0815/Temp | app/routes.js | JavaScript | mit | 4,755 |
/**
* 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... | tasjs/fac | lib/core/core.js | JavaScript | mit | 1,691 |
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... | Asky314159/kitechan | UserInfo.cs | C# | mit | 5,514 |
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... | alexph/victor | victor/vector.py | Python | mit | 4,717 |
/*
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... | shtse8/miningcore | src/MiningCore/Stratum/StratumError.cs | C# | mit | 1,708 |
<!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... | CaioDonizetti/CurriculoOnline | index.html | HTML | mit | 17,375 |
// 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... | flericoin-project/flericoin | tests/TransfersTests/Tests.cpp | C++ | mit | 17,519 |
module HerokuConfigManager
VERSION = "0.0.1"
end
| G5/heroku_config_manager | lib/heroku_config_manager/version.rb | Ruby | mit | 51 |
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... | jpmitchellpierson/nile.js | nileServer.js | JavaScript | mit | 907 |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... | arunetm/ChakraCore_0114 | lib/Parser/globals.cpp | C++ | mit | 627 |
---
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... | pipboy3000/count0.org | src/_posts/2013-12-08-dropbox-core-api-via-proxy.md | Markdown | mit | 1,042 |
/*
*
* 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-... | cronelab/radroom | conversion/dcmtk/dcmrt/include/dcmtk/dcmrt/seq/drtrbos1.h | C | mit | 13,828 |
<!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>
... | simonmysun/praxis | TAIHAO2019/pub/SmallGame/AsFastAsYouCan2/f1862534f158512c17360214016a02c762a0a6259bfc63f3087e402218bca89f.html | HTML | mit | 550 |
# 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
| regiluze/vim_mamba | README.md | Markdown | mit | 296 |
# 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... | emn178/Chart.PieceLabel.js | README.md | Markdown | mit | 4,708 |
---
title: Robert Bradley
submitted: 2020-04-05
gender: male
---
| newtheatre/history-project | _people/robert_bradley.md | Markdown | mit | 67 |
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... | space-wizards/space-station-14 | Content.Server/Explosion/Components/ExplosionLaunchedComponent.cs | C# | mit | 1,249 |
/* ** 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... | wolfgangimig/joa | java/joa/src-gen/com/wilutions/mslib/office/impl/ODSOColumnImpl.java | Java | mit | 1,933 |
/*
* 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... | fukuroder/bandlimited_sawtooth_synthesis | source/BLITSaw_processor.cpp | C++ | mit | 3,004 |
<!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... | rossifederico/testanimaedulandingpage | v802.html | HTML | mit | 2,236 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.