Skip to content

Instantly share code, notes, and snippets.

View abhi18av's full-sized avatar
:octocat:
(to-infinity-and-beyond!)

Abhinav Sharma abhi18av

:octocat:
(to-infinity-and-beyond!)
View GitHub Profile
(*
*
* http://deckofcardsapi.com/
*
*)
#require "lwt";;
#require "cohttp";;
#require "cohttp-lwt-unix";;
[nightfury@localhost ~]$ opam install tls
The following actions will be performed:
∗ install cpuid 0.1.1 [required by nocrypto]
∗ install nocrypto 0.5.4-1 [required by tls]
∗ install x509 0.6.2 [required by tls]
∗ install tls 0.9.2
===== ∗ 4 =====
Do you want to continue? [Y/n] y
<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
@abhi18av
abhi18av / udemy-courses-download-using-cookies.md
Created September 28, 2018 13:12 — forked from barbietunnie/udemy-courses-download-using-cookies.md
Downloading Udemy videos with youtube-dl

How to download your Udemy course videos using youtube-dl

$ youtube-dl --list-extractors | grep udemy

Steps

  1. Get link to the course to download. e.g. https://www.udemy.com/course-name/
  2. Login into udemy website, save the cookie from chrome using Chrome (Cookie.txt)[1] export extension. Save it to file udemy-cookies.txt
  3. Get the link of the video that you want to download. usually in format. Use the command provided below where you have to replace the {course_link} and {path_to_cookies_file} with respective paths.
$ youtube-dl {course_link} --cookies {path_to_cookies_file}
@abhi18av
abhi18av / .hyper.js
Created February 22, 2018 08:07
dotFile for Hyper
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but more frequent updates
updateChannel: 'stable',
@abhi18av
abhi18av / truffle-material.md
Created November 13, 2017 13:46 — forked from smarr/truffle-material.md
Truffle: Languages and Material
@abhi18av
abhi18av / hash-map.md
Created August 22, 2017 16:44
NodeJS php parser

PHP Script :

<?php
/**
 * Some namespace & file description
 */
  $phone = array();
  $phone["Andrew"] = "C49";
  $phone["Sally"] = "C46";
  $phone["Ken"] = "D52";
julia> SExprStr = read(B, String); # get buffer contents as string
ERROR: MethodError: Cannot `convert` an object of type Type{String} to an object of type Array{UInt8,1}
This may have arisen from a call to the constructor Array{UInt8,1}(...),
since type constructors fall back to convert methods.
Stacktrace:
[1] read(::Base.AbstractIOBuffer{Array{UInt8,1}}, ::Type{T} where T) at ./io.jl:528
@abhi18av
abhi18av / installing_pyaudio.md
Created January 16, 2017 04:55 — forked from jiaaro/installing_pyaudio.md
How to install PyAudio into a VirtualEnv on Mac OS X 10.10

Install portaudio using homebrew (or method of your choice)

brew install portaudio

create $HOME/.pydistutils.cfg using the include and lib directories of your portaudio install:

[build_ext]
@abhi18av
abhi18av / FSharp.fs
Last active December 13, 2016 11:19
Sample Xamarin Tutorial
// This sample will guide you through elements of the F# language.
//
// *******************************************************************************************************
// To execute the code in F# Interactive, highlight a section of code and press Alt-Enter in Windows or
// Ctrl-Enter Mac, or right-click and select "Send Selection to F# Interactive".
// You can open the F# Interactive Window from the "View" menu.
// *******************************************************************************************************
// For more about F#, see: