Skip to content

Instantly share code, notes, and snippets.

View agrublev's full-sized avatar
💭
Always moving forward

Angel Grablev agrublev

💭
Always moving forward
View GitHub Profile
@agrublev
agrublev / macsetup.sh
Created September 25, 2018 03:38
SET
#!/usr/bin/env bash
# TODO INSTALL MAGET APP
#https://gist.github.com/jexchan/5754956
#https://github.com/mathiasbynens/dotfiles/blob/master/.macos
#https://jonlabelle.com/snippets/view/shell/mac-os-x-defaults
# ~/.macos — https://mths.be/macos
# Close any open System Preferences panes, to prevent them from overriding
# settings we’re about to change
osascript -e 'tell application "System Preferences" to quit'
@agrublev
agrublev / array.md
Last active October 3, 2018 09:48
Array Code Snippets

Returns true if the provided predicate function returns true for all elements in a collection, false otherwise.

Use Array.prototype.every() to test if all elements in the collection return true based on fn. Omit the second argument, fn, to use Boolean as a default.

Code

const all = (arr, fn = Boolean) => arr.every(fn);
@agrublev
agrublev / adapter.md
Created October 3, 2018 09:53
Snippets math

Quokka #2 (node: v8.11.3)

Creates a function that accepts up to n arguments, ignoring any additional arguments.

Call the provided function, fn, with up to n arguments, using Array.prototype.slice(0,n) and the spread operator (...).

Code

const ary = (fn, n) => (...args) => fn(...args.slice(0, n));
<!--
header
logo
menu
menu-item
hero
call-to-action
call-to-action-title
call-to-action-button
content
@agrublev
agrublev / History|-4b6566a4|2CSI.json
Last active December 20, 2022 13:45
Visual Studio Code Settings Sync Gist
{
"remote.SSH.remotePlatform": {
"agrublev.webtoolbox.draft---boring-sunset.csb": "linux"
},
"git.path": "/usr/bin/git"
}
@agrublev
agrublev / SketchSystems.spec
Last active October 27, 2018 00:14
Freedcamp Chat
Freedcamp Chat
Login*
auth -> Home
Home
openChat -> Chat
Chat
0x8041200c
0x80456664
0x3f6454
0x45717c
0xa4
https://github.com/udacity/CarND-Term1-Starter-Kit
https://towardsdatascience.com/introduction-to-udacity-self-driving-car-simulator-4d78198d301d
https://github.com/naokishibuya/car-behavioral-cloning
https://github.com/udacity/CarND-Behavioral-Cloning-P3
https://github.com/udacity/CarND-Term1-Starter-Kit/blob/master/README.md
https://github.com/udacity/CarND-Term1-Starter-Kit/blob/master/doc/configure_via_anaconda.md
https://conda.io/docs/
https://github.com/udacity/CarND-Term1-Starter-Kit/blob/master/README.md
@agrublev
agrublev / parse_dotenv.bash
Created December 20, 2018 05:16 — forked from judy2k/parse_dotenv.bash
Parse a .env (dotenv) file directly using BASH
# Pass the env-vars to MYCOMMAND
eval $(egrep -v '^#' .env | xargs) MYCOMMAND
# … or ...
# Export the vars in .env into your shell:
export $(egrep -v '^#' .env | xargs)
@agrublev
agrublev / index.js
Created January 25, 2019 00:06 — forked from zkat/index.js
npx is cool
#!/usr/bin/env node
console.log('yay gist')