Skip to content

Instantly share code, notes, and snippets.

View bozzmob's full-sized avatar
😎
Work In Progress

Satvik bozzmob

😎
Work In Progress
  • CISCO
  • India
View GitHub Profile

root@purvotara:~/ReactJS/native/react-native# ./gradlew :Examples:UIExplorer:android:app:installDebug

:ReactAndroid:compileLint :ReactAndroid:copyReleaseLint UP-TO-DATE :ReactAndroid:preBuild UP-TO-DATE :ReactAndroid:preReleaseBuild UP-TO-DATE :ReactAndroid:checkReleaseManifest :ReactAndroid:preDebugAndroidTestBuild UP-TO-DATE :ReactAndroid:preDebugBuild UP-TO-DATE :ReactAndroid:preDebugUnitTestBuild UP-TO-DATE

@bozzmob
bozzmob / basic-async-await-1.js
Created December 10, 2015 20:33
basic-async-await-1.js
console.log("hello");
let myObj = {
async setObj: function(a,b) {
obj.a = a;
obj.b = b;
}
await setObj(2,3);
console.log(obj.a+obj.b);
}
@bozzmob
bozzmob / basic-async-await.js
Created December 10, 2015 20:27
basic-async-await.js
var obj = {};
console.log("hello");
setObj: async function(a,b){
obj.a = a;
obj.b = b;
};
await setObj(2,3);
@bozzmob
bozzmob / asyncawait.js
Created December 22, 2015 04:57
Async Await example
async function myAsyncFunction (myObj) {
var x = new MyDataStore(myObj);
return await x.init();
}
var returnVal = await myAsyncFunction(obj);
// in another module
async function init(){
return 10;
@bozzmob
bozzmob / Changing GIT commit Date
Created January 20, 2016 18:51
Changing GIT commit Date
git filter-branch --env-filter \
'if [ $GIT_COMMIT = c4383ad4380ff73c088cb9561e72e3cf3598fdf0 ]
then
export GIT_AUTHOR_DATE="Wed Jan 20 21:38:53 2016 +0530"
export GIT_COMMITTER_DATE="Wed Jan 20 21:38:53 2016 +0530"
fi'
(async function testingAsyncAwait() {
await console.log("For Trump's Sake Print me!");
})();
require("babel-core/register");
require("babel-polyfill");
(async function testingAsyncAwait() {
await console.log("For Trump's Sake Print me!");
})();
@bozzmob
bozzmob / home.js
Created October 16, 2016 14:54 — forked from melihmucuk/home.js
react native animate listview rows while scrolling
import React, { Component } from 'react';
import {
StyleSheet,
View,
Text,
ListView
} from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome';
import * as Animatable from 'react-native-animatable';
@bozzmob
bozzmob / promise.js
Created January 31, 2017 07:29 — forked from jish/promise.js
An example "always" behavior for ES6 promises. This only works if you do not create / return intermediate promises.
// A thing I want to do
// This flow only involves **one** promise, for example an ajax call
// None of the subsequent `then` or `catch` calls, return new promises.
var explode = false;
var promise = new Promise(function(resolve, reject) {
if (explode) {