Skip to content

Instantly share code, notes, and snippets.

View siathalysedI's full-sized avatar
🎯
Focusing

Arnstein Henriksen siathalysedI

🎯
Focusing
View GitHub Profile
@kellyrob99
kellyrob99 / KulerThemeVisualization.groovy
Created June 17, 2012 20:19
Simple SwingBuilder application that reads in a file of mapped color themes and visualizes the results
import groovy.swing.*
import java.awt.*
import javax.swing.*
/**
* Reads in a map of color themes, each with five hex color values, and displays them in a Swing component.
*/
assert args.size() == 1, 'The name or path to a file containing a themeMap script variable must be supplied on the command line'
def themeMapFileName = args[0]
@kellyrob99
kellyrob99 / markupBuilderTesting.groovy
Created June 17, 2012 21:08
Create iterm2 plist xml color preset files ready for import.
import groovy.xml.StreamingMarkupBuilder
import groovy.xml.XmlUtil
import java.awt.Color
/**
* Reads in a map of color themes, each with five hex color values, and maps them to an iterm color preset plist file.
*/
assert args.size() == 1, 'The name or path to a file containing a themeMap script variable must be supplied on the command line'
def themeMapFileName = args[0]
@josejuan
josejuan / microProber.html
Created July 10, 2012 20:35
micro probador de teoremas
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Micro Verificador de Teoremas</title>
<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script>
function MicroVerificador(reglas, consultas) {
var w = ["siempre_que", "no", "y", "o", "implica_que", "cierto", "falso", "(", ")"];
var clear = function(s){
@pixelwhip
pixelwhip / block.tpl.php
Created July 14, 2012 16:20
Modular Stylesheets - Design 4 Drupal
<?php
/**
* @file
* Default theme implementation to display a block.
*
* Available variables:
* - $block->subject: Block title.
* - $content: Block content.
* - $block->module: Module that generated the block.
@kevinelliott
kevinelliott / osx-10.9-setup.md
Last active January 23, 2026 22:25
Clean Install – Mac OS X 10.9 Mavericks

Mac OS X 10.9 Mavericks

Custom recipe to get OS X 10.9 Mavericks running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install.

Install Software

The software selected is software that is "tried and true" --- software I need after any fresh install. I often install other software not listed here, but is handled in a case-by-case basis.

Install from App Store

@stevebriskin
stevebriskin / gist:3208139
Created July 30, 2012 16:15
JSCH performance test
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Date;
import java.util.Properties;
import java.util.Timer;
import java.util.TimerTask;
@santoshrajan
santoshrajan / server.ls
Created August 11, 2012 05:52
A LispyScript Server example with nodejs, expressjs, twitter bootstrap
;; http://lispyscript.com
;; LispyScript example using nodejs, expressjs and twitter bootstrap
;; LispyScript templates are written in LispyScript!
;; Html5 templates support all html5 tags
;; The express server
(var express (require "express"))
(var app (express))
(app.listen 3000)
@coderoshi
coderoshi / gist:3729593
Last active November 24, 2025 14:42
A Very Short Guide to Writing Guides

A Very Short Guide to Writing Guides

This is just a few thoughts on the topic of writing technical guides. This was intended for Basho's engineering team, but this may apply to open source projects in general.

Audience

It's commonly preached that the first step in writing is to identify your audience; to whom are you writing? This is the most well known, most repeated, and most overlooked step of writing in general and technical writing in particular. Take this document, for example. My audience is technical people who need to communicate technical information, and not teenagers, so I shy away from images of pop icons and memes. I use jargon and words like "identify" rather than "peep this".

Pronouns

@nikcub
nikcub / README.md
Created October 4, 2012 13:06
Facebook PHP Source Code from August 2007
@amaxwell01
amaxwell01 / .vimrc
Created November 6, 2012 23:31
My .vimrc file
"=== Colors ==="
colorscheme andrewmaxwell-1
syntax on
set number " Show line numbers
set cursorline " Highlight the currently selected line
set undolevels=1000 " Set undo amount to 1000
set ignorecase " Enable case insenstive search
set ruler " show current position at bottom