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
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...
AetherWorks/SecretSanta
java/SecretSanta.java
Java
unlicense
2,008
#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 ...
Firewiz/fireOS
fat.c
C
unlicense
1,548
<?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...
dvelle/The-hustle-game-on-facebook-c.2010
hustle/hustle/arcade/search.php
PHP
unlicense
2,075
/* 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...
solring/TWCompanyTree
website/static/lib/css/d3-bootstrap-plugins.css
CSS
unlicense
3,823
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...
clilystudio/NetBook
allsrc/com/google/gson/Gson$FutureTypeAdapter.java
Java
unlicense
917
<?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')) ); } ...
Offirmo/base-wordpress
backupbuddy_backup/wp-content/themes/Etendard/admin/widgets/video.php
PHP
unlicense
3,281
<?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> ...
jameymcelveen/com.flyingtigersrc.www
wp-content/themes/sport/inc/templates/footer/template_footer_post.php
PHP
unlicense
841
<!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...
anish7/anish7.github.io
_site/planets/terrestrial/mars.html
HTML
unlicense
1,788
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...
will-gilbert/SmartGWT-Mobile
mobile/src/main/java/com/smartgwt/mobile/client/widgets/Action.java
Java
unlicense
1,126
class Enrollment < ActiveRecord::Base belongs_to :student belongs_to :course end
TSwimson/GA
week4/tue/active_record_associations/college/app/models/enrollment.rb
Ruby
unlicense
85
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 ##################...
SPbAU-ProgrammingParadigms/materials
python_2/common_objects.py
Python
unlicense
4,690
//------------------------------------------------------------------------------ // <auto-generated> // 此代码由工具生成。 // 运行时版本: 2.0.50727.42 // // 对此文件的更改可能会导致不正确的行为,并且如果 // 重新生成代码,这些更改将丢失。 // </auto-generated> //------------------------------------------------------------------------------ namespace Mati...
nature-track/wenCollege-CSharp
Web/ValidateCode.aspx.designer.cs
C#
unlicense
814
'use strict'; var app = angular.module('App', ['App.controller']);
mirzadelic/django-social-example
django_social_example/django_app/public/js/app/app.js
JavaScript
unlicense
68
{% 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> ...
agile-course/news_feed
news_feed/templates/pages/home.html
HTML
unlicense
1,377
/* ********************************************************************** /* * 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...
cc14514/hq6
hq-installer/src/main/java/org/hyperic/tools/ant/PropertiesFileMergerTask.java
Java
unlicense
8,153
<!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...
mikewolfli/workflow
doxygen/html/classlogin__dlg.html
HTML
unlicense
12,693
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...
ovaskevich/sochat
src/com/sochat/client/ServerPublicKey.java
Java
unlicense
732
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:"...
zerocruft/flux
config.go
GO
unlicense
645
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...
chrsjwilliams/RTS_Blokus
Assets/Scripts/Pieces/Tasks/InitialBuildingEntryAnimation.cs
C#
unlicense
2,097
<h3>Public products 1</h3>
dekloni/MarketPlace
MarketPlaceUI/public-products.html
HTML
unlicense
29
// 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...
KubaO/stackoverflown
questions/html-get-24965972/main.cpp
C++
unlicense
1,330
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 { //...
LAGIdiot/NetGore
NetGore/Core/CommandLineSwitchHelper.cs
C#
unlicense
4,642
#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)...
miansari/sorting-programs-in-C
heapsort.c
C
unlicense
1,129
#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...
reenigne/reenigne
include/alfe/parser.h
C
unlicense
17,446
// 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...
2kranki/libCmn
programs/c_defs/src/c_defs.c
C
unlicense
3,011
--- 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...
USFWS/southeast
site/content/events/2019-wolf-creek-national-fish-hatchery-open-house.md
Markdown
unlicense
1,583
#include_next <cxxabi.h>
automeka/automeka
lib/std/include/cxxabi.h
C
unlicense
25
<!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...
voec/melonpoop
get twemoji.html
HTML
unlicense
518
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...
ElionHaxhi/Ribbit
src/com/elionhaxhi/ribbit/ui/RecipientsActivity.java
Java
unlicense
7,505
<!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> ...
muan/hello-world
humans/christennguyen.html
HTML
unlicense
681
--- 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 ...
philoserf/wp-sync
_pages/rules.md
Markdown
unlicense
1,091
<?php /** * Pizza E96 * * @author: Paul Melekhov */ namespace App\Http; /** * Поднятие этого исключения служит сигналом для FrontController о том, * что нужно отобразить страницу с ошибкой HTTP/1.1 400 Bad Request */ class BadRequestException extends Exception { public function __construct($message = "", $...
gugglegum/pizza
app/library/Http/BadRequestException.php
PHP
unlicense
592
# ambuttu.sh ambuttu
Rat-S/ambuttu.sh
README.md
Markdown
unlicense
21
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...
AnimeDB/adb-browser-frontend
adb/frontend/auth/decorators.py
Python
unlicense
2,476
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...
IntershopCommunicationsAG/partnerpay-example
s_payment_partnerpay/ac_payment_partnerpay/javasource/com/intershop/adapter/payment/partnerpay/internal/service/capture/CaptureFactoryImpl.java
Java
unlicense
578
#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); ...
cartman300/Kernel
3rdParty/PDCLib/platform/win32/functions/threads/mtx_lock.c
C
unlicense
614
// 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/> ...
litesoft/LiteSoftCommonFoundation
src/org/litesoft/commonfoundation/charstreams/CharSource.java
Java
unlicense
2,332
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...
C4K3/Jail
src/main/java/net/simpvp/Jail/JailedPlayer.java
Java
unlicense
1,551
/* * 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...
cc14514/hq6
hq-web/src/main/java/org/hyperic/hq/ui/action/portlet/autoDisc/AIPlatformWithStatus.java
Java
unlicense
2,391
#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*...
honzasp/spiral
rt/include/spiral/io.hpp
C++
unlicense
2,505
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...
bodydomelight/tij-problems
src/generics/p19/Good.java
Java
unlicense
619
var Theme = (function() { var Theme = function() { }; return Theme; })(); module.exports = Theme;
frostney/dropoff
lib/theme/index.js
JavaScript
unlicense
119
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...
ps8v9/lcasecbl
README.md
Markdown
unlicense
2,008
#!/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...
woftor/pitemps
pitemps.sh
Shell
unlicense
12,490
# mentat-example Example app for the hapi.js microframework mentat
alivesay/mentat-example
README.md
Markdown
unlicense
67
# -*- 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]...
pramodh-bn/learn-data-edx
Week 7/qp.py
Python
unlicense
6,393
# sets the last write time to now # usage: ls -Recursion | .\touch $now = Get-Date foreach ($i in $input) { $i.LastWriteTime = $now echo $i.Name }
lincore81/ccscripts
touch.ps1
PowerShell
unlicense
156
--- 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} --- ## ...
open-austin/open-austin-org
advocacy/index.md
Markdown
unlicense
7,416
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...
JohannesBeranek/electron-pixels
renderer.js
JavaScript
unlicense
11,380
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...
jasonfagan/game-experiments
physics/src/main/java/net/yottabyte/game/BouncyBall.java
Java
unlicense
3,996
// // 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
mrjlovetian/OC-Category
OC-Category/Classes/UIKit/UITextView/UITextView+PinchZoom.h
C
unlicense
304
<!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...
patinyanudklin/git_testing
cpe-2015-projects/vendors/jpeg2000/lib/doc/html/invert_8c.html
HTML
unlicense
10,130
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...
lsilvestres/Exemplos
Arquitetura Modelo DDD/ProjetoModelo.Infra.CrossCutting.Identity/ApplicationUser.cs
C#
unlicense
2,453
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...
amitsaha/learning
python/sqla_learning/many_many_relation.py
Python
unlicense
3,275
/************************************************************************** * 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...
OHDSI/Vocabulary-v5.0
NDC_SPL/load_stage.sql
SQL
unlicense
59,912
/* @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) { ...
zakaihamilton/screens
packages/code/core/core_json.js
JavaScript
unlicense
7,342
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...
cabloo/express-elect-seed
api/src/core/core.shims.js
JavaScript
unlicense
625
#!/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...
Quarkex/dotfiles
tmux/tmux-battery/scripts/battery_percentage.sh
Shell
unlicense
812
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] }
kdoomsday/doomcart
app/audits/EventDao.scala
Scala
unlicense
201
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...
Whisno/Chrome-Text-Customizer
chrome-extension/options.css
CSS
unlicense
1,764
<?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...
dvelle/The-hustle-game-on-facebook-c.2010
hustle/hustle/nightworld/phpchat/includes/active_tip_word.php
PHP
unlicense
1,509
// 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"
hyller/CodeLibrary
Visual C++ Example/第10章 文件操作与注册表编程/实例238——获取目录的创建时间/GetFolderTime/StdAfx.cpp
C++
unlicense
215
// // 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
Inspirelife96/ILDiligence
ILDiligence/ILDiligence/UIImage+IL_ContentWithColor.h
C
unlicense
291
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); ...
mariusj/contests
srm540/src/RandomColoringDiv2.java
Java
unlicense
5,179
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_...
jvazquez/organization
organization/job_offers/constants.py
Python
unlicense
334
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...
mlegac/etb
lift/src/main/scala/hr/element/etb/lift/http/js.scala
Scala
unlicense
357
<!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...
gkellogg/gkellogg.github.io
galleries/Bonaire 2007-05/large-28.html
HTML
unlicense
1,873
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 += ...
caffeineshock/dysnomia
config/initializers/exception_notification.rb
Ruby
unlicense
1,580
/*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...
HTMLToronto/MallardMayhem
mm/mm.client.duck.js
JavaScript
unlicense
7,282
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...
davidhh20/APPGI-UPC
Source/Services/GestionInmobiliaria.RESTServices/IUnidadInmobiliarias.cs
C#
unlicense
1,770
<?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...
ooXei1sh/silex-ske-sandbox
src/SKE/Command/CacheClearCommand.php
PHP
unlicense
2,254
// 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...
brian-dot-net/writeasync
projects/TraceSample/source/TraceEvent/DynamicTraceEventParser.cs
C#
unlicense
49,945
<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/...
NizarHafizulllah/simpatenksb
application/modules/kec_siu/views/kec_siu_status_view.php
PHP
unlicense
29,766
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...
TosinRoger/SmartSystemsDesign
src/br/com/tosin/ssd/utils/CONSTANTS_DIRECTIONS.java
Java
unlicense
526
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,...
kivikakk/ifsexplorer
IFSExplorer/MainForm.cs
C#
unlicense
9,291
#!/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://...
initcz/thermohome-client-rpi
util/analyzeMissingDates.js
JavaScript
unlicense
1,860
/******************************************************************************* 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 *********************************************************************...
Twissi/deflector
Gruntfile.js
JavaScript
unlicense
1,998
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 { ...
Yeah69/BFF.DataVirtualizingCollection
BFF.DataVirtualizingCollection/DataVirtualizingCollection/SyncDataVirtualizingCollection.cs
C#
unlicense
2,505
<!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...
cwpc/cwpc.github.io
refs/wrigley-1981-the-population-history-of-england-1541-1871-a-re/index.html
HTML
unlicense
9,742
#! /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 ...
Offirmo/simpli
modules/offirmo/webstorm/test/run_me_to_install_oss_on_current_machine.sh
Shell
unlicense
488
#!/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...
CurtisLeeBolin/Examples_Python
UART01.py
Python
unlicense
567
#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); ...
AdamHarter/flaming-octo-wookie
server/server.cpp
C++
unlicense
444
/* * 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...
cc14514/hq6
hq-web/src/main/java/org/hyperic/hq/ui/server/session/DashboardManagerImpl.java
Java
unlicense
13,750
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...
jbrackins/scheduling-research
src/location.py
Python
unlicense
3,581
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...
picodotdev/elblogdepicodev
HelloWorldActiviti/src/main/java/es/com/blogspot/elblogdepicodev/activiti/Errores.java
Java
unlicense
1,554
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...
beamka/Polyclinic
Clinic/src/test/java/ua/clinic/tests/integration/UserdetailsControllerTest.java
Java
unlicense
3,482
@"%~dp0edit.bat" %*
kodybrown/dos
open.bat
Batchfile
unlicense
21
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, ...
filipesperandio/google_tts2
lib/google_tts.rb
Ruby
unlicense
1,167
 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_...
sirsz/Elpis
Elpis/Source/Model/Duty.vb
Visual Basic
unlicense
9,492
"""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...
thinkAmi-sandbox/Django_iis_global_static_sample
redblue_project/urls.py
Python
unlicense
991
using UnityEngine; using UnityEngine.SceneManagement; public class ShowModeA : MonoBehaviour { public Texture AModeTexture; public Texture BModeTexture; private PlayerControllerBMode playerControllerBMode; private GameController gameController; void Start () { InitPlayerController(); ...
Maximetinu/No-Mans-Flappy-Unity
Assets/Scripts/MenuButtons/ShowModeA.cs
C#
unlicense
1,678
<!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"> <...
Slesa/Poseidon
src/packages/FAKE/docs/apidocs/fake-git-merge-mergetype.html
HTML
unlicense
8,346
// // 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 ...
DeanoC/fpgatools
libs/parts.c
C
unlicense
90,903
// 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!("") } }
prakhar1989/rust-rosetta
src/loops-for.rs
Rust
unlicense
251
# 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 ...
mlavergn/cheatsheets
xcode.md
Markdown
unlicense
1,406
/* * 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...
codeApeFromChina/resource
frame_packages/java_libs/spring-2.5.6-src/src/org/springframework/util/CollectionUtils.java
Java
unlicense
8,998
# 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 ...
belfastcares/belfast-cares-app
README.md
Markdown
unlicense
621
#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...
seladb/PcapPlusPlus
Packet++/src/IgmpLayer.cpp
C++
unlicense
14,266
#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...
alpha123/kakoune
src/line_modification.cc
C++
unlicense
6,123
// -*- Mode: objc -*- @import Cocoa; #import "CoreConfigurationModel.h" @interface KarabinerKitConfigurationManager : NSObject @property(readonly) KarabinerKitCoreConfigurationModel* coreConfigurationModel; + (KarabinerKitConfigurationManager*)sharedManager; - (void)save; @end
epegzz/Karabiner-Elements
src/apps/lib/KarabinerKit/KarabinerKit/ConfigurationManager.h
C
unlicense
284