TheContract.sol
pragma solidity ^0.4.23;
contract TheContract {
struct Object {
address createdBy;
uint balance;
pragma solidity ^0.4.11; | |
/** | |
* @title Ownable | |
* @dev The Ownable contract has an owner address, and provides basic authorization control | |
* functions, this simplifies the implementation of "user permissions". | |
*/ | |
contract Ownable { | |
address public owner; |
const link = document.createElement('link') | |
link.rel = 'stylesheet' | |
link.href = 'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css' | |
link.crossorigin = 'anonymous' | |
const head = document.getElementsByTagName('head')[0] | |
head.prepend(link) | |
const body = document.getElementsByTagName('body')[0] | |
body.className = 'container' |
import { omit, pick, isEmpty } from 'lodash' | |
import React from 'react' | |
import { isBrowser, get } from 'utils/misc' | |
const hasLocalStorage = isBrowser && !!localStorage | |
type Options = { | |
cacheKey: string, | |
whitelist: Array<string>, |
[36mBuilt-in Atom Packages[39m (92) | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] |
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/KimSeokjun/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="pygmalion" | |
# Uncomment the following line to use case-sensitive completion. |
#!/bin/bash | |
# Erase SD card | |
sudo diskutil eraseDisk FAT32 NAME MBRFormat /dev/disk2 | |
# Unmount SD card to build image | |
sudo diskutil unmountDisk /dev/disk2 | |
# Build boot image | |
sudo dd bs=1m if=2017-07-05-raspbian-jessie.img of=/dev/rdisk2 |
var fibonacci = (() => { | |
const memo = [0, 1] | |
return n => ( | |
memo[n] >= 0 | |
? memo[n] | |
: memo[n] = fibonacci(n - 1) + fibonacci(n - 2) | |
) | |
})() |
const _ = require('lodash') | |
const adjacency = (paths, start, end) => { | |
const visited = [], queues = [start], matrix = {} | |
let minPath = null | |
_.each(paths, (path, key) => { matrix[key] = {} }) | |
matrix[start][start] = { | |
from: start, | |
cost: 0, |
function Person () { | |
this.race = 'human' | |
} | |
function Japanese () { | |
this.lang = 'Japanese' | |
} | |
Japanese.prototype = new Person() | |
var j = new Japanese() |