- Open below directory in Finder with Cmnd + Shift + G
/Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/
import UIKit | |
import PlaygroundSupport | |
struct StringConstants { | |
static let bullet1 = "This is a small string." | |
static let bullet2 = "This is more of medium string with a few more words etc." | |
static let bullet3 = "Well this is certainly a longer string, with many more words than either of the previuos two strings." | |
} | |
typealias ParagraphData = (bullet: String, paragraph: String) |
HANDY ONE-LINE SCRIPTS FOR AWK 30 April 2008 | |
USAGE: | |
Unix: awk '/pattern/ {print "$1"}' # standard Unix shells | |
DOS/Win: awk '/pattern/ {print "$1"}' # compiled with DJGPP, Cygwin | |
awk "/pattern/ {print \"$1\"}" # GnuWin32, UnxUtils, Mingw | |
# FILE SPACING: |
#!/usr/bin/env ruby | |
require 'rails/generators' | |
require 'rails/generators/rails/app/app_generator' | |
require "active_support/core_ext/string/strip" | |
class CleverAppGenerator < Rails::Generators::AppGenerator | |
class_option :skip_bundle, default: true | |
class_option :database, default: "postgresql" | |
class_option :skip_test_unit, default: true, hide: true |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |