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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
Framer | |
Input-Framer | |
Framer module to easily turn your designs inputs into real inputs. | |
https://github.com/ajimix/Input-Framer |
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
Screenshot of iMessage Sketch template |
I hereby claim:
- I am nipponese on github.
- I am noaht (https://keybase.io/noaht) on keybase.
- I have a public key ASDeRasX3F6QQjw6ik4XsD7px6em0qpz027d_NYI5SFYLwo
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
<snippet> | |
<content> | |
window.addEventListener('load', function() { | |
if (typeof web3 !== 'undefined') { | |
web3 = new Web3(web.currentProvider); | |
} else { | |
web3 = new Web3(new Web3.providers.HttpProvider("${1:http://127.0.0.1:7545}")); //Ganache Default | |
} | |
web3.eth.defaultAccount = web3.eth.accounts[0]; |
Using .call()
or .delegatecall()
we can call functions, similar to the data
field in a sendTransaction
However, the function name being called must be encoded in hex so the first four bytes can be read as the function name. To do this, we use <address>.delegatecall(bytes4(keccak256("functionName()")))
.
contract LogTest {
event LogIt(string _text);
//constructor
The join
method in the datascience module is not the join
string method.
def state(state1, state2):
state1_table = murder_rates.where('State', state1).drop('State', 'Population').relabeled(1, 'Murder rate in {}'.format(state1))
state2_table = murder_rates.where('State', state2).drop('State', 'Population').relabeled(1, 'Murder rate in {}'.format(state2))
s1_s2 = state1.join('Year', state2, 'Year')
state('California', 'New York')
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
// | |
// UIView+extension.swift | |
// | |
// Created by Noah Tsutsui on 7/25/18. | |
// Copyright © 2018 Noah Tsutsui. All rights reserved. | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
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
BEGIN MESSAGE. | |
6Uu5Q1Z1c9SrJUQ MKioCuSP0lqJH1N wWzoTWQENPWrMat Ads6dMDFNEwRqyZ | |
6Bo6ap9Mm6TiuxE tm6lVb0Kp0yTCKq 6Xr2MZHgg4XIjpO yhZxQWba8bOTaTW | |
yqbUnmx1kS25f9s QIv3R6w2ASYigXp AmcLyzekQivP6sx Edfo0Q4SnPSITMd | |
4UbSFa3sMKXbrqJ jambmjUDl9VGsWc d7jDM29HFxl. | |
END MESSAGE. |
OlderNewer