In your command-line run the following commands:
brew doctor
brew update
In your command-line run the following commands:
brew doctor
brew update
sqlite3 $HOME/Library/Safari/History.db "select datetime(visit_time + 978307200, 'unixepoch', 'localtime') as date, title from history_visits order by visit_time asc" |
telegram-scripts.js
into JS consoleshowContacts()
to get the list of contacts with idssaveChat(userId)
where userId
is the id from step 3Process can take a while, check console for progress. Occasionall FLOOD_WAIT
errors are expected. Once done, browser will download the JSON file.
#!/bin/bash | |
# source: https://gist.github.com/francoisromain/58cabf43c2977e48ef0804848dee46c3 | |
# and another script to delete the directories created by this script | |
# project-delete.sh: https://gist.github.com/francoisromain/e28069c18ebe8f3244f8e4bf2af6b2cb | |
# Call this file with `bash ./project-create.sh project-name` | |
# - project-name is mandatory | |
# This will creates 4 directories and a git `post-receive` hook. |
from: http://stackoverflow.com/a/35631022/667834 | |
$ brew install youtube-dl | |
$ youtube-dl --list-formats https://www.youtube.com/watch\?v\=[YouTube video id] | |
shows something like: | |
.... | |
91 mp4 144p HLS , h264, aac @ 48k |
Here's a 'simple' way to get the YouTube subscriber number from Google's Youtube API v3:
☑ https://developer.apple.com/swift/blog/?id=37 | |
☐ https://oleb.net/blog/2016/09/swift-3-ranges/ | |
☐ https://my.pcloud.com/publink/show?code=XZdKqsZBfty39EC0uFccqHQwv4FQLwlrNf7 | |
☐ https://medium.com/airbnb-engineering/introducing-the-airbnb-imessage-app-806f48d303a8#.i3th9ccue | |
☐ https://www.raizlabs.com/dev/2016/09/preparing-ios-app-for-extensions/ | |
☐ https://sandofsky.com/blog/singletons.html | |
☐ http://blog.benjamin-encz.de/post/declarative-api-design-in-swift/ | |
☐ http://nsakaimbo.me/ | |
☐ http://khanlou.com/2016/10/slicing/ |
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
// vector to radians | |
let radian = atan2(vector.y, vector.x) | |
// difference between two vectors | |
let difference = CGFloat.pi2 - abs(abs(radian1 - radian2) - CGFloat.pi2) |
I found a few examples over the internet, enjoy: | |
http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/sl.m3u8 | |
http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8 | |
http://devimages.apple.com/iphone/samples/bipbop/gear1/prog_index.m3u8 | |
http://playertest.longtailvideo.com/adaptive/oceans_aes/oceans_aes.m3u8 (AES encrypted) | |
http://playertest.longtailvideo.com/adaptive/captions/playlist.m3u8 (HLS stream with CEA-608 captions) | |
http://playertest.longtailvideo.com/adaptive/wowzaid3/playlist.m3u8 (with metadata) | |
http://content.jwplatform.com/manifests/vM7nH0Kl.m3u8 | |
http://cdn-fms.rbs.com.br/hls-vod/sample1_1500kbps.f4v.m3u8 |