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 { atob, btoa } = require('abab'); | |
| function pack(bytes) { | |
| var chars = []; | |
| for(var i = 0, n = bytes.length; i < n;) { | |
| chars.push(((bytes[i++] & 0xff) << 8) | (bytes[i++] & 0xff)); | |
| } | |
| return String.fromCharCode.apply(null, chars); | |
| } | |
| function unpack(str) { |
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
| window.kana = [ | |
| {"name": "n", "hiri": "ん", "kata": "ン" }, | |
| {"name": "tsu", "hiri": "っ", "kata": "ッ" }, | |
| {"name": "a", "hiri": "あ", "kata": "ア" }, | |
| {"name": "ka", "hiri": "か", "kata": "カ" }, | |
| {"name": "ga", "hiri": "が", "kata": "ガ" }, | |
| {"name": "sa", "hiri": "さ", "kata": "サ" }, | |
| {"name": "za", "hiri": "ざ", "kata": "ザ" }, | |
| {"name": "ta", "hiri": "た", "kata": "タ" }, |
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
| // Credit: https://glitch.com/~kana-reading-practice | |
| // https://glitch.com/@Dthurow | |
| kanaToRomajiDict = { | |
| "あう":{ romaji:"au", meaning:"to meet"}, | |
| "あく":{ romaji:"aku", meaning:"to open"}, | |
| "あける":{ romaji:"akeru", meaning:"to open"}, | |
| "あげる":{ romaji:"ageru", meaning:"to give"}, | |
| "あそぶ":{ romaji:"asobu", meaning:"to play"}, | |
| "あびる":{ romaji:"abiru", meaning:"to take a shower"}, |
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
| "C:\Program Files\Git\git-bash.exe" --cd=$(CURRENT_DIRECTORY) |
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
| // Better than JQuery ready function... or at least doesn't require JQuery :) | |
| app = function() { | |
| this.onReady = function (callback) { | |
| if (document.readyState != 'loading') callback() | |
| else document.addEventListener('DOMContentLoaded', callback) | |
| } | |
| }; | |
| const myApp = new app(); |
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
| Get-ChildItem -Include bin,obj -Recurse | Remove-Item -Recurse -Force |
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
| { | |
| "current_page": 1, | |
| "data": [ | |
| { | |
| "id": 47, | |
| "display_name": "Lakeside Food Court", | |
| "name": "Thurrock - Lakeside Shopping Centre", | |
| "slug": "thurrock-lakeside-shopping-centre", | |
| "store_number": 90001, | |
| "status": "Active", |
This file has been truncated, but you can view the full file.
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
| &c | |
| 'd | |
| 'em | |
| 'll | |
| 'm | |
| 'mid | |
| 'midst | |
| 'mongst | |
| 'prentice | |
| 're |
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
| select | |
| concat('alter table ', table_name, ' drop foreign key ', constraint_name, ';') | |
| from | |
| information_schema.key_column_usage | |
| where | |
| referenced_table_name is not null | |
| and table_schema = 'MyTableName'; |
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
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| var myListOfNone = new List<Dog>(); | |
| var myListOfOne = new List<Dog>() { new Dog("Fido", 5) }; | |
| var myListOfSeveral = new List<Dog>() { new Dog("Fido", 5), new Dog("Lassy", 14) }; | |
| var b = myListOfNone.SingleOrDefault(); //Null |