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
| if ('serviceWorker' in navigator) { | |
| navigator.serviceWorker | |
| .register('service-worker.js') | |
| .then(function(registration) { | |
| return registration.pushManager.getSubscription().then(function(subscription) { | |
| if (subscription) { | |
| return subscription | |
| } | |
| return registration.pushManager.subscribe({ | |
| userVisibleOnly: true |
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": "Weather", | |
| "short_name": "Weather", | |
| "icons": [{ | |
| "src": "images/icons/icon-128x128.png", | |
| "sizes": "128x128", | |
| "type": "image/png" | |
| }, { | |
| "src": "images/icons/icon-144x144.png", | |
| "sizes": "144x144", |
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 filesToCache = [ | |
| 'index.html', | |
| 'images/aaa.png', | |
| 'js/main.js', | |
| 'css/styles.css', | |
| ]; |
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
| 0 9 * * * sleep $(($RANDOM % 1800)); echo flucted!! |
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
| $conveted = mb_convert_encoding($word, 'UTF-8', 'ASCII,JIS,UTF-8,EUC-JP,SJIS-win'); |
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
| rsync -e "ssh -p 2222" -aur test@111.222.333.444:/var/www/html/* /var/www/html/ |
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
| $w1 = '上'; | |
| $w2 = mb_convert_encoding($w1,'SJIS','ASCII,JIS,UTF-8,EUC-JP,SJIS-win,SJIS'); | |
| echo mb_convert_encoding($w2,'UTF-8','SJIS-win,SJIS,ASCII,JIS,UTF-8,EUC-JP'); |
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
| $w1 = '上'; | |
| $w2 = mb_convert_encoding($w1,'SJIS','ASCII,JIS,UTF-8,EUC-JP,SJIS-win,SJIS'); | |
| echo mb_convert_encoding($w2,'UTF-8','ASCII,JIS,UTF-8,EUC-JP,SJIS-win,SJIS'); //真っ白 | |
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
| find . -name 'cache*' -type d | xargs chmod 777 |
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
| public void setStrokeWidth(Float width) { | |
| Log.d(LCAT, "Changing stroke width."); | |
| tiPaintView.finalizePaths(); | |
| tiPaint.setStrokeWidth(TiConvert.toFloat(width)); | |
| tiPaint.setAlpha(alphaState); | |
| } |