Skip to content

Instantly share code, notes, and snippets.

View SivaCse's full-sized avatar

Sivanthi K SivaCse

  • Nagercoil
View GitHub Profile
@SivaCse
SivaCse / django-helper.txt
Created June 11, 2016 19:05
Django Development time helper notes
kill port already defined
=========================
fuser -k 8000/tcp
Kill annd Restart whenever u added new apps
---------------------------------------------
Create and activate virtual environment
@SivaCse
SivaCse / angularjs-providers-explained.md
Created July 25, 2016 16:59 — forked from demisx/angularjs-providers-explained.md
AngularJS Providers: Constant/Value/Service/Factory/Decorator/Provider
Provider Singleton Instantiable Configurable
Constant Yes No No
Value Yes No No
Service Yes No No
Factory Yes Yes No
Decorator Yes No? No
Provider Yes Yes Yes

Constant

@SivaCse
SivaCse / readme.txt
Created July 29, 2016 06:42
Live Reload usage instructions
npm install -g livereload
livereload "/var/www/html/some/some.html"
Make sure to have this script tag in your html files:
<script src="http://localhost:35729/livereload.js"></script>
@SivaCse
SivaCse / Sublime Text 3 Build 3103 License Key - CRACK
Created August 30, 2016 09:51
Sublime Text 3 Build 3103 License Key - CRACK
I use the first
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
ul li {
list-style-type: none;
border:1px solid green;
@SivaCse
SivaCse / file1
Created October 9, 2017 05:38 — forked from jeserkin/file1
git rebase example
Eugene@EUGENE-PC /some (master)
$ git log
commit f172c390d5c8a343e6a83842b6ce85a2884cf8e0
Author: Eugene Serkin <[email protected]>
Date: Sat Oct 27 15:15:21 2012 +0300
Initial commit
Eugene@EUGENE-PC /some (master)
$ git status
@SivaCse
SivaCse / index.html
Created September 13, 2018 19:36 — forked from shiawuen/index.html
Sample to upload file by chunk
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>test upload by chunk</title>
</head>
<body>
<input type="file" id="f" />
<script src="script.js"></script>
@SivaCse
SivaCse / introrx.md
Created November 24, 2018 17:28 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@SivaCse
SivaCse / mockActivatedRoute.ts
Created May 15, 2019 11:36 — forked from benjamincharity/mockActivatedRoute.ts
Mock ActivatedRoute with params, data and snapshot.
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
MdToolbarModule,
],
providers: [
{
provide: Router,
useClass: MockRouter,
},