start new:
tmux
start new with session name:
tmux new -s myname
// Creates the notifcation constant | |
let notification = Notification.Name("NSSystemClockDidChangeNotification") | |
// Add this within your viewDidLoad() | |
NotificationCenter.default.addObserver(self, selector: #selector(handleTimeChange), name: notification, object: nil) | |
// Place this within the view controller where the above is added | |
@objc private func handleTimeChange() { | |
// Add anything you need in here | |
NotificationCenter.default.removeObserver(self, name: notification, object: nil); |
var gulp = require('gulp'), | |
exec = require('gulp-exec'); | |
var templateFiles = [ | |
'wp-content/themes/my-theme/index.jade', | |
'wp-content/themes/my-theme/page.jade', | |
'wp-content/themes/my-theme/page-single.jade', | |
'wp-content/themes/my-theme/archive.jade', | |
//All other template files |
--taken from http://benguild.com/2012/04/11/how-to-import-tasks-to-do-items-into-ios-reminders/#comment-1346894559 | |
--set theFileContents to (read file "Users:n8henrie:Desktop:Reminders.txt") -- Change this to the path to your downloaded text file with your tasks in it! (Note the : instead of a / between folders) Or, just name them Reminders.txt and put them in your downloads folder | |
--set theLines to paragraphs of theFileContents | |
set theLines to {"task name 1", "task name 2"} | |
repeat with eachLine in theLines | |
tell application "Reminders" | |
set mylist to list "Your List Name" | |
tell mylist | |
make new reminder at end with properties {name:eachLine, due date:date "7/10/2014 3:00 PM"} |
/* Sass Mixin that generates a Baseline Grid */ | |
/* by: Mike Morrison, Soholaunch.com */ | |
/* You don't have to leave this credit comment in, but it would be nice of you. */ | |
// Set your grid dimensions here | |
$body-width: 960px; | |
$baseline: 22px; | |
@mixin baseline-grid { | |
$columns: 16; | |
$column-color: rgba(200,0,0,.2); |
.visible-android { | |
display:none; | |
} | |
.visible-ios { | |
display:none; | |
} | |
.on-device .visible-android, .on-device .visible-android { | |
display:inherit; | |
} | |
.device-ios .visible-android { |
// swap the keybindings for paste and paste_and_indent | |
{ "keys": ["super+v"], "command": "paste_and_indent" }, | |
{ "keys": ["super+shift+v"], "command": "paste" } |