Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.
You've got two main options:
This is a collection of the things I believe about software development. I have worked for years building backend and data processing systems, so read the below within that context.
Agree? Disagree? Feel free to let me know at @JanStette.
Keep it simple, stupid. You ain't gonna need it.
| #!/bin/bash | |
| #Path to swiftlint | |
| SWIFT_LINT=/usr/local/bin/swiftlint | |
| #if $SWIFT_LINT >/dev/null 2>&1; then | |
| if [[ -e "${SWIFT_LINT}" ]]; then | |
| count=0 | |
| for file_path in $(git ls-files -m --exclude-from=.gitignore | grep ".swift$"); do | |
| export SCRIPT_INPUT_FILE_$count=$file_path |
To remove a submodule you need to:
| #include "TargetConditionals.h" | |
| #include <ifaddrs.h> | |
| #include <arpa/inet.h> | |
| + (NSString *)deviceIPAddress | |
| { | |
| NSString *address = @"error"; | |
| struct ifaddrs *interfaces = NULL; | |
| struct ifaddrs *temp_addr = NULL; | |
| int success = 0; |
| // Requires jQuery of course. | |
| $(document).ready(function() { | |
| $('.show-comments').on('click', function(){ | |
| var disqus_shortname = 'YOUR-DISQUS-USERNAME'; // Replace this value with *your* username. | |
| // ajax request to load the disqus javascript | |
| $.ajax({ | |
| type: "GET", | |
| url: "http://" + disqus_shortname + ".disqus.com/embed.js", | |
| dataType: "script", |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.
open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl
You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html
| # iOS builds for ARMv7 and simulator i386. | |
| # Assumes any dependencies are in a local folder called libs and | |
| # headers in a local folder called headers. | |
| # Dependencies should already have been compiled for the target arch. | |
| PROJ=untitled | |
| ifeq ($(IOS), 1) | |
| ARCH=armv7 | |
| DEVICE=OS | |
| CC_FLAGS=-arch $(ARCH) |