One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| /** | |
| * Convert a string to a unicode byte array | |
| * @param {string} str | |
| * @return {Array} of bytes | |
| */ | |
| export function strToUtf8Bytes(str) { | |
| const utf8 = []; | |
| for (let ii = 0; ii < str.length; ii++) { | |
| let charCode = str.charCodeAt(ii); | |
| if (charCode < 0x80) utf8.push(charCode); |
| #!/bin/bash | |
| cd /tmp || exit | |
| echo "Downloading Postman ..." | |
| wget -q https://dl.pstmn.io/download/latest/linux?arch=64 -O postman.tar.gz | |
| tar -xzf postman.tar.gz | |
| rm postman.tar.gz | |
| echo "Installing to opt..." | |
| if [ -d "/opt/Postman" ];then |
| const cleanAccents = (str: string): string => { | |
| str = str.replace(/à|á|ạ|ả|ã|â|ầ|ấ|ậ|ẩ|ẫ|ă|ằ|ắ|ặ|ẳ|ẵ/g, 'a'); | |
| str = str.replace(/è|é|ẹ|ẻ|ẽ|ê|ề|ế|ệ|ể|ễ/g, 'e'); | |
| str = str.replace(/ì|í|ị|ỉ|ĩ/g, 'i'); | |
| str = str.replace(/ò|ó|ọ|ỏ|õ|ô|ồ|ố|ộ|ổ|ỗ|ơ|ờ|ớ|ợ|ở|ỡ/g, 'o'); | |
| str = str.replace(/ù|ú|ụ|ủ|ũ|ư|ừ|ứ|ự|ử|ữ/g, 'u'); | |
| str = str.replace(/ỳ|ý|ỵ|ỷ|ỹ/g, 'y'); | |
| str = str.replace(/đ/g, 'd'); | |
| str = str.replace(/À|Á|Ạ|Ả|Ã|Â|Ầ|Ấ|Ậ|Ẩ|Ẫ|Ă|Ằ|Ắ|Ặ|Ẳ|Ẵ/g, 'A'); | |
| str = str.replace(/È|É|Ẹ|Ẻ|Ẽ|Ê|Ề|Ế|Ệ|Ể|Ễ/g, 'E'); |
| <?php | |
| // API access key from Google API's Console | |
| define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' ); | |
| $registrationIds = array( $_GET['id'] ); | |
| // prep the bundle | |
| $msg = array |
| /* | |
| The MIT License (MIT) | |
| Copyright (c) 2014 Anthony Lieuallen | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is |
| // if Navigation Timing is not supported, fallback to Date.naw() called on start (sufficient in many cases) | |
| // Date.now is also polyfilled | |
| (function(p){ | |
| if(!Date.now) | |
| Date.now = function(){return +new Date}; | |
| if (!p.now){ | |
| var start = (p.timing && p.timing.navigationStart) || Date.now(); | |
| p.now = function now(){ | |
| return Date.now() - start; |
| /** | |
| * Register ajax transports for blob send/recieve and array buffer send/receive via XMLHttpRequest Level 2 | |
| * within the comfortable framework of the jquery ajax request, with full support for promises. | |
| * | |
| * Notice the +* in the dataType string? The + indicates we want this transport to be prepended to the list | |
| * of potential transports (so it gets first dibs if the request passes the conditions within to provide the | |
| * ajax transport, preventing the standard transport from hogging the request), and the * indicates that | |
| * potentially any request with any dataType might want to use the transports provided herein. | |
| * | |
| * Remember to specify 'processData:false' in the ajax options when attempting to send a blob or arraybuffer - |
| /*--- waitForKeyElements(): A utility function, for Greasemonkey scripts, | |
| that detects and handles AJAXed content. | |
| Usage example: | |
| waitForKeyElements ( | |
| "div.comments" | |
| , commentCallbackFunction | |
| ); |
| @echo off | |
| SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe | |
| rem add it for all file types | |
| @reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text" /t REG_SZ /v "" /d "Open with Sublime Text" /f | |
| @reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f | |
| @reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f | |
| rem add it for folders | |
| @reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text" /t REG_SZ /v "" /d "Open with Sublime Text" /f |