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
| <html> | |
| <head> | |
| <script src="https://apis.google.com/js/client.js"></script> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> | |
| <script> | |
| function auth() { | |
| var config = { | |
| 'client_id': 'OAUTH_CLIENT_ID', | |
| 'scope': 'https://www.google.com/m8/feeds' | |
| }; |
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
| const toDataURL = url => fetch(url) | |
| .then(response => response.blob()) | |
| .then(blob => new Promise((resolve, reject) => { | |
| const reader = new FileReader() | |
| reader.onloadend = () => resolve(reader.result) | |
| reader.onerror = reject | |
| reader.readAsDataURL(blob) | |
| })) |
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
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
| <input id="file" type="file" accept="image/*" /> | |
| <br/> | |
| <h2>As read:</h2> | |
| <img id="placeholder1" width=300/><br/> | |
| <h2>Rotated by exif data:</h2> | |
| <img id="placeholder2" width=300/> | |
| <script> |
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
| Voici comment faire un clone des pages wiki de git | |
| hanxue-mac:Github hanxue$ git clone https://github.com/AppScale/appscale.wiki.git | |
| Cloning into 'appscale.wiki'... | |
| remote: Counting objects: 1745, done. | |
| remote: Compressing objects: 100% (1733/1733), done. | |
| remote: Total 1745 (delta 1089), reused 10 (delta 4) | |
| Receiving objects: 100% (1745/1745), 267.93 KiB | 35.00 KiB/s, done. | |
| Resolving deltas: 100% (1089/1089), done. | |
| Checking connectivity... done |
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
| javascript | |
| ES6ValidationInspection | |
| JSAccessibilityCheckInspection | |
| JSBitwiseOperatorUsageInspection | |
| JSCheckFunctionSignaturesInspection | |
| JSClosureCompilerSyntaxInspection | |
| JSCommentMatchesSignatureInspection | |
| JSComparisonWithNaNInspection | |
| JSConsecutiveCommasInArrayLiteralInspection |
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
| # https://stackoverflow.com/questions/39928401/recover-db-password-stored-in-my-dbeaver-connection | |
| # requires pycryptodome lib (pip install pycryptodome) | |
| import sys | |
| import base64 | |
| import os | |
| import json | |
| from Crypto.Cipher import AES |