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
semaphore@semaphore-vm:~/platform$ df -h | |
Filesystem Size Used Avail Use% Mounted on | |
udev 7.9G 0 7.9G 0% /dev | |
tmpfs 1.6G 6.5M 1.6G 1% /run | |
/dev/mapper/semaphore--vm--vg-root 45G 30G 15G 68% / | |
tmpfs 7.9G 0 7.9G 0% /dev/shm | |
tmpfs 5.0M 0 5.0M 0% /run/lock | |
tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup | |
tmpfs 512M 0 512M 0% /run/shm | |
/dev/vda1 236M 113M 111M 51% /boot |
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
set history=700 | |
set nocp | |
color delek | |
syntax on | |
set autoindent | |
set backup | |
set backupdir=~/vim/tmp | |
set bg=dark | |
set clipboard=unnamedplus | |
set cmdheight=2 |
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
My Awesome Sketch | |
First State | |
some event -> Second State | |
Second State |
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
JSON.stringify(Array.from(document.querySelectorAll('[data-repository-id]')).map(aTag => { | |
const href = aTag.getAttribute('href'); | |
let projName = href.match(/\/projects\/(.+)\/repos/)[1].toLowerCase(); | |
let repoName = href.match(/\/repos\/(.+)\/browse/)[1]; | |
repoName = repoName.replace(' ', '-'); | |
const templ = `https://${location.host}/scm/${projName}/${repoName}.git`; | |
return { | |
href, | |
name: aTag.innerText, | |
clone: templ |
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 { withHandlers, withState, compose } from "recompose"; | |
const RenderComponent = ({ handleClick, stateValue, newValue }) => { | |
return ( | |
<button onClick={handleClick}> | |
RenderComponent ({stateValue.value} clicks!) | |
</button> | |
); | |
}; |
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 PropTypes from 'prop-types'; | |
const Functional3 = props => { | |
return ( | |
<div> | |
Hello from Functional3 and {props.name}! | |
</div> | |
) | |
}; |
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'; | |
const Functional2 = props => { | |
return ( | |
<div> | |
Hello from Functional2 and {props.name}! | |
<br/> | |
this: {this} | |
</div> | |
) |
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 Functional = props => <div>This is a Functional component!</div>; |
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> | |
<head> | |
<meta name="description" content="Adding scripts | |
to an interior iframe through | |
src attribute and/or DOM access"> | |
<meta charset="utf-8"> | |
<meta name="viewport" | |
content="width=device-width"> | |
<title>JS Bin</title> |
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
{ | |
"shooters": { | |
"Bastion (recon)": { | |
"dmgFalloffStart": 26, | |
"dmgFalloffEnd": 50, | |
"magSize": 25, | |
"maxShotDmg": 20, | |
"minShotDmg": 6, | |
"reloadTime": 2.0, | |
"shotsPerSec": 8 |