I hereby claim:
- I am kevinkassimo on github.
- I am kassimo (https://keybase.io/kassimo) on keybase.
- I have a public key ASAg9wH3PCLp0R9XdoCYEQ1ZPCwFKnBlq2QN4Tb7kjvHfQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| # in China, the following lines won't work due to SSL problems. Use Github source or proxy instead | |
| go get -u golang.org/x/crypto/bcrypt | |
| go get -u golang.org/x/crypto/blowfish | |
| go get -u golang.org/x/crypto/bn256 | |
| go get -u golang.org/x/crypto/cast5 | |
| go get -u golang.org/x/crypto/curve25519 | |
| go get -u golang.org/x/crypto/hkdf | |
| go get -u golang.org/x/crypto/md4 | |
| go get -u golang.org/x/crypto/nacl/box |
| #!/bin/bash | |
| # PropTypes from react is deprecated | |
| npm install --save prop-types | |
| # React suggest immutability-helper over legacy react-addons-update: https://facebook.github.io/react/docs/update.html | |
| npm install --save immutability-helper |
| using UnityEngine; | |
| using System.Collections; | |
| using System.Linq; | |
| using System.Collections.Generic; | |
| // Adapted from https://unionassets.com/blog/spatial-hashing-295 AND | |
| // Adapted from https://conkerjo.wordpress.com/2009/06/13/spatial-hashing-implementation-for-fast-2d-collisions/ | |
| namespace SpatialHash { | |
| public interface ISpatialHashObject2D { |
| const puppeteer = require('puppeteer'); | |
| const fs = require('fs'); | |
| const currenciesJSON = fs.readFileSync('./config.json'); | |
| const currencies = JSON.parse(currenciesJSON).currencies; | |
| puppeteer.launch({devtools: false}).then(async browser => { | |
| for (let currency of currencies) { | |
| const page = await browser.newPage(); | |
| if (currency == '') { | |
| continue; |
| alert("Hello world"); |
| #!/bin/bash | |
| # part of the script is introduced with inspiration from https://gist.github.com/tylergets/e4ab5bea35ddcd6c3134503b44284165 | |
| echo "Temporarily starting SafeConnect process..." | |
| sudo launchctl enable system/scManagerD 2>&1 > /dev/null | |
| sudo launchctl load /Library/LaunchDaemons/Safe.Connect.plist 2>&1 > /dev/null | |
| sudo launchctl enable system/scClient 2>&1 > /dev/null | |
| sudo launchctl load /Library/LaunchAgents/Safe.Connect.client.plist 2>&1 > /dev/null | |
| cd /Applications/SafeConnect.app/Contents/MacOS/ |
| #!/bin/bash | |
| rm -rf ./output | |
| echo "====== Testing part B results..." | |
| echo "====== Running scala-shell..." | |
| spark-shell -i topUsers.scala | |
| echo "====== Validating results..." |
| #!/bin/bash | |
| ### Change current directory and cache it | |
| # e.g. | |
| # $ rd some/dir | |
| # (after a while) | |
| # $ rd # jump to some/dir | |
| function rd { | |
| if [[ ! -z "$1" ]]; then | |
| cd "$1" |
| const createDecorator = () => { | |
| const { | |
| Provider: RawProvider, | |
| Consumer: RawConsumer, | |
| } = React.createContext(null); | |
| const provider = (value) => (WrappedClass) => { | |
| return class extends React.Component { | |
| constructor(props) { | |
| super(props); |