repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
AetherWorks/SecretSanta | java/SecretSanta.java | 2008 | import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;
/**
* Randomly generates Secret Santa assignments for a given group.
* <p>
* All valid possible assignments are equally likely to be generated (uniform distribution).
*
* @author Michael Zaccard... | unlicense |
Firewiz/fireOS | fat.c | 1548 | #include "fat.h"
#include "disk.h"
#include "malloc.h"
void read_fs(struct fat_fs *b) {
read_sector((unsigned char *) &(b->bpb), 0, 0);
b->total_sectors = b->bpb.n_sectors;
b->fat_size = b->bpb.spf;
b->root_size = ((b->bpb.n_dirents * 32)
+ (b->bpb.bps - 1)) / b->bpb.bps;
b->first_data = b->bpb.n_hidden
... | unlicense |
dvelle/The-hustle-game-on-facebook-c.2010 | hustle/hustle/arcade/search.php | 2075 | <?php
include '../test/connect.php';
$conn = mysql_connect($dbhost,$dbuser,$dbpass)
or die ('Error connecting to mysql');
mysql_select_db($dbname);
if(isset($_GET['query'])) { $query = $_GET['query']; } else { $query = ""; }
if(isset($_GET['type'])) { $type = $_GET['type']; } else { $query = "count"; }
if($ty... | unlicense |
solring/TWCompanyTree | website/static/lib/css/d3-bootstrap-plugins.css | 3823 | /* Taken from bootstrap: https://github.com/twitter/bootstrap/blob/master/less/tooltip.less */
.fade {
opacity: 0;
-webkit-transition: opacity 0.15s linear;
-moz-transition: opacity 0.15s linear;
-ms-transition: opacity 0.15s linear;
-o-transition: opacity 0.15s linear;
transition: opaci... | unlicense |
clilystudio/NetBook | allsrc/com/google/gson/Gson$FutureTypeAdapter.java | 917 | package com.google.gson;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
class Gson$FutureTypeAdapter<T> extends TypeAdapter<T>
{
private TypeAdapter<T> delegate;
public T read(JsonReader paramJsonReader)
{
if (this.delegate == null)
throw new IllegalStateException... | unlicense |
Offirmo/base-wordpress | backupbuddy_backup/wp-content/themes/Etendard/admin/widgets/video.php | 3281 | <?php
class EtendardVideo extends WP_Widget{
private $error = false;
private $novideo = false;
public function __construct(){
parent::__construct(
'EtendardVideo',
__('Etendard - Video', 'etendard'),
array('description'=>__('Add a video from Youtube, Dailymotion or Vimeo.', 'etendard'))
);
}
... | unlicense |
jameymcelveen/com.flyingtigersrc.www | wp-content/themes/sport/inc/templates/footer/template_footer_post.php | 841 | <?php $canon_options_frame = get_option('canon_options_frame'); ?>
<div class="outter-wrapper post-footer feature">
<div class="wrapper">
<div class="clearfix">
<div class="foot left"><?php echo $canon_options_frame['footer_text'] ?></div>
... | unlicense |
anish7/anish7.github.io | _site/planets/terrestrial/mars.html | 1788 | <!DOCTYPE html>
<html lang="en-ca">
<head>
<meta charset="utf-8">
<title>Mars · Planets of the Universe</title>
<link href="/css/main.css" rel="stylesheet">
<meta name="description" content="Mars is the fourth planet from the Sun and the second smallest planet in the Solar System.">
</head>
<body>
<header clas... | unlicense |
will-gilbert/SmartGWT-Mobile | mobile/src/main/java/com/smartgwt/mobile/client/widgets/Action.java | 1126 | package com.smartgwt.mobile.client.widgets;
import com.google.gwt.resources.client.ImageResource;
public abstract class Action {
private ImageResource icon;
private int iconSize;
private String title;
private String tooltip;
public Action(String title) {
this.title = title;
}
pu... | unlicense |
TSwimson/GA | week4/tue/active_record_associations/college/app/models/enrollment.rb | 85 | class Enrollment < ActiveRecord::Base
belongs_to :student
belongs_to :course
end
| unlicense |
SPbAU-ProgrammingParadigms/materials | python_2/common_objects.py | 4690 | import os
import sys
import string
import random
import math
#################################################
# State
balance = 0
def deposit(amount):
global balance
balance += amount
return balance
def withdraw(amount):
global balance
balance -= amount
return balance
##################... | unlicense |
nature-track/wenCollege-CSharp | Web/ValidateCode.aspx.designer.cs | 814 | //------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本: 2.0.50727.42
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Mati... | unlicense |
mirzadelic/django-social-example | django_social_example/django_app/public/js/app/app.js | 68 | 'use strict';
var app = angular.module('App', ['App.controller']);
| unlicense |
agile-course/news_feed | news_feed/templates/pages/home.html | 1377 | {% extends "base.html" %}
{% block content %}
<div class="row" ng-controller="HomepageController">
<div class="posts">
<ul>
<div class="post" ng-repeat="post in posts">
<heading ng-bind="post.title"></heading>
<content ng-bind="post.content"></content>
... | unlicense |
cc14514/hq6 | hq-installer/src/main/java/org/hyperic/tools/ant/PropertiesFileMergerTask.java | 8153 | /* **********************************************************************
/*
* NOTE: This copyright does *not* cover user programs that use Hyperic
* program services by normal system calls through the application
* program interfaces provided as part of the Hyperic Plug-in Development
* Kit or the Hyperic Client D... | unlicense |
mikewolfli/workflow | doxygen/html/classlogin__dlg.html | 12693 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | unlicense |
ovaskevich/sochat | src/com/sochat/client/ServerPublicKey.java | 732 | package com.sochat.client;
import java.math.BigInteger;
import java.security.GeneralSecurityException;
import java.security.KeyFactory;
import java.security.PublicKey;
import java.security.spec.RSAPublicKeySpec;
public class ServerPublicKey {
public static PublicKey getServerPublicKey(String publicKeyModulus, St... | unlicense |
zerocruft/flux | config.go | 645 | package main
type FluxConfig struct {
Iam string `toml:"iam"`
Url string `toml:"url"`
Port int `toml:"port"`
Logdir string `toml:"logdir"`
Balancer FluxCluster `toml:"cluster"`
//Jwts []JwtAuth `toml:"jwt"`
}
type JwtAuth struct {
RequiredClaims []JwtClaim `toml:"... | unlicense |
chrsjwilliams/RTS_Blokus | Assets/Scripts/Pieces/Tasks/InitialBuildingEntryAnimation.cs | 2097 | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using BeatManagement;
public class InitialBuildingEntryAnimation : Task
{
private TaskManager subtaskManager;
private float baseStaggerTime;
private float structStaggerTime;
private float terrainStaggerTime;
private boo... | unlicense |
dekloni/MarketPlace | MarketPlaceUI/public-products.html | 29 | <h3>Public products 1</h3> | unlicense |
KubaO/stackoverflown | questions/html-get-24965972/main.cpp | 1330 | // https://github.com/KubaO/stackoverflown/tree/master/questions/html-get-24965972
#include <QtNetwork>
#include <functional>
void htmlGet(const QUrl &url, const std::function<void(const QString&)> &fun) {
QScopedPointer<QNetworkAccessManager> manager(new QNetworkAccessManager);
QNetworkReply *response = manager... | unlicense |
LAGIdiot/NetGore | NetGore/Core/CommandLineSwitchHelper.cs | 4642 | using System;
using System.Collections.Generic;
using System.Linq;
namespace NetGore
{
/// <summary>
/// Provides helper functions for parsing command-line switches and the arguments that go with
/// each of those switches.
/// </summary>
public static class CommandLineSwitchHelper
{
//... | unlicense |
miansari/sorting-programs-in-C | heapsort.c | 1129 | #include<stdio.h>
void heap_sort(int[], int);
void build_max_heap(int[], int);
void max_heapify(int[],int,int);
void swap(int*, int*);
void display(int[],int);
int main(){
int n = 11;
int a[] = {55,3,2,5,77,44,65,53,88,31,9};
display(a,n);
heap_sort(a,n);
display(a,n);
return 0;
}
void heap_sort(int a[], int n)... | unlicense |
reenigne/reenigne | include/alfe/parser.h | 17446 | #include "alfe/main.h"
#ifndef INCLUDED_PARSER_H
#define INCLUDED_PARSER_H
#include "alfe/code.h"
#include "alfe/space.h"
class Parser : Uncopyable
{
public:
CodeList parseFromFile(File file)
{
CodeList c;
parseFromFile(c, file);
return c;
}
void parseFromString(Code code, Str... | unlicense |
2kranki/libCmn | programs/c_defs/src/c_defs.c | 3011 | // vi: nu:noai:ts=4:sw=4
//
// c_defs
//
// Created by bob on 1/14/19.
//
/*
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, c... | unlicense |
USFWS/southeast | site/content/events/2019-wolf-creek-national-fish-hatchery-open-house.md | 1583 | ---
title: 'Wolf Creek National Fish Hatchery Open House'
start: 2019-12-14T10:00:00.000Z
end: 2019-12-14T14:00:00.000Z
description: 'Come celebrate with our holiday open house and nature ornament workshop. Light refreshments and holiday entertainment with be provided. Make a nature themed ornament for our Christmas tr... | unlicense |
automeka/automeka | lib/std/include/cxxabi.h | 25 | #include_next <cxxabi.h>
| unlicense |
voec/melonpoop | get twemoji.html | 518 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Get Twemoji!</title>
<link rel="stylesheet" href="http://ellekasai.github.io/twemoji-awesome/twemoji-awesome.css">
</head>
<body>
<i class="twa twa-chilli" style="-webkit-font-smoothing : none; font-size:200px; font-smooth: never; filter: cont... | unlicense |
ElionHaxhi/Ribbit | src/com/elionhaxhi/ribbit/ui/RecipientsActivity.java | 7505 | package com.elionhaxhi.ribbit.ui;
import java.util.ArrayList;
import java.util.List;
import android.app.Activity;
import android.app.AlertDialog;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.NavUtils;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
i... | unlicense |
muan/hello-world | humans/christennguyen.html | 681 | <!DOCTYPE html>
<html>
<head>
<title>Henlo World</title>
<meta charset="UTF-8">
<style>
body {
font-family: helvetica, sans serif;
text-align: center;
background-color: #fceed4;
padding-top: 20%;
}
</style>
</head>
<body>
<div>
... | unlicense |
philoserf/wp-sync | _pages/rules.md | 1091 | ---
ID: 122673
post_title: Rules
author: Mark
post_excerpt: ""
layout: page
permalink: https://philoserf.com/rules/
published: true
post_date: 2020-01-01 00:06:55
---
<h2>level one</h2>
<ul><li>if it has a name do not give it another name</li>
<li>if you have given it a name do not give it another name</li>
<li>start ... | unlicense |
gugglegum/pizza | app/library/Http/BadRequestException.php | 592 | <?php
/**
* Pizza E96
*
* @author: Paul Melekhov
*/
namespace App\Http;
/**
* Поднятие этого исключения служит сигналом для FrontController о том,
* что нужно отобразить страницу с ошибкой HTTP/1.1 400 Bad Request
*/
class BadRequestException extends Exception
{
public function __construct($message = "", $... | unlicense |
Rat-S/ambuttu.sh | README.md | 21 | # ambuttu.sh
ambuttu
| unlicense |
AnimeDB/adb-browser-frontend | adb/frontend/auth/decorators.py | 2476 |
class PermissionRequired(Exception):
"""
Exception to be thrown by views which check permissions internally.
Takes a single C{perm} argument which defines the permission that caused
the exception.
"""
def __init__(self, perm):
self.perm = perm
def require_permissions(user, *permissio... | unlicense |
IntershopCommunicationsAG/partnerpay-example | s_payment_partnerpay/ac_payment_partnerpay/javasource/com/intershop/adapter/payment/partnerpay/internal/service/capture/CaptureFactoryImpl.java | 578 | package com.intershop.adapter.payment.partnerpay.internal.service.capture;
import javax.inject.Inject;
import com.google.inject.Injector;
import com.intershop.adapter.payment.partnerpay.capi.service.capture.CaptureFactory;
import com.intershop.api.service.payment.v1.capability.Capture;
public class CaptureFactoryImp... | unlicense |
cartman300/Kernel | 3rdParty/PDCLib/platform/win32/functions/threads/mtx_lock.c | 614 | #ifndef REGTEST
#include <threads.h>
#include <windows.h>
int mtx_lock(mtx_t *mtx)
{
DWORD myId = GetCurrentThreadId();
if(mtx->_ThreadId == (long) myId) {
mtx->_NestCount++;
return thrd_success;
}
for(;;) {
LONG prev = InterlockedCompareExchange(&mtx->_ThreadId, myId, 0);
... | unlicense |
litesoft/LiteSoftCommonFoundation | src/org/litesoft/commonfoundation/charstreams/CharSource.java | 2332 | // This Source Code is in the Public Domain per: http://unlicense.org
package org.litesoft.commonfoundation.charstreams;
/**
* A CharSource is like a powerful version of a "char" based Iterator.
*/
public interface CharSource {
/**
* Report if there are any more characters available to get().
* <p/>
... | unlicense |
C4K3/Jail | src/main/java/net/simpvp/Jail/JailedPlayer.java | 1551 | package net.simpvp.Jail;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.UUID;
import org.bukkit.Location;
/**
* Class representing the stored information about a jailed player
*/
public class JailedPlayer {
public UUID uuid;
public String playername;
public String reason;
public Str... | unlicense |
cc14514/hq6 | hq-web/src/main/java/org/hyperic/hq/ui/action/portlet/autoDisc/AIPlatformWithStatus.java | 2391 | /*
* NOTE: This copyright does *not* cover user programs that use HQ
* program services by normal system calls through the application
* program interfaces provided as part of the Hyperic Plug-in Development
* Kit or the Hyperic Client Development Kit - this is merely considered
* normal use of the program, and do... | unlicense |
honzasp/spiral | rt/include/spiral/io.hpp | 2505 | #ifndef HAVE_spiral_io_hpp
#define HAVE_spiral_io_hpp
#include <cstdio>
#include "spiral/core.hpp"
#include "spiral/string.hpp"
namespace spiral {
struct IoObj {
const ObjTable* otable;
std::FILE* stdio;
bool close_on_drop;
};
auto io_from_val(Bg* bg, Val val) -> IoObj*;
auto io_from_obj_ptr(void*... | unlicense |
bodydomelight/tij-problems | src/generics/p19/Good.java | 619 | package generics.p19;
import java.util.Random;
import utils.Generator;
public class Good {
private final int id;
private String description;
public Good(int id, String description) {
this.id = id;
this.description = description;
}
public static Generator<Good> generator... | unlicense |
frostney/dropoff | lib/theme/index.js | 119 | var Theme = (function() {
var Theme = function() {
};
return Theme;
})();
module.exports = Theme;
| unlicense |
ps8v9/lcasecbl | README.md | 2008 | lcasecbl
========
C99 utility to convert COBOL to lowercase or uppercase.
The following are excluded from being converted to the target case:
comment lines
sequence area (columns 1-6)
indicator area (column 7)
comment area (column 73 through end of line)
alphanumeric literals
hexadecimal l... | unlicense |
woftor/pitemps | pitemps.sh | 12490 | #!/bin/bash
#
# ++++ Raspberry Pi Temperature script ++++
#
# By woftor (GitHub)
#
# This script shows the temperature of the ARM CPU of you Raspberry Pi: current, mean, lowest and highest.
# You can choose between Celcius of Fahrenheit.
# It uses three text files to store data:
# - pitemps_file for the last temperat... | unlicense |
alivesay/mentat-example | README.md | 67 | # mentat-example
Example app for the hapi.js microframework mentat
| unlicense |
pramodh-bn/learn-data-edx | Week 7/qp.py | 6393 | # -*- coding: utf-8 -*-
"""
Created on Fri Nov 15 15:55:28 2013
@author: dyanna
"""
import numpy as np
from sklearn.svm import SVC
def getSample(pointA, pointB, numberOfPoints):
pointList = list(zip(np.random.uniform(-1,1.00,numberOfPoints),np.random.uniform(-1,1.00,numberOfPoints)))
sample = np.array([(i[0]... | unlicense |
lincore81/ccscripts | touch.ps1 | 156 | # sets the last write time to now
# usage: ls -Recursion | .\touch
$now = Get-Date
foreach ($i in $input) {
$i.LastWriteTime = $now
echo $i.Name
} | unlicense |
open-austin/open-austin-org | advocacy/index.md | 7416 | ---
layout: page
title: Advocacy
date: 2013-01-08 22:41:31.000000000 -06:00
type: page
published: true
status: publish
categories: []
tags: []
header: true
---
The **Open Austin Policy Team** works with local governments and public agencies, in support of open government and civic technologies.
* TOC
{:toc}
---
## ... | unlicense |
JohannesBeranek/electron-pixels | renderer.js | 11380 | const fs = require('fs');
const electron = require('electron');
const cl = require('node-opencl');
const RUN_GAMELOOP_SYNC = true;
const GAMETICK_CL = true;
const INIT_OPENGL = false;
let canvas; // canvas dom element
let gl; // opengl context
let clCtx; // opencl context
let glProgram; // opengl shader prog... | unlicense |
jasonfagan/game-experiments | physics/src/main/java/net/yottabyte/game/BouncyBall.java | 3996 | package net.yottabyte.game;
import java.awt.*;
/**
* @author Jason Fagan
*/
public class BouncyBall {
private int x;
private int y;
private int vx;
private int vy;
private int radius;
private int drag;
private int mass;
public BouncyBall(int x, int y, int vx, int vy, int radius, in... | unlicense |
mrjlovetian/OC-Category | OC-Category/Classes/UIKit/UITextView/UITextView+PinchZoom.h | 304 | //
// UITextView+PinchZoom.h
//
// Created by 余洪江 on 16/03/01.
// Copyright © MRJ. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UITextView (PinchZoom)
@property (nonatomic) CGFloat maxFontSize, minFontSize;
@property (nonatomic, getter = iszoomEnabled) BOOL zoomEnabled;
@end
| unlicense |
patinyanudklin/git_testing | cpe-2015-projects/vendors/jpeg2000/lib/doc/html/invert_8c.html | 10130 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>OpenJPEG: invert.c File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.2 -->
<div class="qin... | unlicense |
lsilvestres/Exemplos | Arquitetura Modelo DDD/ProjetoModelo.Infra.CrossCutting.Identity/ApplicationUser.cs | 2453 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations.Schema;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
namespace ProjetoModelo.Infra.CrossCut... | unlicense |
amitsaha/learning | python/sqla_learning/many_many_relation.py | 3275 | from sqlalchemy import create_engine, Column, Integer, String, ForeignKey, Table
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker, relationship
# demo many to many relationship
# http://docs.sqlalchemy.org/en/rel_0_9/orm/basic_relationships.html#many-to-many
engine = cre... | unlicense |
OHDSI/Vocabulary-v5.0 | NDC_SPL/load_stage.sql | 59912 | /**************************************************************************
* Copyright 2016 Observational Health Data Sciences and Informatics (OHDSI)
*
* 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 Li... | unlicense |
zakaihamilton/screens | packages/code/core/core_json.js | 7342 | /*
@author Zakai Hamilton
@component CoreJson
*/
screens.core.json = function CoreJson(me, { core, storage }) {
me.init = function () {
if (me.platform === "server") {
me.request = require("request");
}
};
me.loadComponent = async function (path, useCache = true) {
... | unlicense |
cabloo/express-elect-seed | api/src/core/core.shims.js | 625 | exports = module.exports = addShims;
function addShims() {
Function.prototype.extend = function(parent) {
var child = this;
var args = Array.prototype.slice.call(arguments, 0);
child.prototype = parent;
child.prototype = new (Function.prototype.bind.apply(parent, args))();
child.prototype.constr... | unlicense |
Quarkex/dotfiles | tmux/tmux-battery/scripts/battery_percentage.sh | 812 | #!/usr/bin/env bash
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$CURRENT_DIR/helpers.sh"
print_battery_percentage() {
# percentage displayed in the 2nd field of the 2nd row
if command_exists "pmset"; then
pmset -g batt | grep -o "[0-9]\{1,3\}%"
elif command_exists "upower"; then
lo... | unlicense |
kdoomsday/doomcart | app/audits/EventDao.scala | 201 | package audits
import scala.concurrent.Future
/** Dao for storing and retrieving events */
trait EventDao {
/** Write a new Event to the system */
def write(description: String): Future[Unit]
}
| unlicense |
Whisno/Chrome-Text-Customizer | chrome-extension/options.css | 1764 | body {
text-align: center; }
.clearer {
clear: both; }
.modal {
text-align: left; }
h1 {
margin-bottom: 1.3em; }
.alert {
width: 50%;
margin: auto; }
#rules {
margin-top: 1em; }
.rule {
margin: 1px 10px;
padding: 10px 0;
position: relative;
clear: both;
text-align: left;
border: 1px soli... | unlicense |
dvelle/The-hustle-game-on-facebook-c.2010 | hustle/hustle/nightworld/phpchat/includes/active_tip_word.php | 1509 | <?php
if(empty($_POST['tipname'])||empty($_POST['tipid'])) exit;
include("../theme/language/en/language.php");
echo $_POST['tipid']."<!-|||->";
switch ($_POST['tipname'])
{
case 'select_mode_free': echo $lang['tip_free'];
break;
case 'select_mode_host': echo $lang['tip_host'];
break;
case 'select_mode_local': ec... | unlicense |
hyller/CodeLibrary | Visual C++ Example/第10章 文件操作与注册表编程/实例238——获取目录的创建时间/GetFolderTime/StdAfx.cpp | 215 | // stdafx.cpp : source file that includes just the standard includes
// GetFolderTime.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
| unlicense |
Inspirelife96/ILDiligence | ILDiligence/ILDiligence/UIImage+IL_ContentWithColor.h | 291 | //
// UIImage+IL_ContentWithColor.h
// ILDiligence
//
// Created by XueFeng Chen on 2017/5/14.
// Copyright © 2017年 XueFeng Chen. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIImage (IL_ContentWithColor)
- (UIImage *)il_imageContentWithColor:(UIColor *)color;
@end
| unlicense |
mariusj/contests | srm540/src/RandomColoringDiv2.java | 5179 |
public class RandomColoringDiv2 {
public int getCount(int maxR, int maxG, int maxB, int startR, int startG, int startB, int d1,
int d2) {
int colors = 0;
int minR = Math.max(0, startR - d2);
int minG = Math.max(0, startG - d2);
int minB = Math.max(0, startB - d2);
... | unlicense |
jvazquez/organization | organization/job_offers/constants.py | 334 | import os
# Application constants
APP_NAME = 'job_offers'
INSTALL_DIR = os.path.dirname(os.path.abspath(__file__))
LOG_FORMAT = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
LOG_NAME = os.path.join(INSTALL_DIR, 'job_offers.log')
# Testing fixtures
JOB_OFFER_FIXTURES = os.path.join(INSTALL_DIR, "fixtures/job_... | unlicense |
mlegac/etb | lift/src/main/scala/hr/element/etb/lift/http/js.scala | 357 | package hr.element.etb.lift.http
import net.liftweb.http.js._
import net.liftweb.util.Helpers._
package object js {
case class Prompt(text: String, default: String = "") extends JsExp {
def toJsCmd = "prompt(" + text.encJs + "," + default.encJs + ")"
}
case object ReloadPage extends JsCmd {
def toJsCmd... | unlicense |
gkellogg/gkellogg.github.io | galleries/Bonaire 2007-05/large-28.html | 1873 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><HEAD>
<TITLE>Web Gallery - Bonaire 2007-05-10 16-37-06</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<LINK href="ass... | unlicense |
caffeineshock/dysnomia | config/initializers/exception_notification.rb | 1580 | require 'exception_notification/rails'
require 'exception_notification/sidekiq'
ExceptionNotification.configure do |config|
# Ignore additional exception types.
# ActiveRecord::RecordNotFound, AbstractController::ActionNotFound and ActionController::RoutingError are already added.
# config.ignored_exceptions += ... | unlicense |
HTMLToronto/MallardMayhem | mm/mm.client.duck.js | 7282 | /*globals document, setTimeout, clearTimeout, Audio, navigator */
var MallardMayhem = MallardMayhem || {};
(function () {
"use strict";
MallardMayhem.Duck = function (options) {
var self = this;
this.currentTimeout = null;
this.domElement = document.createElement('span');
th... | unlicense |
davidhh20/APPGI-UPC | Source/Services/GestionInmobiliaria.RESTServices/IUnidadInmobiliarias.cs | 1770 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
namespace GestionInmobiliaria.RESTServices
{
using GestionInmobiliaria.BusinessEntity;
using GestionInmobiliaria.BusinessLogic;
using System.ServiceModel.Web... | unlicense |
ooXei1sh/silex-ske-sandbox | src/SKE/Command/CacheClearCommand.php | 2254 | <?php
namespace SKE\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Compo... | unlicense |
brian-dot-net/writeasync | projects/TraceSample/source/TraceEvent/DynamicTraceEventParser.cs | 49945 | // Copyright (c) Microsoft Corporation. All rights reserved.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Xml;
using Diagnostics.Tracing;
using Diagnostics.Tracing.Parsers;
using FastSerialization;
using Ut... | unlicense |
NizarHafizulllah/simpatenksb | application/modules/kec_siu/views/kec_siu_status_view.php | 29766 | <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/pages/datatables.css">
<link href="<?php echo base_url(); ?>assets/vendors/bootstrapvalidator/css/bootstrapValidator.min.css" rel="stylesheet">
<script type="text/javascript" src="<?php echo base_url(); ?>assets/vendors/bootstrapvalidator/... | unlicense |
TosinRoger/SmartSystemsDesign | src/br/com/tosin/ssd/utils/CONSTANTS_DIRECTIONS.java | 526 | package br.com.tosin.ssd.utils;
/**
* Created by roger on 11/03/17.
*/
public class CONSTANTS_DIRECTIONS {
public static final String NORTH = "N";
public static final String SOUTH = "S";
public static final String WEST = "W";
public static final String EAST = "E";
p... | unlicense |
kivikakk/ifsexplorer | IFSExplorer/MainForm.cs | 9291 | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Reflection;
using System.Windows.Forms;
using IFSExplorer.Properties;
namespace IFSExplorer
{
public partial class MainForm : Form
{
private static readonly Dictionary<int,... | unlicense |
initcz/thermohome-client-rpi | util/analyzeMissingDates.js | 1860 | #!/usr/bin/env node
var http = require('http');
var moment = require('moment');
var server = undefined;
var threshold = undefined;
var units = undefined;
if (!isValid(process.argv)) {
console.error('invalid arguments, expected hostname threshold and units');
process.exit(-1);
}
var request = http.request('http://... | unlicense |
Twissi/deflector | Gruntfile.js | 1998 |
/*******************************************************************************
Add to .git/hooks/pre-commit (and chmod +x) to enable auto-linting/uglifying:
#!/bin/sh
grunt build
if [ $? -ne 0 ]; then
exit 1
fi
git add deflector.min.js
exit 0
*********************************************************************... | unlicense |
Yeah69/BFF.DataVirtualizingCollection | BFF.DataVirtualizingCollection/DataVirtualizingCollection/SyncDataVirtualizingCollection.cs | 2505 | using System;
using System.Reactive;
using System.Reactive.Concurrency;
using System.Reactive.Subjects;
using System.Threading;
using System.Threading.Tasks;
using BFF.DataVirtualizingCollection.PageStorage;
using MrMeeseeks.Reactive.Extensions;
namespace BFF.DataVirtualizingCollection.DataVirtualizingCollection
{
... | unlicense |
cwpc/cwpc.github.io | refs/wrigley-1981-the-population-history-of-england-1541-1871-a-re/index.html | 9742 | <!DOCTYPE html>
<html lang="en-US">
<head>
<base href="http://localhost/wordpress" />
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Wrigley-1981 The population history of England, 1541-1871: a re | Communicating with Prisoners</title>
<link rel='stylesheet' id... | unlicense |
Offirmo/simpli | modules/offirmo/webstorm/test/run_me_to_install_oss_on_current_machine.sh | 488 | #! /bin/bash
## Test of SIMPLI provisionning module
source ../../../../test/test_common.sh "webstorm module provisionning - manual"
## load simpli which will do apt-get update
export SIMPLI_SKIP_APT_UPDATE=1
export SIMPLI_SKIP_APT_UPGRADE=1
source "${SIMPLI_DIR}/bin/index.sh"
OSL_EXIT_abort_execution_if_bad_retcode ... | unlicense |
CurtisLeeBolin/Examples_Python | UART01.py | 567 | #!/usr/bin/python
# uart-eg01.py
#
# to run on the other end of the UART
# screen /dev/ttyUSB1 115200
import serial
def readlineCR(uart):
line = b''
while True:
byte = uart.read()
line += byte
if byte == b'\r':
return line
uart = serial.Serial('/dev/ttyUSB0', baudrate=115200, timeout=1)
while True:
uart... | unlicense |
AdamHarter/flaming-octo-wookie | server/server.cpp | 444 | #include "serverBase.h"
int main(int argc, char** argv)
{
unsigned portNumber = 12943;
if(argc >= 2)
{
portNumber = atoi(argv[1]);
}
try
{
asio::io_service io_service;
asio::ip::tcp::endpoint endpoint(asio::ip::tcp::v4(), portNumber);
TCPServer server(io_service, endpoint);
... | unlicense |
cc14514/hq6 | hq-web/src/main/java/org/hyperic/hq/ui/server/session/DashboardManagerImpl.java | 13750 | /*
* NOTE: This copyright does *not* cover user programs that use HQ
* program services by normal system calls through the application
* program interfaces provided as part of the Hyperic Plug-in Development
* Kit or the Hyperic Client Development Kit - this is merely considered
* normal use of the program, and do... | unlicense |
jbrackins/scheduling-research | src/location.py | 3581 | from rec import CourseRecord
from score import RoomScore
from evaluation import ScheduleEvaluation
FULL_HOURS = 8 # 8:00AM - 4:00PM utilization
PARTIAL_HOURS = FULL_HOURS * 0.75 #75%
HALF_HOURS = FULL_HOURS * 0.50 #50%
SPARSE_HOURS = FULL_HOURS * 0.25 #25%
class LocationScore:
def __init__(self, evals=No... | unlicense |
picodotdev/elblogdepicodev | HelloWorldActiviti/src/main/java/es/com/blogspot/elblogdepicodev/activiti/Errores.java | 1554 | package es.com.blogspot.elblogdepicodev.activiti;
import java.text.MessageFormat;
import java.util.HashMap;
import java.util.Map;
import org.activiti.engine.ProcessEngine;
import org.activiti.engine.ProcessEngineConfiguration;
import org.activiti.engine.ProcessEngines;
import org.activiti.engine.RepositoryService;
im... | unlicense |
beamka/Polyclinic | Clinic/src/test/java/ua/clinic/tests/integration/UserdetailsControllerTest.java | 3482 | package ua.clinic.tests.integration;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfi... | unlicense |
kodybrown/dos | open.bat | 21 | @"%~dp0edit.bat" %*
| unlicense |
filipesperandio/google_tts2 | lib/google_tts.rb | 1167 | require 'google_tts/connector'
require 'google_tts/query_builder'
require 'google_tts/parser'
require 'google_tts/mp3writer'
module GoogleTts
VERSION = "0.1.0"
class Client
include GoogleTts
def initialize(connector = Connector.new,
query_builder = QueryBuilder.new,
... | unlicense |
sirsz/Elpis | Elpis/Source/Model/Duty.vb | 9492 |
Imports System.Collections.Generic
Public Enum DutyType
Undefined
Lekarska
Pielęgniarska
Other
End Enum
Public Class Duty
' Formating:
' f_ - form value
' d_ data base value
' other
'Public id_ As UInteger
Public d_id_ As Integer
Public f_id_ As Integer
Public f_... | unlicense |
thinkAmi-sandbox/Django_iis_global_static_sample | redblue_project/urls.py | 991 | """redblue_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
C... | unlicense |
Maximetinu/No-Mans-Flappy-Unity | Assets/Scripts/MenuButtons/ShowModeA.cs | 1678 | using UnityEngine;
using UnityEngine.SceneManagement;
public class ShowModeA : MonoBehaviour {
public Texture AModeTexture;
public Texture BModeTexture;
private PlayerControllerBMode playerControllerBMode;
private GameController gameController;
void Start () {
InitPlayerController();
... | unlicense |
Slesa/Poseidon | src/packages/FAKE/docs/apidocs/fake-git-merge-mergetype.html | 8346 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>MergeType - FAKE - F# Make</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="Steffen Forkmann, Mauricio Scheffer, Colin Bull">
<... | unlicense |
DeanoC/fpgatools | libs/parts.c | 90903 | //
// Author: Wolfgang Spraul
//
// This is free and unencumbered software released into the public domain.
// For details see the UNLICENSE file at the root of the source tree.
//
#include "model.h"
#include "control.h"
// for slx9 and slx9
#define NUM_ROWS 4
#define FRAMES_DATA_START 0
//#define FRAMES_DATA_LEN ... | unlicense |
prakhar1989/rust-rosetta | src/loops-for.rs | 251 | // Implements http://rosettacode.org/wiki/Loops/For
// not_tested
use std::iter;
fn main() {
for i in iter::range_inclusive(1u, 5) {
for _ in iter::range_inclusive(1u, i) {
print!("*")
}
println!("")
}
}
| unlicense |
mlavergn/cheatsheets | xcode.md | 1406 | # Xcode Snippets
## CLI Build
```bash
xcodebuild -list -project Project.xcodeproj
xcodebuild -scheme iOS build
```
## CLI Test
```bash
xcodebuild test -project Project.xcodeproj -scheme Tests -destination 'platform=iOS Simulator,name=iPad Air 2,OS=10.0'
```
## CLI xcrun
```bash
xcrun -sdk iphoneos swiftc -target ... | unlicense |
codeApeFromChina/resource | frame_packages/java_libs/spring-2.5.6-src/src/org/springframework/util/CollectionUtils.java | 8998 | /*
* Copyright 2002-2008 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | unlicense |
belfastcares/belfast-cares-app | README.md | 621 | # belfast-cares-app
### Prerequisites
- NPM installed : https://nodejs.org/en/download/
- Git installed : https://git-scm.com/download/win
- Java 8 JDK : http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
- Android SDK : https://developer.android.com/studio/index.html
### Setting up ... | unlicense |
seladb/PcapPlusPlus | Packet++/src/IgmpLayer.cpp | 14266 | #define LOG_MODULE PacketLogModuleIgmpLayer
#include "IgmpLayer.h"
#include "PacketUtils.h"
#include "Logger.h"
#include <string.h>
#include "EndianPortable.h"
namespace pcpp
{
/*************
* IgmpLayer
*************/
IgmpLayer::IgmpLayer(IgmpType type, const IPv4Address& groupAddr, uint8_t maxRes... | unlicense |
alpha123/kakoune | src/line_modification.cc | 6123 | #include "line_modification.hh"
#include "buffer.hh"
#include "unit_tests.hh"
namespace Kakoune
{
static LineModification make_line_modif(const Buffer::Change& change)
{
LineCount num_added = 0, num_removed = 0;
if (change.type == Buffer::Change::Insert)
{
num_added = change.end.line - change.beg... | unlicense |
epegzz/Karabiner-Elements | src/apps/lib/KarabinerKit/KarabinerKit/ConfigurationManager.h | 284 | // -*- Mode: objc -*-
@import Cocoa;
#import "CoreConfigurationModel.h"
@interface KarabinerKitConfigurationManager : NSObject
@property(readonly) KarabinerKitCoreConfigurationModel* coreConfigurationModel;
+ (KarabinerKitConfigurationManager*)sharedManager;
- (void)save;
@end
| unlicense |