show dbs
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
| # Unix (Terminal) | |
| open -a "Google Chrome" --args --disable-gpu-vsync --disable-frame-rate-limit | |
| # Windows (Command prompt) | |
| start chrome --args --disable-gpu-vsync --disable-frame-rate-limit |
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
| // running the function with `objectA` and `expectedKeys` | |
| // should return `true` | |
| const objectA = { | |
| id: 2, | |
| name: 'Jane Doe', | |
| age: 34, | |
| city: 'Chicago', | |
| }; | |
| // running the function with `objectB` and `expectedKeys` |
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
| // you can pass in `scratchData` to test out `findByid` | |
| // your function | |
| const scratchData = [ | |
| { id: 22, foo: 'bar' }, | |
| { id: 28, foo: 'bizz' }, | |
| { id: 19, foo: 'bazz' }, | |
| ]; | |
| function findById(items, idNum) { | |
| return items.find(item => item.id === idNum); |
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 makeStudentsReport(data) { | |
| let report = []; | |
| for (i = 0; i < data.length; i++) { | |
| let student = data[i]; | |
| report.push(`${student.name}: ${student.grade}`); | |
| } | |
| return report; | |
| } | |
| /* From here down, you are not expected to |
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 users = [ | |
| { | |
| name: 'Bernard', | |
| age: 29, | |
| birthMonth: 'April', | |
| }, | |
| { | |
| name: 'Bernice', | |
| age: 14, | |
| birthMonth: 'December', |
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
| // CAUTION / / / CAUTION / / / CAUTION / / / CAUTION / / / CAUTION / / / CAUTION / / / CAUTION / / / | |
| // Notice the for loops have a hardcoded values for how far they can go (32) | |
| // This is a result of WEBGL not allowing while loops. Change the value to what you find appropriate! | |
| // CAUTION / / / CAUTION / / / CAUTION / / / CAUTION / / / CAUTION / / / CAUTION / / / CAUTION / / / | |
| // | |
| // Hopefully this gives you the format for making your own operators such as XOR, NAND, etc. | |
| // | |
| // Adapted from this thread: | |
| // https://scratch.mit.edu/discuss/topic/97026/ |
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
| Industry | ||
|---|---|---|
| Accounting | ||
| Airlines/Aviation | ||
| Alternative Dispute Resolution | ||
| Alternative Medicine | ||
| Animation | ||
| Apparel/Fashion | ||
| Architecture/Planning | ||
| Arts/Crafts | ||
| Automotive |
Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative
float rand(float n){return fract(sin(n) * 43758.5453123);}
float noise(float p){
float fl = floor(p);
float fc = fract(p);
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
| alias editbash='vim ~/.bashrc' | |
| alias updatebash='source ~/.bashrc' | |
| alias ls='ls -alC --color=auto' | |
| function search (){ | |
| egrep -roiI $1 . | sort | uniq | |
| } | |
| function whereis (){ | |
| find . -name "$1*"; |
NewerOlder