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 domain
import (
"flag"
)
type Config struct {
DockerAPIEndpoint string
VulcandAPIEndpoint string
HostIP string
}
func (config *Config) InstallFlags() {
flag.StringVar(&config.DockerAPIEndpoint, "d", "/var/run/docker.sock", "Docker API endpoint")
flag.StringVar(&config.VulcandAPIEndpoint, "... | acazau/dvs | domain/common.go | GO | mit | 453 |
FROM alpine:3.9
ARG BUILD_DATE
ARG VCS_REF
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-url="https://github.com/phpearth/docker-php.git" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.schema-version="1.0" \
org.label-schema.vendor="PHP.earth" \
org.label-s... | php-earth/docker-php | docker/7.3-litespeed.Dockerfile | Dockerfile | mit | 2,070 |
<?php
namespace rock\sanitize\rules;
class RemoveTags extends Rule
{
/**
* @inheritdoc
*/
public function sanitize($input)
{
return is_string($input) ? filter_var($input, FILTER_SANITIZE_STRING, FILTER_FLAG_NO_ENCODE_QUOTES) : $input;
}
} | romeOz/rock-sanitize | src/rules/RemoveTags.php | PHP | mit | 276 |
/*
* This file is part of the UnTech Editor Suite.
* Copyright (c) 2016 - 2021, Marcus Rowe <undisbeliever@gmail.com>.
* Distributed under The MIT License: https://opensource.org/licenses/MIT
*/
#pragma once
#include "imgui.h"
namespace UnTech::Gui {
class AnimationTimer {
private:
float _time;
static_... | undisbeliever/untech-editor | src/gui/animation-timer.h | C | mit | 4,153 |
import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import Collapse from '../Collapse';
import withStyles from '../styles/withStyles';
export const styles = theme => ({
/* Styles applied to the root element. */
root: {
marginTop: 8,
marginLeft: 12, // half icon
paddi... | kybarg/material-ui | packages/material-ui/src/StepContent/StepContent.js | JavaScript | mit | 3,312 |
/*
HTS221.cpp - HTS221 library for Aistin ATMega
This program is free software under the MIT License (MIT)
Copyright 2015 iProtoXi Oy
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 witho... | iProtoXi/Aistin-arduino-examples | libraries/aistin/HTS221.cpp | C++ | mit | 3,699 |
version https://git-lfs.github.com/spec/v1
oid sha256:d5cc128e23de4db1491cefafea31b5214603d86c06f1a6748cde6e53907b6a95
size 4880
| xiangzhuyuan/cron-jlpt | jlpt/288807773129079274432992910168785584342.html | HTML | mit | 129 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_65) on Sun Jun 29 05:13:55 IDT 2014 -->
<TITLE>
casimir.cryptoAPI
</TITLE>
<META NAME="date" CONTENT="2014-06-29">
<LINK REL ="stylesheet" TYPE="te... | thehobbit85/coinpowers | javadoc/casimir/cryptoAPI/package-frame.html | HTML | mit | 953 |
package org.vitrivr.cineast.api.websocket.handlers.queries;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.concurrent.CompletableFuture;
import java.util.stream.Collectors;
import org.eclipse.jetty.websocket.api.Session;
import org.vitrivr.cineast.api.messages.query.SegmentQu... | vitrivr/cineast | cineast-api/src/main/java/org/vitrivr/cineast/api/websocket/handlers/queries/SegmentQueryMessageHandler.java | Java | mit | 3,210 |
FROM nginx
MAINTAINER Octoblu <docker@octoblu.com>
EXPOSE 80
COPY . /usr/share/nginx/html
| octoblu/vote-octoblu-com | Dockerfile | Dockerfile | mit | 91 |
#home {
border: 2px solid #CCCCCC;
background-color: #DDDDDD;
margin: 42px auto;
padding: 21px;
width: 42%;
}
| francoiscolas/vane | template/public/css/home/index.css | CSS | mit | 130 |
package keyapi
import (
"bytes"
"crypto/tls"
"crypto/x509"
"errors"
"io/ioutil"
"log"
"net"
"net/http"
"net/http/httptest"
"strings"
"testing"
"time"
"github.com/sipb/homeworld/platform/keysystem/keyserver/account"
"github.com/sipb/homeworld/platform/keysystem/keyserver/authorities"
"github.com/sipb/ho... | sipb/homeworld | platform/keysystem/keyserver/keyapi/api_test.go | GO | mit | 16,533 |
<?php
declare(strict_types=1);
namespace BEAR\Resource\Annotation;
use Attribute;
use Doctrine\Common\Annotations\Annotation\NamedArgumentConstructor;
use Ray\Di\Di\Qualifier;
/**
* @Annotation
* @Target("METHOD")
* @Qualifier
* @NamedArgumentConstructor
*/
#[Attribute(Attribute::TARGET_METHOD), Qualifier]
fin... | bearsunday/BEAR.Resource | src/Annotation/ContextScheme.php | PHP | mit | 485 |
var fs = require("fs");
var http = require("http");
var fileName = __dirname + "/ipsum.txt";
var server = http.createServer(function (req, res) {
fs.exists(fileName, function(exists) {
if (exists) {
fs.stat(fileName, function(error, stats) {
if (error) {
throw error;
}
if (stats.isFile()) {
... | itkoren/Lets-Node-exp-streams-pipe | fileAsync2.js | JavaScript | mit | 642 |
---
---
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>StateMatcher | @uirouter/core</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" hre... | ui-router/ui-router.github.io | _core_docs/5.0.21/classes/state.statematcher.html | HTML | mit | 26,523 |
angular
.module('ScheduleModule')
.controller('DialogController',
function($scope, $rootScope, $mdDialog, scheduleHourService, orientation, users, user, newScheduleHour,
saveEnum, serverService, authorityEnum, userService) {
var self = this;
var workplaces = $ro... | Nandtel/ScheduleService | src/main/webapp/js/app/controller/dialogController.js | JavaScript | mit | 6,328 |
create function uac.check_group_parents() returns trigger as $$
begin
perform 1 from uac.groups
where array[group_id]<@(new.group_id || "group".parents(new.group_id))
and user_name=new.user_name;
if found then
return null;
end if;
return new;
end $$ language plpgsql stable;
create function uac.role_id(... | skuapso/psql | sql/functions/07.uac.sql | SQL | mit | 1,298 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
<title>Reference</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head>
<body>
<div id="conta... | airstruck/luigi | doc/widget types/stepper.html | HTML | mit | 2,385 |
<?php
/**
* Created by PhpStorm.
* User: jonasse
* Date: 05.03.2015
* Time: 14:55
*/
namespace Tixi\ApiBundle\Interfaces\Dispo;
/**
* Class DrivingAssertionEditDTO
* @package Tixi\ApiBundle\Interfaces\Dispo
*/
class DrivingAssertionEditDTO {
public $driverId; // integer
publi... | Martin-Jonasse/sfitixi | src/Tixi/ApiBundle/Interfaces/Dispo/DrivingAssertionEditDTO.php | PHP | mit | 745 |
\hypertarget{namespacegft_1_1Image32}{\section{gft\-:\-:Image32 Namespace Reference}
\label{namespacegft_1_1Image32}\index{gft\-::\-Image32@{gft\-::\-Image32}}
}
\subsection*{Classes}
\begin{DoxyCompactItemize}
\item
struct \hyperlink{structgft_1_1Image32_1_1__image32}{\-\_\-image32}
\end{DoxyCompactItemize}
\subsecti... | ademirtc/bandeirantes | lib/gft/doc/latex/namespacegft_1_1Image32.tex | TeX | mit | 13,529 |
+++
date = "2016-10-26T10:49:04+11:00"
title = "Bag Data Structure in Golang"
+++
A bag is a container of non-unique items. Bags are defined by the following
operations *Length*, *Add*, *Delete* and *Find*. Bags often also need to support
*FindAll*.
Bags can be ordered or un-ordered. This post will be discussing un-o... | tcharding/tobin.cc | content/blog/bag.md | Markdown | mit | 2,997 |
import unittest
import unittest.mock as mock
import dice
import dice_config as dcfg
import dice_exceptions as dexc
class DiceInputVerificationTest(unittest.TestCase):
def test_dice_roll_input_wod(self):
examples = {'!r 5':[5, 10, None, 10, 8, 'wod', None],
'!r 2000':[2000, 10, None, 10,... | brmedeiros/dicey9000 | tests.py | Python | mit | 7,240 |
//
// CompanyViewHelper.h
// TLChat
//
// Created by 戴王炯 on 4/26/16.
// Copyright © 2016 李伯坤. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface CompanyViewHelper : NSObject
@property (nonatomic, strong) NSMutableArray *companyData;
@property (nonatomic, strong) NSMutableArray *funData;
@end
| dwjdwj1216/xiaoYouBang | TLChat/Business/CompanyViewHelper.h | C | mit | 333 |
package org.icechamps.lava;
/**
* User: Robert.Diaz
* Date: 3/22/13
* Time: 11:12 AM
*/
public class PetOwner implements Comparable<PetOwner> {
public Person person;
public Pet pet;
public PetOwner(Person person, Pet pet) {
this.person = person;
this.pet = pet;
}
@Override
... | metaldrummer610/Lava | src/test/java/org/icechamps/lava/PetOwner.java | Java | mit | 1,489 |
<?php
/**
* Export database and sanitise emails and other sensitive information
*/
if(php_sapi_name() !== 'cli') {
die('CLI only');
}
date_default_timezone_set('Europe/London');
require dirname(__FILE__) . '/../bootstrap.php';
$config = require dirname(__FILE__) . '/../inc/config.inc.php';
class FelixExporter e... | FelixOnline/FelixOnline | scripts/export-db.php | PHP | mit | 4,434 |
/* ヘッダファイルのインクルード */
#include <stdio.h> /* C標準入出力 */
#include <string.h> /* C文字列処理 */
#include <unistd.h> /* UNIX標準 */
#include <X11/Xlib.h> /* Xlib */
#include <X11/Xutil.h> /* Xユーティリティ */
#include <X11/Xatom.h> /* アトム */
/* main関数 */
int main(int argc, char **argv){
/* 変数の宣言と初期化. */
Display *d; /* Display構造体へのポ... | bg1bgst333/Sample | xlib/XSetForeground/XSetForeground/src/XSetForeground/XSetForeground.c | C | mit | 9,740 |
'use strict';
module.exports = function (t, a) {
a(t(), false, "Undefined");
a(t(1), false, "Primitive");
a(t({}), false, "Objectt");
a(t({
toString: function () {
return '[object Error]';
}
}), false,
"Fake error");
a(t(new Error()), true, "E... | runningfun/angular_project | node_modules/bower/node_modules/inquirer/node_modules/cli-color/node_modules/es5-ext/test/error/is-error.js | JavaScript | mit | 621 |
namespace LaptopListingSystem.Services.Administration.Contracts
{
using System.Linq;
using LaptopListingSystem.Services.Common;
public interface IAdministrationService<TEntity>
where TEntity : class
{
IQueryable<TEntity> Read();
TEntity Get(params object[] id);
void ... | KristianMariyanov/LaptopListingSystem | Services/LaptopListingSystem.Services.Administration/Contracts/IAdministrationService.cs | C# | mit | 472 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>newest</title>
<link rel="stylesheet" media="screen" href="css/index.css">
<link rel="stylesheet" type="text/css" href="font/font.css">
<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/jquery.cookie.js"></script>
<script src="js/GlobalValu... | SCU-Newest/Newest | mylike.html | HTML | mit | 13,057 |
Kivy_SMS_service
================
Example code to make a service in kivy that intercepts incoming sms messages.
| LISTERINE/Kivy_SMS_service | README.md | Markdown | mit | 113 |
@extends('vendor.installer.layouts.master')
@section('title', 'Installation Complete')
@section('container')
<p class="paragraph">Access to this installer is now disabled.</p>
<div class="buttons">
<a href="{{ url('/') }}" class="button">{{ trans('messages.final.exit') }}</a>
</div>
@stop | scci/security-employee-tracker | resources/views/vendor/installer/finished.blade.php | PHP | mit | 310 |
import tensorflow as tf
import numpy as np
from baselines.ppo2.model import Model
class MicrobatchedModel(Model):
"""
Model that does training one microbatch at a time - when gradient computation
on the entire minibatch causes some overflow
"""
def __init__(self, *, policy, ob_space, ac_space, nbat... | openai/baselines | baselines/ppo2/microbatched_model.py | Python | mit | 3,241 |
var config = require('./config'),
db;
function warn() {
console.warn('[WARN] MongoDB:', [].join.call(arguments, ' '));
}
function getDB(done) {
if (db) return done(db);
if (!config.mongoURI) return warn('No DB configured!');
require('mongodb').MongoClient.connect(config.mongoURI, function(err, _db) {
if (err)... | flesler/EaaS | lib/db.js | JavaScript | mit | 946 |
export default class TeamScoreModel {
constructor(props) {
this.id = props.id
this.teamId = props.team_id
this.defencePoints = props.defence_points
this.attackPoints = props.attack_points
}
get totalPoints() {
return this.defencePoints + this.attackPoints
}
}
| aspyatkin/themis-finals | www/src/scripts/models/team-score-model.js | JavaScript | mit | 317 |
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="HTTrack is an easy-to-use website mirror utility. It allows you to download a World Wide website from the Internet to a local directory,building rec... | pulipulichen/php-file-converter | user_guide_zh_tw/index.html | HTML | mit | 5,078 |
# Makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = _build
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/do... | Grokzen/redisco | Makefile | Makefile | mit | 6,271 |
Topic summary...
## Symptoms
## Causes
## Diagnose
### Scenario Title
## Advice
## Resolve
| rotorz/unity3d-tile-system | docs/templates/Troubleshooting-Topic.md | Markdown | mit | 106 |
// Multiform extraction | luishendrix92/utilboxjs | src/String/extract.js | JavaScript | mit | 23 |
<?php
namespace SixtyNine\ClassGrapher\Model;
interface ItemInterface
{
const TYPE_CLASS = 'class';
const TYPE_INTERFACE = 'interface';
const TYPE_METHOD = 'method';
function getFile();
function getType();
function getLine();
function getName();
function setName($name);
}
| sixty-nine/ClassGrapher | src/SixtyNine/ClassGrapher/Model/ItemInterface.php | PHP | mit | 308 |
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <author name="Daniel Grunwald"/>
// <version>$Revision: 3090 $</version>
// </file>
using System;
using System.Collections.Generic;
using System.Threading;
namespace WorldBankBBS.ICSharpCode.TextEdit... | sharpninja/WorldBankBBS | WorldBankBBS.ICSharpCode.TextEditor/Src/Util/CheckedList.cs | C# | mit | 2,908 |
#ifndef __ModuleSceneIntro_H__
#define __ModuleSceneIntro_H__
#include "Module.h"
#include "Globals.h"
#include "Primitive.h"
#include "Geometry.h"
#include "Mesh.h"
#include <list>
//#include "PhysBody3D.h"
struct PhysBody3D;
class ModuleSceneIntro : public Module
{
public:
ModuleSceneIntro(Application* app, con... | laura-96/GameEngine | GameEngine/ModuleSceneIntro.h | C | mit | 671 |
(function (global, factory) {
if (typeof define === 'function' && define.amd) {
define(['exports', 'module', '../util/data'], factory);
} else if (typeof exports !== 'undefined' && typeof module !== 'undefined') {
factory(exports, module, require('../util/data'));
} else {
var mod = {
exports: {... | antitoxic/skatejs | lib/lifecycle/attached.js | JavaScript | mit | 893 |
import django
# Django 1.5 add support for custom auth user model
from django.conf import settings
if django.VERSION >= (1, 5):
AUTH_USER_MODEL = settings.AUTH_USER_MODEL
else:
try:
from django.contrib.auth.models import User
AUTH_USER_MODEL = 'auth.User'
except ImportError:
raise... | maroux/django-relationships | relationships/compat.py | Python | mit | 563 |
from PyQt4.QtGui import *
import pypipe.formats
import pypipe.basefile
from pypipe.core import pipeline
from widgets.combobox import ComboBox
class AddFileDialog(QDialog):
def __init__(self, parent=None):
super(AddFileDialog, self).__init__(parent)
self.formats_combo = ComboBox()
self.fi... | ctlab/pypipe | pypipe-gui/windows/addfiledialog.py | Python | mit | 2,392 |
# 智能指针
> [ch15-00-smart-pointers.md](https://github.com/rust-lang/book/blob/main/src/ch15-00-smart-pointers.md)
> <br>
> commit 1fedfc4b96c2017f64ecfcf41a0a07e2e815f24f
**指针** (*pointer*)是一个包含内存地址的变量的通用概念。这个地址引用,或 “指向”(points at)一些其他数据。Rust 中最常见的指针是第四章介绍的 **引用**(*reference*)。引用以 `&` 符号为标志并借用了他们所指向的值。除了引用数据没有任何其他特殊功能。... | KaiserY/trpl-zh-cn | src/ch15-00-smart-pointers.md | Markdown | mit | 2,993 |
# Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender... | CynicalApe/Dijkstra-Graph | CODE_OF_CONDUCT.md | Markdown | mit | 3,216 |
@import "n.css";
* {
box-sizing: border-box;
}
body{
padding-left: 30px;
}
.sidebar-place{
flex-grow: 1;
flex-shrink: 0;
}
.main-flex{
flex-grow: 5;
flex-shrink: 3;
}
.big-container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 70%;
}
.list-contai... | LetsnetHungary/sinalisal | _assets/css/sidebar.css | CSS | mit | 1,126 |
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import { GlobalService } from '../service/global.service';
@Injectable()
export class ReportService {
constructor (private http: HttpClient, private global: GlobalService) {... | kit-se/SE_Booking_System_front | src/app/shared/http/report.service.ts | TypeScript | mit | 1,288 |
<h1>Book Detail</h1>
{% if book %}
Title: {{ book.name }}
{% else % }
Book not found: {{ error }}
{% endif %}
| oliverroick/django-tests | books/templates/book_detail.html | HTML | mit | 111 |
#include <gtest/gtest.h>
#include <cpuinfo.h>
#include <cpuinfo-mock.h>
TEST(PROCESSORS, count) {
ASSERT_EQ(8, cpuinfo_get_processors_count());
}
TEST(PROCESSORS, non_null) {
ASSERT_TRUE(cpuinfo_get_processors());
}
TEST(PROCESSORS, smt_id) {
for (uint32_t i = 0; i < cpuinfo_get_processors_count(); i++) {
ASS... | Teaonly/easyLearning.js | TensorExpress/aten/src/ATen/cpu/cpuinfo/test/mock/galaxy-j7-prime.cc | C++ | mit | 15,069 |
\documentclass{beamer}
% !TeX spellcheck = es_CL
\mode<presentation>
{
\usetheme{Berkeley}
% or ...
\setbeamercovered{transparent}
% or whatever (possibly just delete it)
}
\usepackage{tikz}
\usepackage{graphicx}
\usepackage[english]{babel}
% or whatever
\usepackage[utf8]{inputenc}
% or whatever
\usepacka... | fhoces/BITSS_PUC_CHILE_2017 | 1-Presentacion/BITSS-Intro-Slides.tex | TeX | mit | 42,452 |
module Pohoda
module Builders
module Lst
class ListNumericSeriesType < Rdc::ListVersionType
include ParserCore::BaseBuilder
def builder
root = Ox::Element.new(name)
root = add_attributes_and_namespaces(root)
super.nodes.each do |n|
root << n
... | Masa331/pohoda | lib/pohoda/builders/lst/list_numeric_series_type.rb | Ruby | mit | 542 |
package com.zimbra.qa.selenium.projects.octopus.tests.history;
import org.testng.annotations.*;
import com.zimbra.qa.selenium.framework.util.*;
import com.zimbra.qa.selenium.projects.octopus.ui.PageHistory.*;
public class RefineComment extends HistoryCommonTest {
public RefineComment() {
super();
logger.inf... | nico01f/z-pec | ZimbraSelenium/src/java/com/zimbra/qa/selenium/projects/octopus/tests/history/RefineComment.java | Java | mit | 1,153 |
var Col = require('./Col')
module.exports = Col
// export { default } from './Col'
| constelation/monorepo | packagesOld/Col/index.js | JavaScript | mit | 84 |
/*
* Configuration for Amlogic Meson GXBB SoCs
* (C) Copyright 2016 Beniamino Galvani <b.galvani@gmail.com>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#ifndef __MESON_GXBB_COMMON_CONFIG_H
#define __MESON_GXBB_COMMON_CONFIG_H
#define CONFIG_CPU_ARMV8
#define CONFIG_REMAKE_ELF
#define CONFIG_NR_DRAM_BANKS 1
#define... | guileschool/beagleboard | u-boot/include/configs/meson-gxbb-common.h | C | mit | 1,340 |
package org.robolectric.shadows;
import static android.os.Build.VERSION_CODES.M;
import static android.os.Build.VERSION_CODES.N;
import static android.os.Build.VERSION_CODES.N_MR1;
import static android.os.Build.VERSION_CODES.P;
import static com.google.common.truth.Truth.assertThat;
import static org.mockito.Mockito.... | spotify/robolectric | robolectric/src/test/java/org/robolectric/shadows/ShadowUsbManagerTest.java | Java | mit | 6,191 |
---
layout: post
title: 皮囊
category: 书单
---
* 那一刻才明白啊太曾经对我说过的一句话,才明白啊太的生活观:我们的生命本来多轻盈,都是被这肉体和各种欲望的污浊给拖住。啊太,我记住了。“肉体是拿来用的,不是拿来伺候的”.请一定要来看望我。
* 明天晚上,你记得挑起你父亲各种愿望,让他想下来,越多愿望越好。一个人的求生的欲望越强,活下来的机会就越大。
* 文明人才怕东怕西,必要的时候我可以不文明,我比你底线低。
* 我们一定要活出自己想要的样子~!只有一次青春啊
* 厚朴,或许能真实的抵达这个世界的,能确切地抵达梦想的,不是不顾一切投入想象的狂热,而是务实、谦卑的,甚至你自己都... | czero1995/czero1995.github.io | _posts/bookLife/2016-10-14-皮囊-.md | Markdown | mit | 1,524 |
#!/usr/bin/env lua
-- FizzBuzz in Lua
for i = 1, 100 do
if i % 15 == 0 then
print("fizzbuzz")
elseif i % 3 == 0 then
print("fizz")
elseif i % 5 == 0 then
print("buzz")
else
print(i)
end
end
| qjcg/CO2Aldrin | app/bin/fizzbuzz.lua | Lua | mit | 204 |
// ___ ____ __ __
// / _ `/ _ \\ \ /
// \_,_/ .__/_\_\
// /_/
//
// 過去は未来によって変えられる。
//
// Copyright (c) 2014 Kenan Sulayman aka apx
//
// Based on third-party code:
//
// Copyright (c) 2010 Tom Hughes-Croucher
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
... | KenanSulayman/dnx | dns.js | JavaScript | mit | 3,768 |
#ifndef BITCOIN_CHAINPARAMSSEEDS_H
#define BITCOIN_CHAINPARAMSSEEDS_H
/**
* List of fixed seed nodes for the bitcoin network
* AUTOGENERATED by contrib/seeds/generate-seeds.py
*
* Each line contains a 16-byte IPv6 address and a port.
* IPv4 as well as onion addresses are wrapped inside a IPv6 address accordingly.
... | mitocoinorg/mitocoin | src/chainparamsseeds.h | C | mit | 639 |
//-----------------------------------------------------------------------
// <copyright file="WebApiToSwaggerGeneratorSettings.cs" company="NSwag">
// Copyright (c) Rico Suter. All rights reserved.
// </copyright>
// <license>https://github.com/NSwag/NSwag/blob/master/LICENSE.md</license>
// <author>Rico Suter, ma... | NSwag/NSwag | src/NSwag.SwaggerGeneration.AspNetCore/Processors/OperationParameterProcessor.cs | C# | mit | 20,145 |
//==========================================================
// CasaEngine - Free C++ 3D engine
//
// Copyright (C) 2004-2005 Laurent Gomila
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation;... | xcasadio/casaengine | src/Engine/Graphics/Renderer/DX9/DX9Buffer.h | C | mit | 3,234 |
package net.anotheria.moskito.webui.dashboards.action;
import net.anotheria.maf.action.ActionCommand;
import net.anotheria.maf.action.ActionMapping;
import net.anotheria.maf.bean.FormBean;
import net.anotheria.util.StringUtils;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRespons... | anotheria/moskito | moskito-webui/src/main/java/net/anotheria/moskito/webui/dashboards/action/DashboardAddGaugeAction.java | Java | mit | 1,488 |
'use strict'
import trumpet from 'trumpet'
import { trumpetInnerText } from './index'
import JsonStream from 'JSONStream'
// Myfox page not found is a code 200... must fix it!
const notFound200 = function () {
const parser = trumpet()
parser.select('head title', trumpetInnerText((data) => {
parser.status = 20... | gxapplications/myfox-wrapper-api | lib/html-parsers/false-error-codes.js | JavaScript | mit | 998 |
/**
*/
package CIM.IEC61968.PaymentMetering;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b>Charge Kind</b></em>',
* and utility methods for wo... | georghinkel/ttc2017smartGrids | solutions/ModelJoin/src/main/java/CIM/IEC61968/PaymentMetering/ChargeKind.java | Java | mit | 7,017 |
import {IconDefinition, IconLookup, IconName, IconPrefix, IconPathData, IconPack } from '@fortawesome/fontawesome-common-types';
export {IconDefinition, IconLookup, IconName, IconPrefix, IconPathData, IconPack } from '@fortawesome/fontawesome-common-types';
export const dom: DOM;
export const library: Library;
export c... | Hendrik44/pi-weather-app | Carthage/Checkouts/FontAwesome.swift/FortAwesome/Font-Awesome/js-packages/@fortawesome/fontawesome-svg-core/index.d.ts | TypeScript | mit | 3,310 |
/*
* The Plaid API
*
* The Plaid REST API. Please see https://plaid.com/docs/api for more details.
*
* API version: 2020-09-14_1.78.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package plaid
import (
"encoding/json"
)
// LinkTokenCreateRequestUpdate Specifies opt... | plaid/plaid-go | plaid/model_link_token_create_request_update.go | GO | mit | 4,051 |
/**
* Created by sasakiumi on 3/2/14.
*/
public class DigitObserver implements Observer {
@Override
public void update(NumberGenerator generator) {
System.out.println("DigitObserver" + generator.getNumber());
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
... | Lewuathe/java-GoF | Observer/src/DigitObserver.java | Java | mit | 335 |
package controller.experiment.thermocouple;
import java.awt.Component;
import java.io.IOException;
import java.io.PrintStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.text.NumberFormat;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.List;
import java... | MikhailChe/TemperatureWaveMethod | src/controller/experiment/thermocouple/GraduateConverter.java | Java | mit | 2,883 |
const chalk = require('chalk');
const { curry } = require('ramda');
const log = curry((color, string) => console.info(color(string)));
const good = log(chalk.green);
const info = log(chalk.cyan);
const warn = log(chalk.magenta);
const bad = log(chalk.red.bold);
module.exports = (server, port) => {
const resolve =... | halis/cocoapuff | src/server/shutdown.js | JavaScript | mit | 947 |
---
date: 2017-01-15
layout: log
location: Dallas, TX (fly) Atlanta, GA
coffee:
office:
restaurants: Au Rendez-Vous
bars:
beers:
hikes:
movies: Singin' in the Rain
games:
climbing: Stone Summit
books:
links:
achievements:
personal_growth:
highlight:
description:
private_notes:
---
Picked up Blue from airport parking, ... | jhanstra/jh-gatsby | pages/jot/2017/01/2017-01-15/index.md | Markdown | mit | 624 |
#if UNITY_ANDROID && ! UNITY_EDITOR
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.11
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file inste... | TeamTorchBear/Guzzlesaurus | Assets/Wwise/Deployment/API/Generated/Android/AkThreadProperties_Android.cs | C# | mit | 2,378 |
using System;
using System.IO;
using System.Collections.Generic;
using System.Threading;
using System.Linq;
using System.Text;
using Cadenza;
namespace Awareness.Agnostic
{
public abstract class AbstractPlatform
{
public abstract IClock Clock { get; }
public abstract DateTime LastActivity {... | dvdsgl/awareness | Awareness.Agnostic/AbstractPlatform.cs | C# | mit | 1,322 |
#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bitcamp.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| jerrrytan/bitcamp | bitcamp/manage.py | Python | mit | 250 |
const webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const WebpackShellPlugin = require('webpack-shell-plugin');
const { join, resolve } = require('path');
var BUILD_DIR = resolve(__dirname, '../../priv/static');... | mgwidmann/slack_coder | client/web/webpack.config.js | JavaScript | mit | 3,128 |
<?php
namespace App\Model\Repository;
use App\Model\Entity\Solution;
use Doctrine\ORM\EntityManagerInterface;
/**
* @extends BaseRepository<Solution>
*/
class Solutions extends BaseRepository
{
public function __construct(EntityManagerInterface $em)
{
parent::__construct($em, Solution::class);
... | ReCodEx/api | app/model/repository/Solutions.php | PHP | mit | 324 |
package gloomyfolken.hooklib.disk;
import gloomyfolken.hooklib.asm.HookClassTransformer;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
public class DiskH... | GloomyFolken/HookLib | src/gloomyfolken/hooklib/disk/DiskHookLib.java | Java | mit | 2,028 |
var classNames = require('classnames');
var React = require('react/addons');
var Tappable = require('react-tappable');
var Transition = React.addons.CSSTransitionGroup;
var defaultControllerState = {
direction: 0,
fade: false,
leftArrow: false,
leftButtonDisabled: false,
leftIcon: '',
leftLabel: '',
leftAction:... | npirotte/catchapp | src/js/touchstone/NavigationBar.js | JavaScript | mit | 6,090 |
from .lattice import default_optics_mode
from .lattice import energy
from .accelerator import default_vchamber_on
from .accelerator import default_radiation_on
from .accelerator import accelerator_data
from .accelerator import create_accelerator
from .families import get_family_data
from .families import family_mapp... | lnls-fac/sirius | pymodels/TS_V03_03/__init__.py | Python | mit | 474 |
<?php
declare(strict_types = 1);
namespace BrowscapPHP\Parser\Helper;
use BrowscapPHP\Cache\BrowscapCacheInterface;
use BrowscapPHP\Helper\QuoterInterface;
use Psr\Log\LoggerInterface;
/**
* interface for the parser dataHelper
*/
interface GetDataInterface
{
/**
* class contsructor
*
* @param \B... | mimmi20/browscap-php | src/Parser/Helper/GetDataInterface.php | PHP | mit | 977 |
# This file is part of Scapy
# See http://www.secdev.org/projects/scapy for more informations
# Copyright (C) Santiago Hernandez Ramos <shramos@protonmail.com>
# This program is published under GPLv2 license
from scapy.packet import Packet, bind_layers
from scapy.fields import FieldLenField, BitEnumField, StrLenField... | CodeNameGhost/shiva | thirdparty/scapy/contrib/mqtt.py | Python | mit | 8,943 |
/*
MIT License
Copyright (c) 2017 Hamdi Kavak
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, di... | hamdikavak/human-mobility-modeling-utilities | src/main/java/com/hamdikavak/humanmobility/modeling/spatial/DistanceWithUnit.java | Java | mit | 5,812 |
dotfiles
========
My configuration files(.zshrc .vimrc ... etc)
| CrossClover/dotfiles | README.md | Markdown | mit | 69 |
/* This is a default that will override the browser pages, and then your page will style from there */
/*
Theme Name:
Theme URI:
Description:
Version: 1.0
Author:
Author URI:
*/
/* reset styles */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big... | ninamutty/ninamutty.github.io | styles/reset.css | CSS | mit | 1,374 |
/*
* This file is part of EasyExchange.
*
* (c) 2014 - Machiel Molenaar <machiel@machiel.me>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
package com.mtech.easyexchange.mvc.user;
import com.mtech.easyexchange.annotation.Active... | Machiel/EasyExchange | Web/src/main/java/com/mtech/easyexchange/mvc/user/LoginController.java | Java | mit | 1,418 |
# frozen_string_literal: true
module PGExaminer
class Result
class Language < Item
def diffable_attrs
{
"name" => "name"
}
end
end
end
end
| chanks/pg_examiner | lib/pg_examiner/result/language.rb | Ruby | mit | 190 |
#!/bin/bash
SERVER_NAME=pressure_test_server
OPERATOR_LIST=(
)
| jiabinruan/gowithcool | example/pressure_test_server/build/comm.sh | Shell | mit | 65 |
define(['../../game', 'collectableItem', 'states/levels/LevelState'], function (game, CollectableItem, Parent) {
var map,
levelThreeFirstLayerBackground,
levelThreeSecondLayerPlatforms,
shampoosGroup,
shampoosCoordinates;
function Level3State() {
};
Level3State.prototyp... | DimitarSD/Teamwork-Porto-Flip | Game/scripts/states/levels/Level3State.js | JavaScript | mit | 5,947 |
# Visual Studio Team Services queries
A webpage where you can run pre-defined vsts querys that are too complex to make in the [vsts query editor](https://www.visualstudio.com/en-us/docs/work/track/using-queries).
## Queries
So far there is only one query in the project.
### Pullrequests and related work items
Use th... | niclas-awalt/vsts-queries | README.md | Markdown | mit | 1,528 |
<div class="notifications">
<!-- _ASSIGN_ MSN -->
<div class="notifications-inner" ng-repeat="notification in notifications track by notification.id">
<comp-notification notification=notification></comp-notification>
</div>
</div> | Chillybyte/GlobalComments | web/app/components/comp-notifications/template.html | HTML | mit | 246 |
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: AssemblyTitle("ME... | chadmichel/MEF_UnitTest | MEF.TheTests/Properties/AssemblyInfo.cs | C# | mit | 1,400 |
# Be sure to restart your server when you modify this file.
Rails.application.config.session_store :cookie_store, key: '_demo-app_session'
| davidargylethacker/rails-demo-app | demo-app/config/initializers/session_store.rb | Ruby | mit | 140 |
// the semi-colon before function invocation is a safety net against concatenated
// scripts and/or other plugins which may not be closed properly.
;(function ( $, window, document, undefined ) {
"use strict";
// undefined is used here as the undefined global variable in ECMAScript 3 is
// mutable... | danielfpedro/nice-char-counter | src/nice-char-counter.js | JavaScript | mit | 7,582 |
/*
Copyright (c) 2017 The swc Project Developers
Permission is hereby granted, free of charge, to any
person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the
Software without restriction, including without
limitation the rights to use, copy, modify, merge,
publish, ... | azukaru/next.js | packages/next-swc/crates/napi/src/util.rs | Rust | mit | 2,753 |
---
layout: layout
title: "Jared Wright"
---
<br>
<title>Jared Wright</title>
<section class="content">
<p>Hi, I'm <b>Jared</b>
<span style="font-style:italic"><br><br>
Developer, Student, and (aspiring) Entrepreneur
<br><br></span>
All of my open source projects are h... | jawerty/mygithubpage | index.html | HTML | mit | 615 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <malloc.h>
#include <ctype.h>
#define PATHLEN 256
#define CMDLEN 512
#define MAXARGS 500
#define ALIASALLOC 20
#define STDIN 0
#define STDOUT 1
#define MAXSOURCE 10
#ifndef isblank
#define isblank(ch) (((ch) == ' ') || ((ch) == '\t'))
#endif
... | BclEx/GpuEx | src.fileutils/futils.h | C | mit | 1,651 |
/**
* Copyright (c) 2014 Virtue Studios
*
* 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, pub... | Sundays211/VirtueRS3 | src/main/java/org/virtue/engine/service/OnDemandService.java | Java | mit | 2,105 |
/*
* This file is part of SpongeAPI, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Soft... | frogocomics/SpongeAPI | src/main/java/org/spongepowered/api/data/manipulators/items/CloneableData.java | Java | mit | 2,336 |
export * from './site.component';
| tsuberi/kid-watch-app | src/app/Site/index.ts | TypeScript | mit | 34 |
<?php
include_once "connect.php";
$link = db_connect();
// Delete user where email
$sql_settings_user_remove = "DELETE FROM users WHERE email = '".$_POST['email']."' ";
if ($link->query($sql_settings_user_remove) === TRUE) {
echo "<div class='row'> <div class='col-lg-12'> <div class='alert alert-s... | Lukaszm328/Knoocker | web/ajax_php/settings_user_remove.php | PHP | mit | 698 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.