Skip to content

Instantly share code, notes, and snippets.

@oraricha
oraricha / JSONView Dark Theme.css
Created October 23, 2017 08:37 — forked from shirish87/JSONView Dark Theme.css
This is a dark theme for JSONView chrome extension
body {
white-space: pre;
font-family: monaco, Consolas, Menlo, monospace;
color: white;
background: #282a36;
font-size: 12px;
line-height: 1.5m;
}
.property {
@oraricha
oraricha / iphone-simulator.sh
Last active July 18, 2016 13:23
iphone simulator command line
open -a Simulator --args -71CC06B3-D28F-4414-AA44-FA9A6A3D0403
#create more ids:
xcrun simctl list
@oraricha
oraricha / Mac SSH Autocomplete
Created June 29, 2016 13:01 — forked from aliang/Mac SSH Autocomplete
Add auto complete to your ssh, put into your .bash_profile
_complete_ssh_hosts ()
{
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
comp_ssh_hosts=`cat ~/.ssh/known_hosts | \
cut -f 1 -d ' ' | \
sed -e s/,.*//g | \
grep -v ^# | \
uniq | \
grep -v "\[" ;
@oraricha
oraricha / holidays.js
Created December 22, 2013 13:10
Snowflakes canvas generator
// as seen at http://gtaforums.com/
$j(document).ready(function() {
window.disableSnow = false;
//canvas init
var canvas = document.getElementById("canvas");
var ctx = canvas.getContext("2d");
//canvas dimensions
@oraricha
oraricha / printable-image-replacement-mixin
Created December 9, 2013 16:28
*printable* image replacement Sass mixin
// *printable* image replacement
@mixin printable-image-replacement($imageUrl) {
display: list-item;
list-style-image: url($imageUrl);
list-style-position: inside;
letter-spacing: -1000em;
font-size: 1pt;
color: #fff;
height: image-height($imageUrl);
width: image-width($imageUrl);
@oraricha
oraricha / stickyHeader.js
Created October 28, 2013 17:12
Sticky thead for table Headers - a jquery plugin
/*
Massively Improved, Fixed & Documented by @OrAricha
Based on http://web-gladiator.com/stickythead/Index.html
@author: Konstantin Meiklyar - 2013
http://web-gladiator.com/stickythead/Index.html
dependancies: jquery