Skip to content

Instantly share code, notes, and snippets.

ishu3101 /
Created Nov 24, 2015
Transfer a gist to a GitHub repository

Transfer a gist to a GitHub repository

clone the gist

git clone

rename the directory

mv 6fb35afd237e42ef25f9 ConvertTo-Markdown

change the working directory to the newly renamed directory

cd ConvertTo-Markdown

ishu3101 /
Created May 29, 2017
Generate a Random Programming Quote using an API
import urllib
import urllib2
import random
import json
# get a random programming quote using an api
View web_searches.csv
google lucky{query}&btnI
google image{query}&tbm=isch
View ios-filesystem
Here's a list of the most common folders in the iOS file system. Please note, if your device is still jailed you are NOT able to see these folders.
This is where pre-installed native apps and jailbreak apps are installed.
This is where the pre-installed ringtones are stored. User-purchased ringtones are placed in /private/var/mobile/Media/Ringtones
This is where Wallpapers and Lockscreens are stored.
ishu3101 / read_arguments.js
Last active May 29, 2021
Accept input via stdin and arguments in a command line application in node.js
View read_arguments.js
#!/usr/bin/env node
var args = process.argv.slice(2);
var input = args[0];
var isTTY = process.stdin.isTTY;
var stdin = process.stdin;
var stdout = process.stdout;
// If no STDIN and no arguments, display usage message
ishu3101 /
Created Jun 7, 2016
3 ways to loop through each character in a string in Perl
# 3 ways to loop through each character in a string
$text = "hello world";
for $i (0..length($text)-1){
$char = substr($text, $i, 1);
print "Index: $i, Text: $char \n";
foreach $char (split //, $text) {
ishu3101 /
Created Jul 22, 2016
Resetting your Windows Subsystem for Linux (WSL) Environment
# Resetting your Windows Subsystem for Linux (WSL) Environment
lxrun.exe /uninstall /full
lxrun.exe /install
ishu3101 / sample-resume.json
Last active Feb 3, 2021
Sample Resume in JSON Resume Format
View sample-resume.json
"basics": {
"name": "Your first and last name",
"label": "",
"picture": "",
"email": "Your email address",
"phone": "A phone number, with any formatting you like. E.g. (555) 555-5555.",
"degree": "",
"website": "Your website URL",
"summary": "A one-sentence to one-paragraph overview text. Do not include any line-breaks.",
ishu3101 / multiple_value_dictionary.cs
Last active Jan 16, 2021
Dictionary with Single Key and Multiple Values Example in C#. See to run example code online.
View multiple_value_dictionary.cs
using System;
using System.Collections.Generic;
class MainClass {
public static void Main (string[] args) {
Dictionary<string, List<String>> map = new Dictionary<string, List<String>>();
// create list one and store values
List<string> valSetOne = new List<string>();
ishu3101 /
Created Jul 6, 2016
Read CSV data as Input either using STDIN or as Command Line Argument using Python
import sys
import csv
if (sys.argv[1] == '-'):
f =
filename = sys.argv[1]
f = open(filename, 'r')
csv = csv.reader(f)