# initialize a new repo
echo "# repo" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin [email protected]:user/repo.git
git push -u origin main
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
Plans | |
List | |
click -> Preview | |
new -> New | |
Preview | |
cancel -> List | |
edit -> Edit View | |
view -> Detail View | |
Detail View | |
cancel -> List |
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
Plans | |
List | |
click -> Preview | |
new -> New | |
Preview | |
cancel -> List | |
edit -> Edit View | |
view -> Detail View | |
Detail View | |
cancel -> List |
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 capitalize = R.compose( | |
R.join(''), | |
R.juxt([ | |
R.compose( | |
R.toUpper, | |
R.head | |
), | |
R.tail | |
]) | |
) |
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
<!doctype html> | |
<html lang="en"> | |
<body> | |
<iframe id="theIframe" width="400" height="600" sandbox="allow-popups allow-scripts allow-forms allow-same-origin"></iframe> | |
<script> | |
var html = '<html><h1>hello world!</h1></html>' | |
var blob = new Blob([html], {type: 'text/html'}) | |
var url = URL.createObjectURL(blob) | |
theIframe.src = url | |
</script> |
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
ExUnit.start(exclude: [:test], include: [:only]) |
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
import React from 'react'; | |
import { compose, mapProps } from 'recompose'; | |
import someAction from './someAction'; | |
export const Component = ({ handleOnClick }) => ( | |
<button onClick={handleOnClick}>Ayyy lmao</button> | |
); | |
const enhance = compose( |
I hereby claim:
- I am mylsb on github.
- I am myslab (https://keybase.io/myslab) on keybase.
- I have a public key ASBJXmvTPBV7iRxZEjqBgQ6sAFWioop9UMhfAOvfJ1SH0wo
To claim this, I am signing this object:
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
import facebook | |
import requests | |
def some_action(post): | |
""" Here you might want to do something with each post. E.g. grab the | |
post's message (post['message']) or the post's picture (post['picture']). | |
In this implementation we just print the post's created time. | |
""" | |
print post['created_time'] |