Here I'll add some APIs that looks interesting for use from your apps, mainly of free use at the beginning.
Feel free to collaborate adding yours :)
- Regexp Obj-C Cheat sheet
- Reggy, regexp tester. TOO MUCH useful!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ifconfig | awk '/en0/{getline; print}' | awk 'NR==2 {print $2}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| require 'fastimage' | |
| if ARGV.count != 1 | |
| puts "Use command: \n$ ruby #{__FILE__} <.xcassets>" | |
| exit() | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 😡 2000 --> 1999-01 | |
| 😏 2001 --> 2001-01 | |
| 😏 2002 --> 2002-01 | |
| 😏 2003 --> 2003-01 | |
| 😏 2004 --> 2004-01 | |
| 😡 2005 --> 2004-01 | |
| 😡 2006 --> 2005-01 | |
| 😏 2007 --> 2007-01 | |
| 😏 2008 --> 2008-01 | |
| 😏 2009 --> 2009-01 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ruby:2.4.1-alpine | |
| # https://github.com/ffi/ffi/issues/485#issuecomment-209778567 | |
| RUN apk add --update build-base libffi-dev git openssh | |
| ARG SRC_GEMFILE=Gemfile | |
| ARG BUNDLE_GEMFILE=/src/ruby/Gemfile | |
| # Install current gems with bundler | |
| COPY $SRC_GEMFILE $BUNDLE_GEMFILE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // From RELM.io - https://academy.realm.io/posts/tryswift-jorge-ortiz-architectural-superpowers-swift-ios/ | |
| // https://realm.wistia.com/medias/7ycpx3u7tx | |
| { | |
| "id": "7ycpx3u7tx", | |
| "title": "20 Jorge Ortiz", | |
| "description": "a Conference Videos video", | |
| "formats": [ | |
| { | |
| "format_id": "hls_video-0", | |
| "url": "http://embed.wistia.com/deliveries/dab5729e4902e53e40bbeba6a3f68754cfd5d928.bin", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "url": "https://r2---sn-8vq54voxn25po-h5q6.googlevideo.com/videoplayback?mn=sn-8vq54voxn25po-h5q6%2Csn-h5q7rn7k&ip=77.225.33.112&mm=31%2C29&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cexpire&mv=m&pl=24&mt=1554322750&requiressl=yes&ms=au%2Crdu&mime=video%2Fmp4&dur=1200.076&id=o-AEHGYR9UPja6KenJOgXvv3jdSUgzo_22ImxCazEAHRHx&ipbits=0&gir=yes&lmt=1547757050318422&source=youtube&ratebypass=yes&c=WEB&fvip=2&clen=104971893&itag=18&initcwndbps=903750&txp=5531432&expire=1554344454&ei=phWlXPfcFIO11gaSmIHwCQ&key=yt6&signature=BC13E1BE90164A0409D14D310BC4878981C1413B.42E99C488BA4B82E292CFF34E7A7BFD891289039" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function main() { | |
| deleteOldMessages('notifications-jenkins'); | |
| deleteOldMessages('notifications-sentry'); | |
| } | |
| function deleteOldMessages(label_to_delete) { | |
| var search = 'label:' + label_to_delete + ' -{label:Trash} older_than:6m'; | |
| var threads = GmailApp.search(search, 0, 120); | |
OlderNewer
