This file contains 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
*.apdisk | |
*.ap_ | |
*.sass-cache | |
*.scssc | |
*.log | |
*.DS_Store | |
*.xcuserstate | |
*.bak | |
.TemporaryItems | |
Thumbs.db |
This file contains 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
@-webkit-keyframes fadeIn { | |
from { | |
background-color: rgba(0,0,0,0); | |
} | |
to { | |
background-color: rgba(0,0,0,0.35); | |
} | |
} | |
@keyframes fadeIn { | |
from { |
This file contains 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
clear | |
read -p "Migrate project to version: " version | |
cd ~/Developer/Shop | |
rm -Rf platforms/android/CordovaLib/* | |
cp -a ~/Developer/crosswalk-cordova-$version-arm/framework/* \ | |
platforms/android/CordovaLib/ | |
cp -a ~/Developer/crosswalk-cordova-$version-arm/VERSION platforms/android/ | |
cd platforms/android/CordovaLib/ | |
android update project --subprojects --path . \ | |
--target "android-19" |
This file contains 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
import android.os.Bundle; | |
import android.os.Build; | |
import android.util.Log; | |
import android.view.Window; | |
import android.graphics.Color; | |
if (Build.VERSION.SDK_INT >= 21) { | |
final Window window = this.getActivity().getWindow(); | |
window.clearFlags(0x04000000); // SDK 19: WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); |
This file contains 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
//... | |
private void initWebViewSettings() { | |
// ... | |
String defaultUserAgent = webView.getUserAgentString(); | |
String overrideUserAgent = preferences.getString("OverrideUserAgent", null); | |
if (overrideUserAgent != null) { | |
webView.setUserAgentString(overrideUserAgent); | |
} else { |
This file contains 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
ask(){ | |
tput bel | |
while true; do | |
if [ "${2:-}" = "Y" ]; then | |
prompt="Y/n" | |
default=Y | |
elif [ "${2:-}" = "N" ]; then | |
prompt="y/N" | |
default=N | |
else |
This file contains 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
OLDMD5=`cat $PROJECT_DIR/www/project.md5` | |
NEWMD5=`ls -altR $PROJECT_DIR/www/app/ | grep -viw ".DS_Store" > $PROJECT_DIR/www/md5Helper.txt && md5 $PROJECT_DIR/www/md5Helper.txt | awk '{print $4}'`; | |
SENCHA_CMD="/Users/${USER}/bin/Sencha/Cmd/3.1.2.342" | |
echo "Old MD5 - $OLDMD5" | |
echo "New MD5 - $NEWMD5" | |
if [ "$OLDMD5" = "$NEWMD5" ] | |
then | |
echo "MD5s are the same. NOT Running Sencha Build." |
This file contains 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
listeners: { | |
dragstart: { | |
fn: function () { | |
y = this.parent.getScrollable().getScroller().position.y | |
this.parent.setScrollable({ | |
direction: 'false', | |
initialOffset: { | |
x: 0, | |
y: y | |
} |
This file contains 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
open -a Google\ Chrome --args --disable-web-security |
This file contains 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
Weinre | |
Weinre is a debugger for web pages like Web Inspector, except it’s designed to work remotely, and in particular, to allow you debug web pages on a mobile device such as a phone. | |
This includes the capability to see live debug from devices or the iOS simulator. | |
This could be used to see live debug from devices in the field. | |
How to Install on MacOSX | |
Install Homebrew | |
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)" | |
install node.js |
OlderNewer