Skip to content

Instantly share code, notes, and snippets.


Shilo Shilo

View GitHub Profile
jamztang / LICENSE
Created Jan 6, 2012
Creating a placeholder UIImage dynamically with color
Copyright (c) 2013 Jamz Tang <>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
skrb /
Created Apr 8, 2012
JavaFX WebView Sample
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.StackPane;
import javafx.scene.web.WebEngine;
import javafx.scene.web.WebView;
import javafx.stage.Stage;
public class Test extends Application {
conorbuck / angle-between-points.js
Created May 5, 2012
JavaScript: Find the angle between two points
View angle-between-points.js
var p1 = {
x: 20,
y: 20
var p2 = {
x: 40,
y: 40
Botffy /
Created Oct 9, 2012
simple Java NIO chat server
package niochat;
import java.nio.*;
import java.nio.channels.*;
import java.util.*;
public class NiochatServer implements Runnable {
private final int port;
xero / css-injection.html
Last active Dec 30, 2020
css style injection via jQuery. basically calling body/head append with a style tag and your own css will add a new tag and your styles to the bottom of the page/head and override any existing ones. why is this useful? imagine embedding a single js file into the page and defining your own styles (think widget for a client), or loading css via aj…
View css-injection.html
<!DOCTYPE html>
<title>css injection |</title>
<script type="text/javascript" src="//"></script>
<style type="text/css">
font: normal 12pt "Times New Roman", serif;
background: #ccc;
color: #000066;
shpakovski /
Last active Dec 15, 2015
How to hide iOS Simulator when you run Xcode Tests.
  1. Save Tests.scpt to the folder ~/.Xcode/
  2. Open the folder ~/.Xcode/ in
  3. Perform the command chmod +x ./Tests.scpt in
  4. Open Xcode ➭ Behaviors ➭ Testing Succeeds
  5. Choose ~/.Xcode/Tests.scpt in the Run popup
  6. Open Xcode ➭ Behaviors ➭ Testing Fails and repeat
Shilo / NSString+XML.h
Last active Dec 22, 2015
Customizable string XML parser for NSString, NSMutableString, NSAttributedString, and NSMutableAttributedString.
View NSString+XML.h
// NSString+XML.h
// Customizable string XML parser for NSString, NSMutableString, NSAttributedString, and NSMutableAttributedString.
// Created by Shilo White on 8/31/13.
// Copyright (c) 2013 XIDA Design & Technik. All rights reserved.
#import <Foundation/Foundation.h>
Shilo /
Created Oct 24, 2013
Bash script command to recursively remove ".svn" directory from currently directory.
rm -rf `find . -type d -name .svn`
rcotrina94 / How to use Images as Radio
Last active Dec 29, 2020
How to use images for radio buttons (input-radio).
View How to use Images as Radio
balupton /
Last active Jul 15, 2020
Installing ChromiumOS

Install ChromiumOS

  1. Get Chromium OS from one of the following places
    1. Download the vanilla build (old but stable):
      1. NOTE: Password is facepunch
    2. Download the nightly build (sync doesn't work):
      1. NOTE: If you want developer mode, you must change _base_ in the download URL to _test_ as the base image does not have developer tools enabled
      2. NOTE: Password is unknown, instructions for working around this are provided later
      3. NOTE: I could not get syncing working with this build, perhaps due to no API KEYS being provided???
      4. NOTE: I could not move past the welcome screen on the 64bit build due to no network being found (32bit worked)
You can’t perform that action at this time.