Skip to content

Instantly share code, notes, and snippets.

View techneo1's full-sized avatar

Srikanth Shet techneo1

View GitHub Profile
npm pack --> schematics-hrcb-feature-generator-1.0.0.tgz
npm i --no-save schematics-hrcb-feature-generator-1.0.0-tgz
ng g hrcb-feature-generator:hrcb-feature-generator --name="marital status"
@techneo1
techneo1 / depcheck
Created September 20, 2019 05:58
Find unused npm packages in package.json
npx depcheck
// ---------------------------------------------------------------------------------------------------
// USAGE
// ====================================
// const MARKUP_PCT = 100;
// console.log(MARKUP_PCT); // 100
// ---------------------------------------------------------------------------------------------------
// INITIALISATION is a MUST
// ====================================
// const MARKUP_PCT; // SyntaxError: Unexpected token ;
@techneo1
techneo1 / Add_Existing_Project_To_Git.md
Created November 1, 2017 15:35 — forked from alexpchin/Add_Existing_Project_To_Git.md
Add Existing Project To Git Repo

#Adding an existing project to GitHub using the command line

Simple steps to add existing project to Github.

1. Create a new repository on GitHub.

In Terminal, change the current working directory to your local project.

##2. Initialize the local directory as a Git repository.

git init
@techneo1
techneo1 / Yeoman.readme.doc
Created December 29, 2015 15:52
Scaffolding using Yeoman
1. Set up Your Dev Environment
a. Prerequisites
Node.js, npm and git
Confirm Installation
node –version && npm –version && git –version
b. Install the Yeoman toolset
npm install --global yo bower grunt-cli
Confirm Installation
yo --version && bower --version && grunt --version
@techneo1
techneo1 / gist:8717fc8588e74d85143a
Created December 21, 2015 05:01
Reponsive UI - Viewport Scaling Bug in iPhone Safari
<!-- Solution #1: Using <meta> – But page will not be zoomable! -->
<meta name="viewport" content="width=device-width; initial-scale=1; maximum-scale=1">
<!-- Solution #2: Using JavaScript – and the page remains zoomable -->
<script type="text/javascript">
(function(doc) {
var addEvent = 'addEventListener',
type = 'gesturestart',
qsa = 'querySelectorAll',
@techneo1
techneo1 / login.css
Last active November 11, 2015 05:18
UI(Bootstrap) - Login form
.form-login {
max-width: 330px;
padding: 15px;
margin: 0 auto;
}
.form-login .form-login-heading,
.form-login .checkbox {
margin-bottom: 10px;
}
@techneo1
techneo1 / AndroidManifest.xml
Last active December 14, 2017 08:57
Android UI - Custom ListView - A mock PhoneBook(Hardcoded data)
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.techneo1.myphonebook.activities"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
@techneo1
techneo1 / NoTitleBar
Last active December 11, 2015 02:09
Android UI - Hiding TitleBar for an Acticity or Entire Application
>>>> Type 1
themes.xml
----------
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- use the Android Light theme as the base for our own theme -->
<style name="MySuperTheme" parent="@android:style/Theme.Light">
<!-- hide the Window Title -->
<item name="android:windowNoTitle">true</item>
<!-- Other Styles -->