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
| var c = '0x592ea8777e0fd82a928bb24a40353ad86792375c' | |
| var key = '0000000000000000000000000000000000000000000000000000000000000000'; | |
| var index_key = web3.sha3('myname').split('0x')[1] | |
| var newKey = web3.sha3(key + index_key, {'encoding': 'hex'}); | |
| var d = web3.eth.getStorageAt(c, newKey); | |
| console.log(d); |
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
| <!-- Mixpanel --><script type="text/javascript">var mpq=[];mpq.push(["init","REPLACE TOKEN"]);(function(){var a=document.createElement("script");a.type="text/javascript";a.async=true;a.src=(document.location.protocol==="https:"?"https:":"http:")+"//api.mixpanel.com/site_media/js/api/mixpanel.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)})();</script><!-- End Mixpanel --> |
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
| <!-- Mixpanel --><script type="text/javascript">var mpq=[];mpq.push(["init","REPLACE TOKEN"]);(function(){var a=document.createElement("script");a.type="text/javascript";a.async=true;a.src=(document.location.protocol==="https:"?"https:":"http:")+"//api.mixpanel.com/site_media/js/api/mixpanel.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)})();</script><!-- End Mixpanel --> |
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
| # Mixpanel, Inc. | |
| # http://mixpanel.com | |
| max_ring_size = 2**127 | |
| def token_percent(token, max): | |
| return round(token / float(max_ring_size), 4) | |
| def calc(ring_load): | |
| highest = {'total': 0, 'percent0': 0, 'percent1': 0} |
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
| player.playSong = function(track_id) { | |
| var artist = songs[track_id]['artist']; | |
| var genre = songs[track_id]['genre']; | |
| mpmetrics.track("Play Song", {"artist": artist, "genre": genre}); | |
| } |
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
| Posts | |
| user_id_1 | |
| post: | |
| name=test1, created=<timestamp> | |
| name=test1, created=<timestamp> | |
| name=test1, created=<timestamp> | |
| user_id_2 | |
| post: | |
| name=test1, created=<timestamp> | |
| name=test1, created=<timestamp> |
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
| http://dpaste.com/120601/ |
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 urllib2 | |
| import urllib | |
| def check_key(key): | |
| form_data = urllib.urlencode([ | |
| ('nickname', 'asdf'), | |
| ('first_name', 'asdf'), | |
| ('last_name', 'asdf'), | |
| ('email', '[email protected]'), | |
| ('password1', 'asdf'), |
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
| <script type="text/javascript" src="http://mixpanel.com/site_media/js/api/mixpanel.js"></script> | |
| <script type="text/javascript"> | |
| try { | |
| var mpmetrics = new MixpanelLib("YOUR_TOKEN"); | |
| mpmetrics.register({"user type": "noob", "gender": "male"}); | |
| } catch(err) {} | |
| </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
| <script type="text/javascript" src="http://api.mixpanel.com/site_media/js/api/mixpanel.js"></script> | |
| <script type="text/javascript"> | |
| try { var mpmetrics = new MixpanelLib("YOUR_TOKEN"); } catch(err) {} | |
| </script> | |