Skip to content

Instantly share code, notes, and snippets.

View vamshi4001's full-sized avatar
🏠
Working from home

Vamshi Vangapally vamshi4001

🏠
Working from home
View GitHub Profile
var myFunc = function () {
myOtherFunc();
console.log('hi');
};
var myFunc2 = function(){
var deferred = jQuery.Deferred();
var x = myOtherFunc2(deferred);
x.then(function(data){
console.log(data);
Front End = User Interface = UI = Web Development
Web Developer = HTML/CSS/Javascript
Graphical User Interface = GUI
Web Developer
UI Developer
Web application
var total = 0;
var x = $("._sz6");
for (var i = 0; i < x.length; i++) {
total += parseInt(x[i].textContent.replace(",","").substr(1,x[i].length)) || 0
}
@vamshi4001
vamshi4001 / react-blogs.html
Created February 13, 2017 05:09
List of high quality blogs on react-native
<div class="md"><p>Going alphabetically by blog title through my "high quality blogs" subscriptions:</p>
<ul>
<li><a href="http://benmccormick.org/">Ben McCormick</a>: used to write mostly about Backbone, has now moved to React.</li>
<li><a href="http://cmichel.io/">Christoph Michel</a>: has written a number of good articles about React, React Native, and Redux</li>
<li><a href="http://randycoulman.com/blog/">Randy Coulman</a>: excellent, deep, well-written articles about Redux and functional programming techniques</li>
<li><a href="https://medium.com/@dan_abramov/">Dan Abramov</a>: It's Dan Abramov. Possibly the nicest, most helpful guy in the React/Redux community, who also happens to have written some of the most informative and influential articles about using React and Redux.</li>
<li><a href="http://www.davidmeents.com/">David Meents</a>: assorted React and Redux articles</li>
<li><a href="https://decembersoft.com/">Philip Davis</a>: Redux and Webpack tutorials</li>
<li><a href="http://goshakkk.name/">
0xeaE589f3eB29e9d12b2309bE74E96F7699a100e9
pragma solidity ^0.4.8;
/**
* Math operations with safety checks
*/
library SafeMath {
function mul(uint a, uint b) internal returns (uint) {
uint c = a * b;
assert(a == 0 || c / a == b);
pragma solidity ^0.4.11;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal returns (uint256) {
uint256 c = a * b;
pragma solidity ^0.4.11;
contract TokenSale{
uint public maxTokens = 100*1000000;
uint public rate = 1000;
uint public fundingGoal = 10000 ether;
uint public minContribution = 0.1 ether;
uint public teamTokensPercent = 20;
uint public crowdsalePercent = 80;
uint public bounty = 10*1000000;
Verifying my Blockstack ID is secured with the address 1GZ8JzHqRLbP7qptPNfhRe3jGrCDdjHTBJ https://explorer.blockstack.org/address/1GZ8JzHqRLbP7qptPNfhRe3jGrCDdjHTBJ
@vamshi4001
vamshi4001 / usaCities.js
Created February 6, 2018 19:15 — forked from Lwdthe1/usaCities.js
JSON of 5,950+ USA Cities and Their States
[
{'city': 'Abbeville', 'state': 'Louisiana'},
{'city': 'Aberdeen', 'state': 'Maryland'},
{'city': 'Aberdeen', 'state': 'Mississippi'},
{'city': 'Aberdeen', 'state': 'South Dakota'},
{'city': 'Aberdeen', 'state': 'Washington'},
{'city': 'Abilene', 'state': 'Texas'},
{'city': 'Abilene', 'state': 'Kansas'},