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 |
|---|---|---|---|---|---|
/*!
* vue-resource v1.5.3
* https://github.com/pagekit/vue-resource
* Released under the MIT License.
*/
'use strict';
/**
* Promises/A+ polyfill v1.1.4 (https://github.com/bramstein/promis)
*/
var RESOLVED = 0;
var REJECTED = 1;
var PENDING = 2;
function Promise$1(executor) {
this.state = PENDING;
this.val... | vuejs/vue-resource | dist/vue-resource.common.js | JavaScript | mit | 33,000 |
console.log('argv[0]: '+process.argv[0]);
console.log('argv[1]: '+process.argv[1]);
| AdonRain/neowheel | 1_hello/hello_2/hello_2_2.js | JavaScript | mit | 86 |
//------------------------------------------------------------------------------
// <auto-generated>
// このコードはツールによって生成されました。
// ランタイム バージョン:2.0.50727.8806
//
// このファイルへの変更は、以下の状況下で不正な動作の原因になったり、
// コードが再生成されるときに損失したりします。
// </auto-generated>
//----------------------------------------------------------... | bg1bgst333/Sample | aspnet/HtmlButton/ServerClick/src/HtmlButton_/HtmlButton_/Default.aspx.designer.cs | C# | mit | 1,548 |
# Copyright (C) 2009 Pascal Rettig.
require 'rss/2.0'
class Feed::RssRenderer < ParagraphRenderer
paragraph :feed
paragraph :view_rss
paragraph :rss_auto_discovery, :cache => true
def feed
paragraph_data = (paragraph.data || {}).symbolize_keys
@handler_info = get_handler_info(:feed,:rss,pa... | cykod/Webiva | vendor/modules/feed/app/controllers/feed/rss_renderer.rb | Ruby | mit | 5,899 |
'use strict';
var Crawler = require('../lib/crawler');
var expect = require('chai').expect;
var jsdom = require('jsdom');
var httpbinHost = 'localhost:8000';
describe('Errors', function() {
describe('timeout', function() {
var c = new Crawler({
timeout : 1500,
retryTimeout : 1000,
... | shedar/node-webcrawler | tests/errorHandling.test.js | JavaScript | mit | 4,772 |
using System;
using Xamarin.Forms;
using System.Collections.ObjectModel;
using System.Threading.Tasks;
using System.Linq;
namespace MyShop
{
public class StoresViewModel : BaseViewModel
{
readonly IDataStore dataStore;
public ObservableCollection<Store> Stores { get; set;}
public ObservableCollection<Grouping... | usmanm77/MyShoppe | MyShop/ViewModels/StoresViewModel.cs | C# | mit | 2,325 |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... | oliviertassinari/material-ui | packages/mui-icons-material/lib/PhotoSizeSelectActual.js | JavaScript | mit | 582 |
{% extends "layout.html" %}
{% block page_title %}
Personal details
{% endblock %}
{% block content %}
<main id="content" role="main">
{% include "../includes/phase_banner_alpha.html" %}
<form action="contact-details" method="#" class="form">
<div class="grid-row">
<div class="column-two-thirds">
<hea... | ballzy/apply-for-esa | app/views/alpha04/personal-details.html | HTML | mit | 4,089 |
#!/usr/bin/python
# convert LLVM GenAsmWriter.inc for Capstone disassembler.
# by Nguyen Anh Quynh, 2019
import sys
if len(sys.argv) == 1:
print("Syntax: %s <GenAsmWriter.inc> <Output-GenAsmWriter.inc> <Output-GenRegisterName.inc> <arch>" %sys.argv[0])
sys.exit(1)
arch = sys.argv[4]
f = open(sys.argv[1])
li... | capstone-rust/capstone-rs | capstone-sys/capstone/suite/synctools/asmwriter.py | Python | mit | 33,268 |
#!/usr/bin/env perl
use strict;
use warnings;
# Author: lh3
#
# This script is literally translated from the C version. It has two funtionalities:
#
# a) compute the length of the reference sequence contained in an alignment;
# b) collapse backward overlaps and generate consensus sequence and quality
#
# During the c... | AngieHinrichs/samtabix | examples/removeB.pl | Perl | mit | 6,126 |
const PlotCard = require('../../plotcard.js');
class RiseOfTheKraken extends PlotCard {
setupCardAbilities() {
this.interrupt({
when: {
onUnopposedWin: event => event.challenge.winner === this.controller
},
handler: () => {
this.game.addMe... | cryogen/gameteki | server/game/cards/02.1-TtB/RiseOfTheKraken.js | JavaScript | mit | 588 |
using System.Drawing;
using System.Drawing.Drawing2D;
static class DrawHelper
{
public static GraphicsPath CreateRoundRect(float x, float y, float width, float height, float radius)
{
GraphicsPath gp = new GraphicsPath();
gp.AddLine(x + radius, y, x + width - (radius * 2), y);
gp.AddAr... | uit-cs217-g11/smart-search | statics/external_tool/RyeTokenizer/project/UIManagers/DrawHelper.cs | C# | mit | 2,938 |
namespace Perspex.Controls
{
using Layout;
public class RightDocker : Docker
{
public RightDocker(Size availableSize) : base(availableSize)
{
}
public Rect GetDockingRect(Size sizeToDock, Margins margins, Alignments alignments)
{
var marginsCutout = marg... | DavidKarlas/Perspex | src/Perspex.Controls/DockPanel/RightDocker.cs | C# | mit | 705 |
class CreateCollectSalaries < ActiveRecord::Migration
def change
create_table :collect_salaries do |t|
t.belongs_to :user
t.decimal :money, :precision => 10, :scale => 2
t.date :collect_date
t.string :notes
t.timestamps null: false
end
end
end
| mumaoxi/contract_works_api | db/migrate/20160204101820_create_collect_salaries.rb | Ruby | mit | 286 |
<?php
/**
* Amon: Integrate FuelPHP with Amon Exception & Logging
*
* @package Amon
* @version v0.1
* @author Matthew McConnell
* @license MIT License
* @link http://github.com/maca134/fuelphp-amon
*/
Autoloader::add_core_namespace('Amon');
Autoloader::add_classes(array(
'Amon\\Error' ... | fuel-packages/fuel-amon | bootstrap.php | PHP | mit | 708 |
#! /usr/bin/env ruby
#
# <script name>
#
# DESCRIPTION:
# Get time series values from Graphite and create events based on values
#
# OUTPUT:
# plain text
#
# PLATFORMS:
# Linux
#
# DEPENDENCIES:
# gem: sensu-plugin
# gem: array_stats
#
# USAGE:
# #YELLOW
#
# NOTES:
#
# LICENSE:
# Copyright 2012 Ulf Mans... | dalesit/sensu-plugins-graphite | bin/check-graphite.rb | Ruby | mit | 17,644 |
#include "machineoperand.h"
#include "basicblock.h"
#include <cassert>
#include <iostream>
#include <new>
using namespace TosLang::BackEnd;
MachineOperand::MachineOperand() : mKind{ OperandKind::UNKNOWN } { }
MachineOperand::MachineOperand(const unsigned op, const OperandKind kind)
{
assert((kind == OperandKin... | faouellet/TosLang | TosLang/CodeGen/machineoperand.cpp | C++ | mit | 1,230 |
/*
This file contains the sigma-delta driver implementation.
*/
#include "platform.h"
#include "hw_timer.h"
#include "task/task.h"
#include "c_stdlib.h"
#include "pcm.h"
static const os_param_t drv_sd_hw_timer_owner = 0x70636D; // "pcm"
static void ICACHE_RAM_ATTR drv_sd_timer_isr( os_param_t arg )
{
cfg_t *... | devsaurus/nodemcu-firmware | app/pcm/drv_sigma_delta.c | C | mit | 2,905 |
module Packet
class Reactor
include Core
#set_thread_pool_size(20)
attr_accessor :fd_writers, :msg_writers,:msg_reader
attr_accessor :result_hash
attr_accessor :live_workers
#after_connection :provide_workers
def self.server_logger= (log_file_name)
@@server_logger = log_file_name
... | openwisp/packet-legacy | lib/packet/packet_master.rb | Ruby | mit | 5,702 |
<h3 class="title">How to Use</h3>
<h5 class="htu-content">
<ul class="list-blank text-center">
<li class="list-item-header first"><h3>1</h3></li>
<li>Add the AngularJS <a href="https://code.angularjs.org/1.2.16/angular-animate.min.js" target="_blank">ngAnimate</a> script to your project</li>
<li class="lis... | gidj02/ngAnimate.css | app/views/use.html | HTML | mit | 1,413 |
#!/bin/sh
tar -xf $INPUT_CODE && mv ping /ping
cd /ping && npm install
| di-unipi-socc/TosKeriser | data/examples/ping_pong-app/ping_pong/scripts/ping/create.sh | Shell | mit | 73 |
/*
* Copyright (c) 2017 Nathan Osman
*
* 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, publis... | nitroshare/qhttpengine | src/include/qhttpengine/socket.h | C | mit | 11,657 |
//
// Reflect.cs: Creates Element classes from an instance
//
// Author:
// Miguel de Icaza (miguel@gnome.org)
//
// Copyright 2010, Novell, Inc.
//
// Code licensed under the MIT X11 license
//
using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
using... | danmiser/MonoTouch.Dialog | MonoTouch.Dialog/Reflect.cs | C# | mit | 13,498 |
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using System.Web;
namespace Blog.Models
{
// You can add pro... | yangra/SoftUni | TechModule/Software Technologies/SoftUniBlog-CSharp-Admin/Blog/Models/ApplicationUser.cs | C# | mit | 1,041 |
<!DOCTYPE HTML>
<html lang="en-US" >
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=11; IE=10; IE=9; IE=8; IE=7; IE=EDGE" />
<title>名词解释 | EMP用户手册</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta nam... | RYTong/emp-doc | doc/get_started/overview/TermIntroduction.html | HTML | mit | 66,476 |
#!/usr/bin/env ruby
require './lib/metalbird/authenticators/twitter.rb'
url = 'https://api.twitter.com'
authenticator = Metalbird::Authenticator::Twitter.new(url)
authenticator.authenticate
| hubtee/post_publisher | bin/auth_twitter.rb | Ruby | mit | 192 |
Retrieves the original email in a thread, including headers and attachments, when the reporting user forwarded the original email not as an attachment.
You must have the necessary permissions in your email service to execute global search.
- EWS: eDiscovery
- Gmail: Google Apps Domain-Wide Delegation of Authority
##... | demisto/content | Packs/CommonPlaybooks/Playbooks/Get_Original_Email_-_Generic_README.md | Markdown | mit | 1,493 |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM8 17c-.55 0-1-.45-1-1v-5c0-.55.45-1 1-1s1 .45 1 1v5c0 .55-.45 1-1 1zm4 0c-.55 0... | oliviertassinari/material-ui | packages/mui-icons-material/lib/esm/AssessmentRounded.js | JavaScript | mit | 471 |
/*!
* Bootstrap v3.3.5 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
html {
font-family: sans-serif;
-webkit-text-size-adjust: 100%;
... | mobileads-com/landing_pages_spa | dev/landing/css/bootstrap.css | CSS | mit | 147,446 |
---
title: 'Cine este Robul suferind (Isaia 50:4-10)'
date: 28/02/2021
---
Dacă ar fi intenţionat să transmită doar informaţii, Isaia ar fi expus toate detaliile cu privire la Mesia dintr-odată. Dar, ca să înveţe, să convingă şi să îşi ajute audienţa să se întâlnească cu Robul Domnului, el creează o ţesătură bogată ... | imasaru/sabbath-school-lessons | src/ro/2021-01/10/02.md | Markdown | mit | 2,382 |
/**
* \file
*
* \brief Autogenerated API include file for the Atmel Software Framework (ASF)
*
* Copyright (c) 2012 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided t... | femtoio/femto-usb-blink-example | blinky/blinky/asf-3.21.0/sam/services/flash_efc/unit_tests/sam3sd8c_sam3s_ek2/iar/asf.h | C | mit | 3,661 |
#pragma once
#include "net/uri.hpp"
namespace http
{
using uri = net::uri;
}
| ruoka/net4cpp | src/http/uri.hpp | C++ | mit | 82 |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m.06 9.34v2.14c-.92.02-1.84-.31-2.54-1.01-1.12-1.12-1.3-2.8-.59-4.13l-1.1-1.1c-1.28 1.94-1.07 4.59.... | oliviertassinari/material-ui | packages/mui-icons-material/lib/esm/ChangeCircleTwoTone.js | JavaScript | mit | 1,065 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import logging, os
logging.basicConfig(level=logging.INFO)
from deepy.networks import RecursiveAutoEncoder
from deepy.trainers import SGDTrainer, LearningRateAnnealer
from util import get_data, VECTOR_SIZE
model_path = os.path.join(os.path.dirname(__file__), "models", "... | zomux/deepy | examples/auto_encoders/recursive_auto_encoder.py | Python | mit | 593 |
namespace StringExtensions
{
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Reflection;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
/// <summary>
/// Static class provi... | NikolaiMishev/Telerik-Academy | Module-2/High-Quality-Code/Code Documentation and Comments/Task 1. Code documentation/Program.cs | C# | mit | 16,083 |
<?php declare(strict_types=1);
namespace WyriMaps\Tests\BattleNet\Resource\Async\WorldOfWarcraft;
use ApiClients\Tools\ResourceTestUtilities\AbstractEmptyResourceTest;
use WyriMaps\BattleNet\Resource\Async\WorldOfWarcraft\EmptyQuest;
final class EmptyQuestTest extends AbstractEmptyResourceTest
{
public function ... | WyriMaps/php-battlenet-client | tests/Resource/Async/WorldOfWarcraft/EmptyQuestTest.php | PHP | mit | 467 |
# Gsp
[](http://travis-ci.org/viclm/gsp)
[](https://david-dm.org/viclm/gsp)
## Intro
Gsp encourages to use multiple git repositories for development and one subversion repository for produ... | viclm/gsp-deploy | README.md | Markdown | mit | 3,764 |
module.exports={A:{A:{"2":"K C G E B A WB"},B:{"2":"D u Y I M H"},C:{"1":"6 7","2":"0 1 2 3 UB z F J K C G E B A D u Y I M H N O P Q R S T U V W X w Z a b c d e f L h i j k l m n o p q r s t y SB RB","132":"v","578":"5 g"},D:{"1":"0 1 2 3 5 6 7 t y v g GB BB DB VB EB","2":"F J K C G E B A D u Y I M H N O P Q R S T U V ... | mattstryfe/theWeatherHub | node_modules/caniuse-lite/data/features/link-rel-preload.js | JavaScript | mit | 835 |
SVG.G = SVG.invent({
// Initialize node
create: 'g'
// Inherit from
, inherit: SVG.Container
// Add class methods
, extend: {
// Move over x-axis
x: function(x) {
return x == null ? this.transform('x') : this.transform({ x: x - this.x() }, true)
}
// Move over y-axis
, y: function(y) {... | albohlabs/svg.js | src/group.js | JavaScript | mit | 1,102 |
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Globalization;
using System.IO;
using System.Windows;
using System.Windows.Data;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Runtime.InteropServices;
namespace Wox
{
public class ImagePathConverter :... | Rovak/Wox | Wox/ImagePathConverter.cs | C# | mit | 7,522 |
--TEST--
/** test \n*/
--SKIPIF--
<?php
if (!@include_once('PhpDocumentor/phpDocumentor/DocBlock/Lexer.inc')) {
echo 'skip needs PhpDocumentor_DocBlock_Lexer class';
}
?>
--FILE--
<?php
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'setup.php.inc';
$result = $lexer->lex("/** test \n*/");
$phpt-... | webdevwilson/RabbitPHP | lib/phpdocs/Documentation/tests/DocBlock_Lexer/test_twoline.phpt | PHP | mit | 891 |
using System.Data.Entity.Migrations;
namespace Cake.EntityFramework.TestProject.Postgres.Migrations
{
public partial class V7 : DbMigration
{
public override void Up()
{
}
public override void Down()
{
}
}
} | louisfischer/Cake.EntityFramework | src/Cake.EntityFramework.TestProject.Postgres/Migrations/201601100202414_V7.cs | C# | mit | 269 |
---
layout: post
title: Objetos Validadores
date: 2017-07-03
permalink: /:title
description:
Veja como fazer validações utilizando Objetos ao invés de utilizar programação procedural.
image: /images/2017/photo-scott-webb-59043.jpg
categories:
- OO
tags:
- validação
keywords:
- freepascal
- fpc
- delphi
- ... | delfire/opp | _posts/2017/2017-07-03-objetos-validadores.md | Markdown | mit | 7,933 |
// This file is distributed under the BSD License.
// See "license.txt" for details.
// Copyright 2009-2012, Jonathan Turner (jonathan@emptycrate.com)
// Copyright 2009-2015, Jason Turner (jason@emptycrate.com)
// http://www.chaiscript.com
#ifndef CHAISCRIPT_BOXED_VALUE_HPP_
#define CHAISCRIPT_BOXED_VALUE_HPP_
#inclu... | spijdar/dayspring | src/server/chaiscript/dispatchkit/boxed_value.hpp | C++ | mit | 11,084 |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "lice... | loremipsumdolor/CastFast | src/com/amazonaws/auth/PropertiesCredentials.java | Java | mit | 4,679 |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in ... | loremipsumdolor/CastFast | src/com/amazonaws/services/s3/transfer/ObjectMetadataProvider.java | Java | mit | 1,511 |
//----------------------------------------------------------------------------------------------
// <copyright file="AppDeployment.cs" company="Microsoft Corporation">
// Licensed under the MIT License. See LICENSE.TXT in the project root license information.
// </copyright>
//-------------------------------------... | davidkline-ms/WindowsDevicePortalWrapper | WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.Shared/Core/AppDeployment.cs | C# | mit | 16,069 |
'use strict';
module.exports = function generate_format(it, $keyword) {
var out = ' ';
var $lvl = it.level;
var $dataLvl = it.dataLevel;
var $schema = it.schema[$keyword];
var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
var $... | Moccine/global-service-plus.com | web/libariries/bootstrap/node_modules/ajv/lib/dotjs/format.js | JavaScript | mit | 5,423 |
package org.luban.common.plugin;
import org.luban.common.network.URL;
/**
* 服务插件接口
*
* @author hexiaofeng
* @version 1.0.0
* @since 12-12-12 下午8:47
*/
public interface ServicePlugin {
/**
* 返回类型
*
* @return
*/
String getType();
/**
* 设置URL
*
* @param url
*/... | krisjin/common-base | luban-common/src/main/java/org/luban/common/plugin/ServicePlugin.java | Java | mit | 377 |
#!/usr/bin/env python2
"""Example of server-side computations used in global forest change analysis.
In this example we will focus on server side computation using NDVI and EVI
data. This both metrics are computed bands created by third party companies
or directly taken by the satellites.
NDVI and EVI are two metric... | ArchangelX360/EnvironmentalEventsDetector | computation/imagefetcher/examples/ndvi_difference.py | Python | mit | 2,028 |
require File.expand_path("../../../test_helper", __FILE__)
describe Flipflop::Strategies::DefaultStrategy do
before do
Flipflop::FeatureSet.current.replace do
Flipflop.configure do
feature :one, default: true
feature :two
end
end
end
describe "with defaults" do
subject do... | voormedia/flipflop | test/unit/strategies/default_strategy_test.rb | Ruby | mit | 1,218 |
require 'forwardable'
require 'puppet/node'
require 'puppet/resource/catalog'
require 'puppet/util/errors'
require 'puppet/resource/type_collection_helper'
# Maintain a graph of scopes, along with a bunch of data
# about the individual catalog we're compiling.
class Puppet::Parser::Compiler
extend Forwardable
i... | thejonanshow/my-boxen | vendor/bundle/ruby/2.3.0/gems/puppet-3.8.7/lib/puppet/parser/compiler.rb | Ruby | mit | 21,679 |
package nxt.http;
import nxt.Nxt;
import nxt.Transaction;
import nxt.util.Convert;
import org.json.simple.JSONObject;
import org.json.simple.JSONStreamAware;
import javax.servlet.http.HttpServletRequest;
import static nxt.http.JSONResponses.INCORRECT_TRANSACTION;
import static nxt.http.JSONResponses.MISSING_TRANSACT... | aspnmy/NasCoin | src/java/nxt/http/GetTransaction.java | Java | mit | 2,418 |
# ===================================================================
#
# Copyright (c) 2015, Legrandin <helderijs@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redi... | mchristopher/PokemonGo-DesktopMap | app/pylibs/win32/Cryptodome/Hash/keccak.py | Python | mit | 8,329 |
---
title: Kathryn Borel
summary: Writer and editor (The Believer, American Dad!)
categories:
- editor
- mac
- writer
---
### Who are you, and what do you do?
I am [Kathryn Borel, Jr](http://www.kathrynborel.com/ "Kathryn's website."). I am a former Canadian radio journalist (Canadian Broadcasting Corporation) and cu... | ivuk/usesthis | posts/2015-10-31-kathryn.borel.markdown | Markdown | mit | 2,594 |
module Octokit
class Client
module Gists
# List gists for a user or all public gists
#
# @param username [String] An optional user to filter listing
# @return [Array<Hashie::Mash>] A list of gists
# @example Fetch all gists for defunkt
# Octokit.gists('defunkt')
# @ex... | phatpenguin/boxen-belgarion | .bundle/ruby/1.9.1/gems/octokit-1.23.0/lib/octokit/client/gists.rb | Ruby | mit | 7,325 |
/** \file
* \brief GTK Driver
*
* See Copyright Notice in "iup.h"
*/
#ifndef __IUPGTK_DRV_H
#define __IUPGTK_DRV_H
#ifdef __cplusplus
extern "C" {
#endif
#define iupCOLORDoubleTO8(_x) ((unsigned char)(_x*255)) /* 1.0*255 = 255 */
#define iupCOLOR8ToDouble(_x) ((double)_x/255.0)
/* common */
gboolean iupgt... | ivanceras/iup-mirror | src/gtk/iupgtk_drv.h | C | mit | 3,548 |
/*body > section > section > section > div > section > div > div.row > div > div*/
fieldset.contact {
position: relative;
left: 6%;
}
.input {
position: relative;
z-index: 1;
display: inline-block;
margin: 1em;
max-width: 350px;
width: calc(100% - 2em);
vertical-align: top;
}
.inp... | mapping-slc/mapping-slc | modules/contacts/client/css/form-fields.css | CSS | mit | 4,847 |
require(
[
'gui/Button'
],
function (Button) {
return;
var button = new Button({
main: $('#ui-button')
});
button.render();
}
); | musicode/gui | demo/Popup.js | JavaScript | mit | 189 |
source $setup
tar -xf $src
mkdir build
cd build
../libsigsegv-$version/configure \
--host=$host \
--prefix=$out \
--enable-static=yes \
--enable-shared=no
make
make install
| jfranklin9000/urbit | nix/nixcrpkgs/pkgs/libsigsegv/builder.sh | Shell | mit | 185 |
---
title: Open source + periodismo: vía rápida a la innovación (1)
categories: [ Analisis, Innovación ]
layout: post
cover_image: srcc.png
excerpt: Asistimos a una eclosión de proyectos periodísticos que se han beneficiado
de lenguajes de programación, librerías y aplicaciones de software desarrolladas
con esa ... | miguelcarvajal/miguelcarvajal.github.com | _posts/2015-06-24-opensource-periodismo.md | Markdown | mit | 8,192 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Future</title>
<link rel="stylesheet" href="../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="Doc... | davehorton/drachtio-server | deps/boost_1_77_0/doc/html/thread/future.html | HTML | mit | 4,413 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AsanaNet
{
[Serializable]
public class AsanaTeam : AsanaObject, IAsanaData
{
[AsanaDataAttribute("name")]
public string Name { get; private set; }
// ----------------------------------... | jfjcn/AsanaNet | AsanaNet/Objects/AsanaTeam.cs | C# | mit | 656 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | tokera/TelerikAcademyHomeworks | CSharpPartOneHomeworks/ConditionalStatements/MultiplicationSign/Properties/AssemblyInfo.cs | C# | mit | 1,448 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="sr" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Fuguecoin</source>
<translation>О Fuguecoin-у</translation>
</me... | gjhiggins/fuguecoin-1 | src/qt/locale/bitcoin_sr.ts | TypeScript | mit | 103,421 |
load File.dirname(__FILE__) + '/production.rb'
if File.exists? File.dirname(__FILE__) + '/../application.local.rb'
require File.dirname(__FILE__) + '/../application.local.rb'
end | dtulibrary/gazo | config/environments/unstable.rb | Ruby | mit | 181 |
from typing import Dict
import tempfile
from dxlclient.client_config import DxlClientConfig
from dxlclient.client import DxlClient
from dxlclient.broker import Broker
from dxlclient.message import Event
import demistomock as demisto
from CommonServerPython import *
from CommonServerUserPython import *
INTEGRATION_NAM... | VirusTotal/content | Packs/McAfee_DXL/Integrations/McAfee_DXL/McAfee_DXL.py | Python | mit | 7,105 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Web.Http;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Serialization;
using UtilJsonApiSerializer.Serialization;
namespace UtilJsonApiSerializer
{
public class Configuration
{
priva... | FrontlineEducation/Util-JsonApiSerializer | Util-JsonApiSerializer/Configuration.cs | C# | mit | 3,191 |
module SlotMachine
# A Slot defines a slot in a slotted. A bit like a variable name but for objects.
#
# PS: for the interested: A "development" of Smalltalk was the
# prototype based language (read: JavaScript equivalent)
# called Self https://en.wikipedia.org/wiki/Self_(programming_language)
#
#... | salama/salama | lib/slot_machine/slot.rb | Ruby | mit | 1,579 |
---
order: 0
title: 基本用法
---
简单的步骤条。
````jsx
import { Steps } from 'antd';
const Step = Steps.Step;
ReactDOM.render(
<Steps current={1}>
<Step title="已完成" description="这里是多信息的描述" />
<Step title="进行中" description="这里是多信息的描述" />
<Step title="待运行" description="这里是多信息的描述" />
<Step title="待运行" descripti... | codering/ant-design | components/steps/demo/simple.md | Markdown | mit | 486 |
var GUID = (function () {
function _GUID() {
return UUIDcreatePart(4) +
UUIDcreatePart(2) +
UUIDcreatePart(2) +
UUIDcreatePart(2) +
UUIDcreatePart(6);
};
function UUIDcreatePart(length) {
var uuidpart = "";
for (var i = 0; i < length;... | storyclm/storyCLM.js | presentation/js/dataSource.js | JavaScript | mit | 3,648 |
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\log;
use Yii;
use yii\base\Component;
/**
* Logger records logged messages in memory and sends them to different targets if [[dispatcher]] is set.
*
... | yujiandong/simpleforum | core/vendor/yiisoft/yii2/log/Logger.php | PHP | mit | 13,222 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<title>Introduction to OpenFL | HaxeFlixel 2D Game Framework</title>
<meta name="description" content="HaxeFlixel ... | whilesoftware/haxeflixel.com | out/documentation/introduction-to-openfl/index.html | HTML | mit | 9,445 |
package com.github.scribejava.apis.examples;
import com.github.scribejava.apis.EtsyApi;
import com.github.scribejava.core.builder.ServiceBuilder;
import com.github.scribejava.core.model.OAuth1AccessToken;
import com.github.scribejava.core.model.OAuth1RequestToken;
import com.github.scribejava.core.model.OAuthRequest;
... | fernandezpablo85/scribe-java | scribejava-apis/src/test/java/com/github/scribejava/apis/examples/EtsyExample.java | Java | mit | 2,876 |
<?php
namespace Tapestry\Providers;
use Exception;
use Tapestry\Tapestry;
use Tapestry\Entities\Configuration;
use Tapestry\Modules\Kernel\DefaultKernel;
use Tapestry\Modules\Kernel\KernelInterface;
use League\Container\ServiceProvider\AbstractServiceProvider;
use League\Container\ServiceProvider\BootableServiceProvi... | tapestry-cloud/tapestry | src/Providers/ProjectKernelServiceProvider.php | PHP | mit | 2,379 |
<?php
namespace App;
use Illuminate\Support\Facades\Route;
/*
* Clearboard Routes
*/
Route::group(['middleware' => ['web']], function () {
Route::get('/', function() {
return view('clearboard.index.viewindex', ['forums' => Forum::all()]);
});
Route::get('/forum/{fid}-{_}', 'ForumController@vi... | clearboard/clearboard | app/Http/routes.php | PHP | mit | 2,024 |
(function() {
'use strict';
angular
.module('app.core')
.constant('STATIC_URL', '/static/js/');
})();
| gopar/OhMyCommand | apps/static/js/core/constants.js | JavaScript | mit | 127 |
<gd-annotation-app></gd-annotation-app>
| groupdocs-annotation/GroupDocs.Annotation-for-.NET | Demos/WebForms/src/client/apps/annotation/src/app/app.component.html | HTML | mit | 40 |
// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
//
// 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, co... | AvaloniaUI/AvaloniaEdit | src/AvaloniaEdit/Rendering/BackgroundGeometryBuilder.cs | C# | mit | 19,570 |
@font-face {
font-family: 'icomoon';
src:url('fonts/icomoon.eot?-ru2f3j');
src:url('fonts/icomoon.eot?#iefix-ru2f3j') format('embedded-opentype'),
url('fonts/icomoon.woff?-ru2f3j') format('woff'),
url('fonts/icomoon.ttf?-ru2f3j') format('truetype'),
url('fonts/icomoon.svg?-ru2f3j#icomoon') format('svg');
font... | wendellpbarreto/mcc-theme | assets/fonts/icomoon/style.css | CSS | mit | 749 |
namespace Nancy.Swagger.Tests
{
public class TestModel
{
public int SomeInt { get; set; }
public long SomeLong { get; set; }
public long? SomeNullableLong { get; set; }
}
} | khellang/Nancy.Swagger | test/Nancy.Swagger.Tests/TestModel.cs | C# | mit | 213 |
class Fitbit::Activity < Fitbit::Data
attr_accessor :activityId, :activityParentId, :activityParentName, :calories, :description,
:distance, :duration, :hasStartTime, :isFavorite, :logId, :name, :startTime, :steps
def initialize(activity_data, unit_measurement_mappings)
@activityId = activity_d... | whazzmaster/fitgem-client | app/models/fitbit/activity.rb | Ruby | mit | 1,937 |
$(document).ready(function(){
//Grabs url path
var url = window.location.pathname;
//Grabs current file name from URL
var url = url.substring(url.lastIndexOf('/')+1);
// now grab every link from the navigation
$('#navigation a').each(function(){
//Grab the current elements href tag value
var link = $(this).attr("href... | sasd13/symfony | web/bundles/mywebsiteweb/js/active.js | JavaScript | mit | 480 |
支持修改民法! 不要workaround!
| RainbowEngineer/taiwan_love_wins | signatures/signed_by_solringlin.md | Markdown | mit | 38 |
.urank-docviewer-container-default {
background: -webkit-linear-gradient(top, rgba(175, 175, 175, 1), rgba(170, 170, 170, 1));
box-shadow: inset .1em .1em .5em #aaa, inset -.1em -.1em .5em #aaa;
}
| cecidisi/uRank | css/urank-blocks-default.css | CSS | mit | 208 |
<!-- begin:navbar -->
<div class="maintainEvent">
<nav id="top" class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle... | DemidovVladimir/eventi | public/parts/maintainEvents.html | HTML | mit | 6,509 |
.timbr_highlight {
border-radius: 4px 4px 4px 4px;
-moz-border-radius: 4px 4px 4px 4px;
-webkit-border-radius: 4px 4px 4px 4px;
}
.timbr_border1 {
border: 3px dashed #ff0000;
}
.timbr_border2 {
border: 3px dashed #ff0099;
}
.timbr_border3 {
border: 3px dashed #a900b8;
}
.timbr_border4 {
border: 3px dashed #... | lvyachao/Timbr_V1 | public/js/inject/injectSearch/build.css | CSS | mit | 740 |
var fixDate = function(date) {
return date.Format('2006-01-02 15:04:05');
};
var entries = executeCommand('getEntries', {});
dbotCommands = [];
userCommands = [];
for (var i = 0; i < entries.length; i++) {
if (typeof entries[i].Contents == 'string' && entries[i].Contents.indexOf('!') === 0 && entries[i].Conte... | demisto/content | Packs/CommonScripts/Scripts/ListExecutedCommands/ListExecutedCommands.js | JavaScript | mit | 1,692 |
public class A extends B {
public A() {}
}
| gregwym/joos-compiler-java | testcases/a2/Je_4_ClassExtendsCyclicClass/A.java | Java | mit | 47 |
<?php
// AdminBundle:Inquiry:inquiry.html.twig
return array (
);
| sanofuzir/Royaltransfer.si | app/cache/prod/assetic/config/6/6caf06a2425699c446204888d8d22119.php | PHP | mit | 66 |
<!doctype html>
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]-->
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<!... | lisajennykrieg/lisajennykrieg.github.io | _layouts/post_heb.html | HTML | mit | 2,738 |
package easyupload.entity;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
@Entity
public class FileUpload {
public FileUpload(String filename, byte[] file, String mimeType) {
this.file = file;
this.filename = filename;
this.mimeType = mimeType... | vberbenetz/EasyUpload | Backend/src/main/java/easyupload/entity/FileUpload.java | Java | mit | 936 |
# guh Changes
## 2.0.1
- Updated typings to match Typings 1.0
## 2.0.0
- Renamed from Basis to guh
- Rewrite from the ground-up
- Moved build system core to `guh-core` package
- Switched from LiveReload to BrowserSync
- Switched from Ruby Sass to libsass
- Now requires Node ^5.0
- More flexible configu... | LPGhatguy/basis | CHANGES.md | Markdown | mit | 801 |
"""Tests for wheel binary packages and .dist-info."""
import os
import pytest
from mock import patch, Mock
from pip._vendor import pkg_resources
from pip import pep425tags, wheel
from pip.exceptions import InvalidWheelFilename, UnsupportedWheel
from pip.utils import unpack_file
def test_get_entrypoints(tmpdir):
... | habnabit/pip | tests/unit/test_wheel.py | Python | mit | 14,091 |
# Camera
```sh
user@server:~$ nano ~/.homeassistant/configuration.yaml
```
```
camera:
- platform: generic
name: HikvisionCamImage
still_image_url: http://10.0.74.78/Streaming/channels/1/picture
username: admin
password: 12345
- platform: generic
name: DlinkImage
still_image_url: http://ad... | xe1gyq/veracruz | Edzna/documentation/HomeAssistantCamera.md | Markdown | mit | 450 |
<?php
/*
* This file is part of the PHPExifTool package.
*
* (c) Alchemy <support@alchemy.fr>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPExiftool\Driver\Tag\MIEGeo;
use JMS\Serializer\Annotation\ExclusionPolicy... | bburnichon/PHPExiftool | lib/PHPExiftool/Driver/Tag/MIEGeo/Country.php | PHP | mit | 777 |
'use strict';
var canUseDOM = require('./canUseDOM');
var one = function() {
};
var on = function() {
};
var off = function() {
};
if (canUseDOM) {
var bind = window.addEventListener ? 'addEventListener' : 'attachEvent';
var unbind = window.removeEventListener ? 'removeEventListener' : 'detachEvent';
var prefix... | minwe/amazeui-react | src/utils/Events.js | JavaScript | mit | 1,693 |
'use strict';
describe('angular', function() {
var element;
afterEach(function(){
dealoc(element);
});
describe('case', function() {
it('should change case', function() {
expect(lowercase('ABC90')).toEqual('abc90');
expect(manualLowercase('ABC90')).toEqual('abc90');
expect(uppercase... | rpanjwani/angular.js | test/AngularSpec.js | JavaScript | mit | 30,438 |
<!--
@license
Copyright (c) 2016 The Jviz Project Authors. All rights reserved.
The Jviz Project is under the MIT License. See https://github.com/jviz/jviz/blob/dev/LICENSE
-->
<!-- Import components -->
<link rel="import" href="../../../polymer/polymer.html">
<link rel="import" href="../../../jviz-styles/jviz-styles.... | biowt/jviz | elements/jviz-table/jviz-table.html | HTML | mit | 24,955 |
/**
* \file
*
* \brief Autogenerated API include file for the Atmel Software Framework (ASF)
*
* Copyright (c) 2012 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided t... | femtoio/femto-usb-blink-example | blinky/blinky/asf-3.21.0/sam/drivers/pmc/unit_tests/sam4e16e_sam4e_ek/iar/asf.h | C | mit | 3,334 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.