Skip to content

Instantly share code, notes, and snippets.

View zashishz's full-sized avatar

Ashish verma zashishz

View GitHub Profile
@zashishz
zashishz / Git Commands
Last active June 24, 2017 12:08
Git Handy Commands
* git remote -v //shows all remote sources
* git remote set-url origin <<link>>
* git remote add origin https://github.com/try-git/try_git.git
* git push -u origin master
* git pull origin master
* git diff HEAD
//compare with staged files
* git diff --staged
//unstage
* git reset octofamily/octodog.txt
============================================
# TYPE OF NODES
----------------
1. Element Node
2. Attribure Node
3. Text Node
++++++++++++++++++++++++++++++++++++++++
## Target on Elements
++++++++++++++++++++++++++++++++++++++++
Event Names
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
HANDLING EVENTS
Method 1.
-------------
<button onclick="alert('Hello, World');">Some JS</button>
Method 2.
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'
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
skype - dipak.consona
email: dipakhimmatramka@yahoo.co.in
// Call / SMS code
Titanium.UI.EmailDialog see examples
------CODE------
/**
* 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
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>
@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====
<?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"