To make it light, put this inside the View Controller class:
override func preferredStatusBarStyle() -> UIStatusBarStyle {
return .LightContent
}| # This will capture a screenshot, put it in your Public Dropbox folder, | |
| # reveal it in Finder and copy a sharable URL to the clipboard. E.g. | |
| # https://dl.dropboxusercontent.com/u/21267/shots/shot_2014-05-19_12-30-48.png | |
| # Uncomment options below for things like opening in Preview, | |
| # copying a Markdown/HTML image tag etc. | |
| # Replace with your Dropbox user ID. | |
| # | |
| # Share something from your Public folder to find it. |
| n=0 | |
| while read line ; do | |
| let n=n+1 | |
| filename=`basename "$line"` | |
| dropboxuser=21267 # Replace with your ID | |
| directory=/shots/keep/ # This is the full path iside your Public Dropbox directory. The slashes are important. | |
| path=~/Dropbox/Public$directory | |
| mkdir -p $path | |
| date=$(date +%H-%M-%S)- | |
| if [ -f $path$filename ] ;then |
| dropboxuser=21267 # Replace with your ID | |
| directoryname=shots | |
| filename=shot_`date '+%Y-%m-%d_%H-%M-%S'`.png | |
| path=~/Dropbox/$directoryname/ | |
| mkdir -p $path | |
| screencapture -o -i $path$filename | |
| open --reveal $path$filename |
| -- Byword doesn't have a Delete Line function. | |
| -- This is basically a macro to select the current line and delete it. | |
| -- Make a Service that recieves no input and assign a keyboard shortcut. | |
| on run {input, parameters} | |
| tell application "System Events" | |
| -- Command + Option + Up | |
| key code 126 using {command down, option down} | |
| -- Command + Option + Up |
| do shell script "date +%Y-%m-%d\\ %H:%M:%S" |
| # List merged branches | |
| git branch --merged | |
| # Delete all merged branches. | |
| git branch --merged | grep -v "\*" | grep -v master | xargs -n 1 git branch -d | |
| # Restage last commit. E.g. Whoops, just committed to master. | |
| git reset --soft HEAD~ |
| {% capture truncated_content %}{{ page.content | truncatewords: 250 }}{% endcapture %} | |
| {% if page.content != truncated_content %} | |
| Reading time ~<span class="time">{{ page.content | number_of_words | append: '.0' | divided_by:180 }}</span>min. | |
| {% endif %} |
| # Takes one URL per line on the clipboard. | |
| # Opens each one in a new tab in the default browser. | |
| touch temp.txt | |
| pbpaste > temp.txt | |
| echo "" >> temp.txt | |
| cat temp.txt | while read a; do open $a; done | |
| rm temp.txt |
| #include <LiquidCrystal.h> | |
| LiquidCrystal lcd(12, 11, 5, 4, 3, 2); | |
| int ThermistorPin = 0; | |
| int relayPin = 10; | |
| int Vo; | |
| float R1 = 10000; | |
| float logR2, R2, T, Tc; |