This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
#!/usr/bin/env bash | |
FOLDER=$1 | |
echo "Checking $FOLDER" | |
# Check for references to UIWebView in the build .a files using strings | |
for file in "$FOLDER"/*.a; do | |
strings "$file" | grep UIWeb > /dev/null 2>&1 | |
if [ $? -eq 0 ] |
/* | |
-Visit https://old.reddit.com/subreddits/ using your old account | |
-Copy link address of "multireddit of your subscriptions" | |
It will give you a link address like this: https://old.reddit.com/r/[subreddit1+subreddit2...+subredditN] | |
Please note that if you have a lot of subreddits the link won't work because there's a limit to the link's length, you can simply split it to two or three links | |
-Visit that link (or links) using your new account. | |
-Open the console by pressing F12 and then clicking the console tab | |
-Past the code bellow and press enter. You're welcome :) | |
*/ | |
const sub = () => { |
```javascript | |
"#button": { | |
// ... | |
backgroundColor: Alloy.CFG.design.mainColor, | |
// ... | |
} | |
``` |
alias screenshot='adb shell screencap -p | perl -pe "s/\x0D\x0A/\x0A/g" > "/Users/fokkezb/Downloads/android_$(date +%Y%m%d-%H%M%S).png"' | |
# NOTE: Replace 'fokkezb' with your user. You cannot use ~ when using $() unfortunately |
/** | |
* Android doesn't have a tabbedBar like iOS does, so this was my attempt at duplicating the functionality and API | |
* http://docs.appcelerator.com/titanium/2.0/index.html#!/api/Titanium.UI.ButtonBar | |
* @param {Dictionary<Titanium.UI.Button>} params | |
*/ | |
function createTabbedBar(params) { | |
if (!params.labels || params.labels.length === 0) { | |
throw "You must specify button titles in a 'labels' member on the passed in object"; | |
} |