Gist guide for MacVim with Python 2.x and Python 3.x
On El Capitan worked version 7.4.1749 from 18.04.2016
git clone https://github.com/macvim-dev/macvim.git
if used rvm, need use any not system ruby interpretator
Gist guide for MacVim with Python 2.x and Python 3.x
On El Capitan worked version 7.4.1749 from 18.04.2016
git clone https://github.com/macvim-dev/macvim.git
if used rvm, need use any not system ruby interpretator
println("Hello") | |
var conn = Socket().connect(8000, address: "127.0.0.1").listen(limit:128).accept() { connection, address in | |
println("Accepted a connection from port \(address.addressString)") | |
return connection | |
}.read() { connection, inStr in | |
let arr = inStr.componentsSeparatedByString("\n") | |
let response = (arr[0].uppercaseString + "\n") | |
return connection.write(response) | |
}.close() |
#-webkit-web-inspector #toolbar { | |
background: #cdcdcd !important; | |
height: 36px !important; | |
} | |
#-webkit-web-inspector #main { | |
top: 36px !important; | |
} | |
#-webkit-web-inspector .toolbar-item.elements:hover:after { | |
content: "elements"; | |
z-index: 9999; |
Ext.Date.fuzzy = function(time, local){ | |
(!local) && (local = Date.now()); | |
if (typeof time !== 'number' || typeof local !== 'number') { | |
return; | |
} | |
var | |
offset = Math.abs((local - time)/1000), |
#include <stdlib.h> | |
#include <math.h> | |
#include <AudioToolbox/AudioQueue.h> | |
#include <CoreAudio/CoreAudioTypes.h> | |
#include <CoreFoundation/CFRunLoop.h> | |
#define NUM_CHANNELS 2 | |
#define NUM_BUFFERS 3 |
# Usage: | |
# source iterm2.zsh | |
# iTerm2 tab color commands | |
# https://iterm2.com/documentation-escape-codes.html | |
if [[ -n "$ITERM_SESSION_ID" ]]; then | |
tab-color() { | |
echo -ne "\033]6;1;bg;red;brightness;$1\a" | |
echo -ne "\033]6;1;bg;green;brightness;$2\a" |
Most of these guidelines are to match Apple's documentation and community-accepted best practices. Some are derived some personal preference. This document aims to set a standard way of doing things so everyone can do things the same way. If there is something you are not particularly fond of, it is encouraged to do it anyway to be consistent with everyone else.
This document is mainly targeted toward iOS development, but definitely applies to Mac as well.
NSString *foo = @"bar";