Skip to content

Instantly share code, notes, and snippets.

View GNSubrahmanyam's full-sized avatar
🏠
Working from home

G Naga Subrahmanyam GNSubrahmanyam

🏠
Working from home
View GitHub Profile
@GNSubrahmanyam
GNSubrahmanyam / countries.json
Created July 28, 2018 09:13
Information about countries
[
{
"name": "Afghanistan",
"topLevelDomain": [
".af"
],
"alpha2Code": "AF",
"alpha3Code": "AFG",
"callingCodes": [
"93"
@GNSubrahmanyam
GNSubrahmanyam / youtube-dl.md
Created May 30, 2018 07:26
Using youtube-dl to download courses from Pluralsight

Download courses from learning sites with youtube-dl

You can download whole courses from an array of tutorial sites with the CLI tool youtube-dl. In the example further down I'm using my Pluralsight account to get videos from a course at their site. Here is a list of all supported sites that you can download from with this tool

The flags you have to supply may vary depending on which site you make a request to.

You can get a free 3 month trial to Pluralsight by signing up for free to Visual Studio Dev Essentials

Installation

@GNSubrahmanyam
GNSubrahmanyam / README.md
Created April 5, 2018 17:27 — forked from yanxi123-com/README.md
add Git hook for standard style check

运行方法:

./pre-commit.sh # 安装 pre-commit

git commit ... # 自动检查代码是否符合 standard js 标准

CHECK=0 git commit ... # 不检查代码
@GNSubrahmanyam
GNSubrahmanyam / array.purs
Created October 25, 2017 12:52
Purescript Array
module Main where
import Prelude
import Control.Monad.Eff (Eff)
import Data.Show
import Data.Maybe
import Data.Array
import Control.Monad.Eff.Console (log, CONSOLE, logShow)
import Data.Foldable (fold)
@GNSubrahmanyam
GNSubrahmanyam / Person.js
Created October 18, 2017 18:29
JavaScript Custom Objects
function Person(obj) {
'use strict';
if (typeof obj === "undefined") {
this.name = "Bob";
this.age = 32;
this.company = "Facebook";
} else {
this.name = obj.name;
this.age = obj.age;
this.company = obj.company;
@GNSubrahmanyam
GNSubrahmanyam / test.html
Created March 23, 2017 11:52 — forked from horozco/test.html
Custom video controls - Angularjs directive
<div video-controls='true' class="video-container">
<video class="video">
<source ng-src="http://techslides.com/demos/sample-videos/small.mp4" type="video/mp4">
</video>
<video-controls></video-controls>
</div>