If you already have Homebrew, just open a terminal and type
$ brew install clozure-cl
// | |
// FileFunctionLevelFormatter.h | |
// | |
// Created by Julien Grimault on 23/1/12. | |
// Copyright (c) 2012 Julien Grimault. All rights reserved. | |
// | |
#import "DDLog.h" | |
@interface FileFunctionLevelFormatter : NSObject <DDLogFormatter> |
/** | |
Get Random Color by generating three random float to represent RGB | |
**/ | |
func randomColor() -> UIColor{ | |
var randomRed:CGFloat = CGFloat(drand48()) | |
var randomGreen:CGFloat = CGFloat(drand48()) | |
var randomBlue:CGFloat = CGFloat(drand48()) | |
return UIColor(red: randomRed, green: randomGreen, blue: randomBlue, alpha: 1.0) | |
#define CGRectSetPos( r, x, y ) CGRectMake( x, y, r.size.width, r.size.height ) | |
#define CGRectSetX( r, x ) CGRectMake( x, r.origin.y, r.size.width, r.size.height ) | |
#define CGRectSetY( r, y ) CGRectMake( r.origin.x, y, r.size.width, r.size.height ) | |
#define CGRectSetSize( r, w, h ) CGRectMake( r.origin.x, r.origin.y, w, h ) | |
#define CGRectSetWidth( r, w ) CGRectMake( r.origin.x, r.origin.y, w, r.size.height ) | |
#define CGRectSetHeight( r, h ) CGRectMake( r.origin.x, r.origin.y, r.size.width, h ) |
var proxySnippet = require('grunt-connect-proxy/lib/utils').proxyRequest; | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
watch: { | |
all: { | |
files: ['Gruntfile.js'] | |
} | |
}, | |
connect: { |
######################### | |
# .gitignore file for Xcode5 | |
# | |
# NB: if you are storing "built" products, this WILL NOT WORK, | |
# and you should use a different .gitignore (or none at all) | |
# This file is for SOURCE projects, where there are many extra | |
# files that we want to exclude | |
# | |
# For updates, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
# and https://gist.github.com/adamgit/3786883 |
mgo.SetDebug(true) | |
var aLogger *log.Logger | |
aLogger = log.New(os.Stderr, "", log.LstdFlags) | |
mgo.SetLogger(aLogger) |
# overwrite master with contents of seotweaks branch (seotweaks > master) | |
git checkout seotweaks # source name | |
git merge -s ours master # target name | |
git checkout master # target name | |
git merge seotweaks # source name |
If you already have Homebrew, just open a terminal and type
$ brew install clozure-cl
hdiutil attach /Applications/Install\ macOS\ Sierra\ Public\ Beta.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
hdiutil create -o /tmp/Sierra.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach /tmp/Sierra.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build
asr restore -source /Volumes/install_app/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase
rm /Volumes/OS\ X\ Base\ System/System/Installation/Packages
cp -rp /Volumes/install_app/Packages /Volumes/OS\ X\ Base\ System/System/Installation/
cp -rp /Volumes/install_app/BaseSystem.chunklist /Volumes/OS\ X\ Base\ System/BaseSystem.chunklist
extension String { | |
/// Checks if the `String` is a valid email address. | |
/// ```` | |
/// // Example | |
/// "name@email.com".isValidEmailAddress() // true | |
/// "name(at)email(dot)com".isValidEmailAddress() // false | |
/// "name@email".isValidEmailAddress() // false | |
/// "name@.com".isValidEmailAddress() // false | |
/// "name.com".isValidEmailAddress() // false |