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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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
| function apply(handler, args) { | |
| return handler.apply(null, args); | |
| } | |
| function toArray(collection) { | |
| return [].slice.call(collection); | |
| } | |
| function reverse(collection) { | |
| return toArray(collection).reverse(); |
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
| // | |
| // Compare two characters | |
| // | |
| // returns 0 if equal, -1 if x is before y, 1 otherwise. | |
| function compareChars(x, y) { | |
| if (x === y) { | |
| return 0; | |
| } | |
| if (x === undefined) { |
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
| using System; | |
| namespace Hongy | |
| { | |
| /// <summary> | |
| /// Represents vectorless interval of the form [a, b] or (a, b) or any | |
| /// combination of exclusive and inclusive end points. | |
| /// </summary> | |
| /// <typeparam name="T">Any comparent type</typeparam> | |
| /// <remarks> |
Follow the normal Javascript style guide - including the 80 character line limit. In addition there are several React-specific rules.
In addition to these style rules, you may also be interested in React best practices.
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 add_timesheet_entry = (date) => { | |
| const form = { | |
| "utf8": "✓", | |
| "timesheet_entry[created_by]": <your employment hero user id>, | |
| "timesheet_entry[date]": `${date.getDate()}/${date.getMonth() + 1}/${date.getFullYear()}`, | |
| "timesheet_entry[start_hm]": "9:00 AM", | |
| "timesheet_entry[end_hm]": "5:00 PM", | |
| "timesheet_entry[units]": "", | |
| "timesheet_entry[member_id]": "<your employment hero user id>", | |
| "timesheet_entry[work_type_id]": "", |
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
| ### Roster | |
| Players named in preferred order. | |
| 1. flux- | |
| 2. never say never | |
| 3. arislayer, Trojan | |
| 4. crazybrodd | |
| 5. Trojan, arislayer, hazrold |
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
| { | |
| "editor.cursorBlinking": "solid", | |
| "editor.cursorStyle": "block", | |
| "editor.folding": false, | |
| "editor.fontFamily": "'Fira Code', Menlo, Monaco, 'Courier New', monospace", | |
| "editor.fontLigatures": true, | |
| "editor.fontSize": 18, | |
| "editor.lineHeight": 54, | |
| "editor.lineNumbers": "relative", | |
| "editor.renderIndentGuides": true, |
I hereby claim:
- I am hongymagic on github.
- I am hongymagic (https://keybase.io/hongymagic) on keybase.
- I have a public key ASBWSCI8ECscypqkQ9r9BVAprZAJg6NDe4XNgJHSzVjlvQo
To claim this, I am signing this object: