start new:
tmux
start new with session name:
tmux new -s myname
--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"} |
# first install pygmentize to the mac OS X or macOS system with the built-in python | |
sudo easy_install Pygments | |
# then add alias to your ~/.bash_profile or ~/.bashrc or ~/.zshrc etc. | |
alias pcat='pygmentize -f terminal256 -O style=native -g' |
$ xcrun scntool --verbose
| Current SceneKit version is 4.560000
| Running scntool (compiled on Jul 1 2018 01:01:55)
usage: scntool --convert file --format format [--output file]
000084a8: 7363 7269 7074 696f 6e00 2d2d 7461 7267 6574 2d70 6c61 7466 :scription.--target-platf
let url = URL(string: "https://mist.eivindml.now.sh/static/Artboard.png")! | |
struct GameDetail: View { | |
@State var nowDate = Date() | |
private var refDate: Date { | |
let formatter = DateFormatter() | |
formatter.dateFormat = "YYYY-MM-dd HH:mm:ss" | |
let rDate = formatter.date(from: "20019-10-11 12:12:12") | |
return rDate! |
.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" } |
// | |
// Cubes and diamonds. | |
// Created using Processing 3.5.3. | |
// | |
// Code by @marcedwards from @bjango. | |
// | |
// A GIF of this code can be seen here: | |
// https://twitter.com/marcedwards/status/1167765622899347459 | |
// |
// 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); |
ENV APACHE_DOCUMENT_ROOT /var/www/mapasculturais/src
RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf