Skip to content

Instantly share code, notes, and snippets.

View zashishz's full-sized avatar

Ashish verma zashishz

View GitHub Profile
conda create --name bunnies python=3.5 astroid babel
activate bunnies
//to get all env details
conda info --envs
@zashishz
zashishz / firebase.md
Created January 15, 2018 18:49
Firebase 101

Firebase 101

import * as firebase from 'firebase';

const config = {
    apiKey: "XXXXXXXXXXXXX",
    authDomain: "XXXXXXXXm",
    databaseURL: "XXXXXXXXm",
 projectId: "expXXXXXXXXXXXXXXX39",
@zashishz
zashishz / async-await.js
Created January 15, 2018 18:47
Centralised Error handler for async await
function delay () {
return new Promise((res, rej) => {
setTimeout(() => {
rej(5);
}, 3000)
})
}
const hof = (func) => {
return func().catch((err) => {
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
@zashishz
zashishz / Workflow - NPM Installs
Last active August 2, 2017 14:45
NPM installs in order for Automated WF
jquery
normalize.css
D- gulp
D- gulp-watch
D- gulp-postcss
D- autoprefixer
D- postcss-simple-vars
D- postcss-nested
====BEM- Intro====
Directives:
//One Way Data Binding
<a v-bind:href="link">Name</a>
Render Once
v-once // Eg: <h1 v-once> {{ title }} </h1>
Render HTML Content
v-html // Eg: <p v-html="link"></p>
* Tokenisation - Break down word by word (including/ excluding punctuations).
* Stop word Removal - like remove had a is while - (Words which provide structure) - Common Words
* N-Grams - (Group of words occuring together) ex: New York is a BiGram
* Word sense Diambiguation - Get meaning of workbased on context it occurs
* Part of speech Tagging - tag with Noud adverb etc.
* Stemming - Having different ending eg: Close or closer
skype - dipak.consona
email: dipakhimmatramka@yahoo.co.in
// Call / SMS code
Titanium.UI.EmailDialog see examples
------CODE------
/**
Ti.API.(info/debug/error)('window');
Ti.App.fireEvent('changeBg',{newcolor: 'red'});
Ti.App.addEventListener('changeBg',function(a){'
view.backGroundColor = a.newcolor;
});
//e.source.whichObj
//saving JSON.XML Obj's //Saving Global Prop's /eg:OSname
var win = Ti.UI.createWindow({
background:'My Window',
});
var view = Ti.UI.createView({
backgroundColor: 'transparent',
top: 0,
left: 0,
width: '100%',
height: '100%',
layout: 'vertical'