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
react-native-swiper: https://github.com/leecade/react-native-swiper | |
react native custom calendar: https://github.com/wix/react-native-calendars | |
Victory: Charting for React and React Native: https://formidable.com/open-source/victory/gallery | |
react-native-shared-element: https://github.com/IjzerenHein/react-native-shared-element | |
React Native Shared Element Transition React Navigation V5: https://www.youtube.com/watch?v=C2Q_MPxqLMI&t=0s | |
Assume the design/software made be wrong until tested/evaluated, it's how it goes forward: https://www.youtube.com/watch?v=eozFlgu6ByY |
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
{ | |
"name": "myapp", | |
"version": "1.0.0", | |
"private": true, | |
"scripts": { | |
"start": "node node_modules/react-native/local-cli/cli.js start", | |
"test": "jest", | |
"backend": "sudo php -S 0.0.0.0:8000 -t ../myapp-web/src/public/", | |
"iphone": "react-native run-ios --configuration Release --device", | |
"clean-bundle:ios": "rm -f ./ios/main.jsbundle*", |
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
export shortVersion=$( /usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" ios/myapp/Info.plist ); | |
export bundleVersion=$( /usr/libexec/PlistBuddy -c "Print CFBundleVersion" ios/myapp/Info.plist ); | |
export distName=MyApp-$shortVersion-$bundleVersion |
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
var layoutVideosTimer, hideVideoMenuTimer; | |
function showVideoMenuForAWhile() { | |
console.debug("showVideoMenuForAWhile"); | |
clearTimeout(hideVideoMenuTimer); | |
showVideosMenu(); | |
hideVideoMenuTimer = setTimeout(hideVideosMenu, 30000); | |
} |
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
#!/bin/bash | |
# If Tomcat uses server.xml config to rotate localhost_access_log, | |
# the daily rotated logs will need compressing and old ones deleted to stop filling | |
# the log partiton. Cannot use the system logrotate command as conficts with tomcat rotate | |
# therefore run this script in a daily cronjob | |
# | |
# localhost_access_log.2015-09-03.txt | |
# | |
# Add this script in /etc/cron.daily/ owned by root | |
# |
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
sudo /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/keytool -importcert -file ~/Downloads/a.cert -keystore /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/security/cacerts | |
sudo /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/bin/keytool -importcert -file ~/Downloads/a.cert -keystore /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/lib/security/cacerts | |
sudo /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin/keytool -importcert -file ~/Downloads/a.cert -keystore /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/security/cacerts | |
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
var divs=[0,1/2,1/4,3/4,1/8,5/8,3/8,7/8]; | |
function getDiv(index){ | |
for(var i=divs.length;i<index;i++){ | |
var root = Math.ceil(Math.log2(i+1)); | |
var div=Math.pow(2, root); | |
var lastDiv=Math.pow(2, root-1); | |
var value=divs[i-lastDiv] + 1/div; | |
divs[i]=value; | |
} |
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
logs | |
# Eclipse Setting | |
/.metadata | |
/Servers | |
.settings | |
.project | |
.classpath | |
.buildpath | |
RemoteSystemsTempFiles |