-
Let's check you NPM version:
npm -v
if version> 5; we're are good to go, skip to step 2 -
else: let's update the npm!
This file contains 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
def copy(term) do | |
text = | |
if is_binary(term) do | |
term | |
else | |
inspect(term, limit: :infinity, pretty: true) | |
end | |
port = Port.open({:spawn, "pbcopy"}, []) | |
true = Port.command(port, text) |
This file contains 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
# install and configuration tools | |
brew "direnv" | |
brew "asdf" | |
brew "nvm" | |
# utilities | |
brew "caddy" | |
brew "watch" | |
brew "htop" | |
brew "bat" |
This file contains 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
defmodule AppWeb.Host do | |
@moduledoc """ | |
Conveniences for working with host. | |
""" | |
def root do | |
Keyword.get(get_config(), :root) | |
end | |
def root_uri do | |
Keyword.get(get_config(), :root_uri) |
This file contains 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
rels = (ring 0.33,1, 1.4, 2, 4) # ring allows us to `tick` aka cycle through diff values - useful for creating rhythms | |
times = (ring 0.25, 0.125, 0.5, 1) | |
live_loop :___ do | |
in_thread do | |
sample :loop_mehackit2, # this sample comes from the sonic pi library | |
beat_stretch: 3, | |
rate: 0.75, # how fast we play the given sample | |
decay: 6, |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am dviramontes on github. | |
* I am dviramontes (https://keybase.io/dviramontes) on keybase. | |
* I have a public key ASAhg2r6QoKWwdaLWPq5os9l1sSD8M4Q8vjLI9higXOzEQo | |
To claim this, I am signing this object: |
This file contains 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
import App from './App'; | |
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import './utils/styles/global-styles.css'; | |
import * as serviceWorker from './services/serviceWorker'; | |
const ws = new WebSocket("ws://0.0.0.0:4000/ws") | |
ws.onopen = () => { | |
// connected |
This file contains 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
<div className='ui container assets'> | |
<div className='ui row'> | |
{ loading ? | |
<Loading /> : | |
<table className='ui padded table'> | |
<thead> | |
<tr> | |
<th>Asset</th> | |
<th>Platform</th> | |
<th>KeepKey</th> |
This file contains 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
// print name of calling program, | |
// list args passed each on a new line, | |
// print time elapsed | |
package main | |
import ( | |
"fmt" | |
"os" | |
"strings" |
This file contains 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 flattenArray(arr) { | |
return arr.reduce((acc, e) => { | |
if(Array.isArray(e)){ | |
return acc.concat(flattenArray(e)); | |
} | |
acc.push(e); | |
return acc; | |
}, []); | |
} |
NewerOlder