This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
KeyPress event, serial 40, synthetic NO, window 0x2600001, | |
root 0x93, subw 0x0, time 63046084, (824,397), root:(828,422), | |
state 0x0, keycode 32 (keysym 0x6f, o), same_screen YES, | |
XLookupString gives 1 bytes: (6f) "o" | |
XmbLookupString gives 1 bytes: (6f) "o" | |
XFilterEvent returns: False | |
KeyPress event, serial 40, synthetic NO, window 0x2600001, | |
root 0x93, subw 0x0, time 63046247, (824,397), root:(828,422), | |
state 0x0, keycode 30 (keysym 0x75, u), same_screen YES, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.swift | |
// ContainerTimingBugDemo | |
// | |
// Created by Jason Pepas on 11/12/15. | |
// Copyright © 2015 Jason Pepas. All rights reserved. | |
// | |
/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.swift | |
// ContainerTimingBugDemo | |
// | |
// Created by Jason Pepas on 11/12/15. | |
// Copyright © 2015 Jason Pepas. All rights reserved. | |
// | |
/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//: Playground - noun: a place where people can play | |
import UIKit | |
struct Item { | |
var price: Int | |
var count: Int | |
} | |
enum VendingMachineError: ErrorType { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//: Playground - noun: a place where people can play | |
import UIKit | |
//: Playground - noun: a place where people can play | |
import UIKit | |
struct Item { | |
var price: Int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// paste this into a playground | |
import Foundation | |
class Car { | |
var name : String | |
init(name : String) { | |
self.name = name | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swagger: '2.0' | |
info: | |
version: 1.0.0 | |
title: PetStore on Heroku | |
description: | | |
**This example has a working backend hosted in Heroku** | |
You can try all HTTP operation described in this Swagger spec. | |
Find source code of this API [here](https://github.com/mohsen1/petstore-api) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Install dpkg with `brew install dpkg libelf` before running this script | |
import argparse | |
import sys | |
import gzip | |
import urllib | |
import urlparse | |
import posixpath | |
import cStringIO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in `ls -1t *.tar.lzo | tail -n+4` | |
do | |
rm $i | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# create_yosemite_iso.sh: Create a bootable .iso OS X Yosemite installer (for use with e.g. VirtualBox) | |
# See https://gist.github.com/cellularmitosis/6e902579296e82ec6273 | |
# This is a (slightly) edited version of IOOI SqAR's script. | |
# See http://sqar.blogspot.de/2014/10/installing-yosemite-in-virtualbox.html | |
# Changes from IOOI SqAR's script include: | |
# * Use 'hdiutil makehybrid' to convert the .cdr image to a "real" .iso image. |
OlderNewer