Skip to content

Instantly share code, notes, and snippets.

View zeroeth's full-sized avatar
🤖
🐱 🤖 🐱 🤖

[0] zeroeth

🤖
🐱 🤖 🐱 🤖
View GitHub Profile
<?php
// app/start/global.php
/*
|--------------------------------------------------------------------------
| Application Error Logger
|--------------------------------------------------------------------------
|
| Here we will configure the error logger setup for the application which
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@zeroeth
zeroeth / .vimrc
Created November 3, 2013 04:28
vimrc
" Indentation Settings
set tabstop=2
set shiftwidth=2
set expandtab
" Indentation/Whitespace Visibility
set list listchars=tab:»·,trail:·
import org.nlogo.api.*;
public class CropCalculatorList extends DefaultReporter {
public Syntax getSyntax ()
{
int[] arguments = new int[] {Syntax.NumberType ()};
int return_value = Syntax.ListType ();
return Syntax.reporterSyntax(arguments, return_value);
}
@zeroeth
zeroeth / _.md
Created October 1, 2013 03:21
processing basics
/**
* Like, basically PERFECT scrollbars
*/
/*
It's pure CSS.
Since a quick google search will confirm people going crazy about Mac OS Lion scrollbars...
this has no fade-out effect.
In Mac OS Lion, the lowest common denominator is always showing scrollbars by a setting.
@zeroeth
zeroeth / constructor_styles.cpp
Created September 16, 2013 06:55
Looking at ways of creating named parameters in C/C++ that's aesthetically pleasing.
/* TYPE 1 */
Spot left_spot = Spot (/* eye: */ 0, /* position: */ 5, /* width: */ 3, /* color: */ led_strip.Color (5, 0, 0));
/* TYPE 2 */
Spot left_spot = Spot ( /* eye */ 0,
/* position */ 5,
/* width */ 3,
/* color */ led_strip.Color (5, 0, 0));
/*
* Copyright (c) 2010 Tobias Schneider
* This script is freely distributable under the terms of the MIT license.
*/
(function(){
var UPC_SET = {
"3211": '0',
"2221": '1',
"2122": '2',
@zeroeth
zeroeth / dabblet.css
Created September 10, 2013 17:40
Dropdown with Triangle pointer with Shadows
/*
Dropdown with Triangle pointer with Shadows
*/
body {
padding: 100px;
font: 100%/1.3 "helvetica neue", helvetica, arial, sans-serif;
text-shadow: 1px 1px 1px #f1f1f1;
}
/**
* Cubic Bezier CSS3 transitions emulator
*
* See this post for more details
* http://st-on-it.blogspot.com/2011/05/calculating-cubic-bezier-function.html
*
* Copyright (C) 2011 Nikolay Nemshilov
*/
function Bezier(p1,p2,p3,p4) {
// defining the bezier functions in the polynomial form