Skip to content

Instantly share code, notes, and snippets.

View vigzmv's full-sized avatar

Vignesh M vigzmv

View GitHub Profile
@vigzmv
vigzmv / Atom-sync-settings
Last active June 15, 2017 12:31
Atom-sync-settings
Atom-sync-settings
@vigzmv
vigzmv / node-server-html.js
Last active November 19, 2016 09:47
Simple HTML(only) Serving Node Server
var http = require('http');
var fs = require('fs');
var path = require('path');
var hostname = 'localhost';
var port = 3000;
var server = http.createServer(function(req, res) {
console.log('Request for ' + req.url + ' by method ' + req.method);
if (req.method == 'GET') {
@vigzmv
vigzmv / style.less
Last active February 27, 2017 10:26
atom style
atom-text-editor {
font-family: 'Fira Code';
font-style: normal;
text-rendering: optimizeLegibility;
font-weight: 500;
}
atom-text-editor {
/*
Turn off legibility in comments, regexp and quotes
[Unit]
Description=Jupyter
[Service]
Type=simple
PIDFile=/run/jupyter.pid
ExecStart=/usr/local/bin/jupyter-notebook --ip 0.0.0.0
User=ubuntu
Group=ubuntu
WorkingDirectory=/home/
<!DOCTYPE html>
<html>
<head>
<title>TODO LIST</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
</head>
<body>
<h1>TO-DO LIST</h1>
@vigzmv
vigzmv / hmac_sha256.py
Last active July 9, 2017 08:26 — forked from theY4Kman/hmac_sha256.py
Python SHA-256 HMAC
from Crypto.Hash import HMAC, SHA256
def hmac_sha256(key, msg):
hash_obj = HMAC.new(key=key, msg=msg, digestmod=SHA256)
return hash_obj.hexdigest()
@vigzmv
vigzmv / Blockstack
Created October 21, 2017 14:16
Blockstack
Verifying that "vigzmv.id" is my Blockstack ID. https://onename.com/vigzmv
@vigzmv
vigzmv / Into The React.md
Last active December 8, 2017 20:05
Into The React

Into the React

Introduction: 10mins

  • What & Why React
  • Intro:
    • Declarative
    • Component Based
    • Learn Once, Write Anywhere
  • Babel Repl & ES6
  • Intro on How React works
  • It's competitiors
@vigzmv
vigzmv / egghead-video-download.md
Last active December 7, 2017 09:45
Download videos from egghead.io
  1. Install youtube-dl from here.
  2. Install ffmpeg from here
  3. To download a course with best video/audio quality and a format of 00001-Introduction_to_The_Beginner_s_Guide_to_ReactJS.mp4

youtube-dl -cio '%(autonumber)s-%(title)s.%(ext)s' -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' <Course URL> --restrict-filenames

Replace Course Url with egghead url. Example:

youtube-dl -cio '%(autonumber)s-%(title)s.%(ext)s' -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' https://egghead.io/courses/the-beginner-s-guide-to-reactjs --restrict-filenames

@vigzmv
vigzmv / requirements.md
Last active January 14, 2018 09:20
Into the React - Requirements

Please make sure you have the following requirements installed on your systems before the event.

1. Chrome: Latest or at least > 62

Get Chrome

2. Node: Latest or at least > 9.2 and (npm > 5.5 and/or yarn > 1.3)

Get Node

Check your node version