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
| <#740267971422715989> ``` | |
| _____ _______ ____ _____ _ | |
| / ____|__ __/ __ \| __ \ _ | | _ | |
| | (___ | | | | | | |__) (_) __ _ ___ | |_ ___(_) | |
| \___ \ | | | | | | ___/ / _` |/ _ \ | __/ _ \ | |
| ____) | | | | |__| | | _ | (_| | (_) | | || (_) | | |
| |_____/ |_| \____/|_| ( ) \__, |\___/ \__\___(_) | |
| |/ __/ | | |
| _ _ ___ _ |___/ _ _ _ _ | |
| _| || |_ |__ \ | | | | | | | | | | |
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 _Name = { Name: class <T> { | |
| val: T; | |
| constructor(val: T){ | |
| this.val = val; | |
| } | |
| } }.Name; | |
| const Name = (() => { | |
| declare class Name<T> extends _Name<T> { |
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
| type ObjMapF<T> = <V:$Values<T>, K:$Keys<T>>(V, K, T)=>mixed; | |
| type ObjMap<T:{}, F:ObjMapF<T>> = $ObjMapi<T, <K, V>(K, V)=>$Call<F, V, K, T>> ; | |
| const objMap = <T:{}, F:ObjMapF<T>=*>(o: T, f: F): ObjMap<T, F> => { | |
| let keys: Array<$Keys<T>> = Object.keys(o); | |
| let obj = keys.map(k => { | |
| let v = o[k]; | |
| type K = typeof k; | |
| type V = typeof v; | |
| let r = f<K, V>(o[k], k, o) | |
| return r; |
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
| >l}?;l1+:3%?v7e"iF"oo"zz"oo1. | |
| \=*aaloa<n <>:a1@@5%?.~~7"uB"f3+0. |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <!-- Generated by: TmTheme-Editor --> | |
| <!-- ============================================ --> | |
| <!-- app: http://tmtheme-editor.herokuapp.com --> | |
| <!-- code: https://github.com/aziz/tmTheme-Editor --> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>name</key> | |
| <string>T6</string> |
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
| ; acceleration_enabled = {acceleration_enabled} | |
| ; acceleration_infill = {acceleration_infill} | |
| ; acceleration_ironing = {acceleration_ironing} | |
| ; acceleration_layer_0 = {acceleration_layer_0} | |
| ; acceleration_prime_tower = {acceleration_prime_tower} | |
| ; acceleration_print = {acceleration_print} | |
| ; acceleration_print_layer_0 = {acceleration_print_layer_0} | |
| ; acceleration_roofing = {acceleration_roofing} | |
| ; acceleration_skirt_brim = {acceleration_skirt_brim} | |
| ; acceleration_support = {acceleration_support} |
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
| generateSetters = (obj) => | |
| new Proxy({}, { | |
| get: (_, name) => { | |
| name = | |
| name.startsWith("_") ? | |
| name.slice(1) : | |
| name.startsWith("set") ? | |
| name[3].toLowerCase() + name.slice(4) : | |
| name |
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
| Array.prototype.asyncMap = function(fn){ | |
| return Promise.all(this.map(fn)) | |
| } |
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
| Promise.allObjectValues = async obj => | |
| Object.assign({}, ...(await Promise.all(Object.entries(obj).map(async ([k, v]) => ({ [k]: await v }))))) |
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
| Array.createRandomSortFunction = () => { | |
| let map = new Map([]); | |
| let lookup = v => { | |
| if(map.get(v)) return map.get(v); | |
| let o = Math.random(); | |
| map.set(v, o); | |
| return o; | |
| } |