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:
I hereby claim:
To claim this, I am signing this object:
{ | |
"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, |
### Roster | |
Players named in preferred order. | |
1. flux- | |
2. never say never | |
3. arislayer, Trojan | |
4. crazybrodd | |
5. Trojan, arislayer, hazrold |
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]": "", |
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.
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> |
// | |
// 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) { |
function apply(handler, args) { | |
return handler.apply(null, args); | |
} | |
function toArray(collection) { | |
return [].slice.call(collection); | |
} | |
function reverse(collection) { | |
return toArray(collection).reverse(); |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |