Skip to content

Instantly share code, notes, and snippets.

This is a test, This is only a test.
@kenwilcox
kenwilcox / Roy-G.-Biv.markdown
Created May 17, 2014 07:51
A Pen by kenwilcox.

Roy G. Biv

Playing with bubbles.js on codecademy.com, thought it would be fun to use the whole rainbow.

A Pen by kenwilcox on CodePen.

License.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace CSharpBug
{
class Program
{
@kenwilcox
kenwilcox / vmdk-shrink.md
Last active August 29, 2015 14:07
How to properly shrink the VMWare disk image

I know this is found online, This Gist is so I can easily find it.

  • Delete any Snapshots
  • In a terminal of the guest OS type:
  cat /dev/zero > whipefile; rm whipefile
  # That command fills the disk with zeros, once full it removes the file - This can take some time
  • From the terminal of the host OS type:
@kenwilcox
kenwilcox / Pred
Last active August 29, 2015 14:07
using System;
using System.Collections.Generic;
namespace Pred
{
public class Pred
{
static void Main()
{
List<string> list = new List<string>();
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
@kenwilcox
kenwilcox / setup.md
Last active August 29, 2015 14:08 — forked from bendyorke/setup.md
@kenwilcox
kenwilcox / gist:ce4da86f7264a85ff848
Created January 30, 2015 23:16
Setting IE Emulation
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Win32;
using System.Windows.Forms;
namespace FixIE
{
public class IEEmulation
import UIKit
import QuartzCore
class ViewController: UIViewController {
@IBOutlet weak var label: UILabel
@IBOutlet weak var counter: UILabel
override func viewDidLoad() {
super.viewDidLoad()
div#main.container>h1+table>tr.rows*4>td.cols*6>{Item $}^p