Skip to content

Instantly share code, notes, and snippets.

View ShekharReddy4's full-sized avatar
💻
Graduated

Shekhar Reddy ShekharReddy4

💻
Graduated
  • Texas
  • 05:39 (UTC -05:00)
View GitHub Profile
@bastos
bastos / War Movies List
Created February 22, 2010 16:17
War Movies List
ok 25. The Pianist (2002)
24. Seargeant York (1941)
23. Stalag 17 (1953)
ok 22. The Thin Red Line (1998)
21. The African Queen (1951)
20. MASH (1970)
19. Downfall (2005)
18. Patton (1970)
17. All Quiet on the Western Front (1930)
ok 16. Letters from Iwo Jima (2006)
@bmaeser
bmaeser / imdb.sh
Created September 7, 2011 00:37
good movies list with bash, awk and imdb
#!/bin/bash
MIN_RATING=7
MIN_VOTES=50000
usage="usage: imdb-ratings.sh -r MIN_RATING -v MIN_VOTES"
while getopts "r:v:h" options; do
case $options in
h ) echo $usage
exit 0
@max-mapper
max-mapper / readme.md
Created January 25, 2014 00:59
IRC OP protips

IRC OP PROTIPS

check if the nick of the user is registered with /msg nickserv info <name>

if it is registered, you can use: /msg chanserv akick #channelname add <name> and then chanserv will automagically add the IP bans when they join

to add a ban for a specific IP address, just use:

@tstachl
tstachl / SSO.java
Created April 6, 2013 22:30
Desk.com Multipass SSO example.
import org.json.JSONObject;
import org.apache.commons.codec.binary.Base64;
import java.util.Arrays;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.net.URLEncoder;
import java.security.MessageDigest;
@joepie91
joepie91 / some-module.js
Last active April 20, 2017 16:08
Configurable module using closures in Node.js / CommonJS (ie. parametric modules)
module.exports = function(config) {
return function actualFunctionality(someArgument){
return doSomethingWith(config).and(someArgument);
};
}
@ShekharReddy4
ShekharReddy4 / C implementation
Created August 10, 2017 11:41 — forked from sandromello/C implementation
MD5 and TripleDES - C# and Python implementation
using System.Security.Cryptography;
class Program
{
static void Main(string[] args)
{
var privatekey = "RN4nog0661VvjzphNg48372t747365mNfSxirueSDYstqsqeQn?=";
var skey = "e99308c2e3373fb041775a0c813f397d";
var c = new Program();
var encrypted = c.crypto(skey, privatekey, "encrypt");
$Adder = {
param ([int] $x)
return (
{
param ([string] $y)
return ($x + $y)
}.GetNewClosure()
)
}
@joepie91
joepie91 / closures.js
Last active October 14, 2018 05:54
Javascript Closures illustrated
functionCreator = function(favouriteNumber) {
return function(inputNumber) { // <-- This function is a closure!
console.log("You input the number " + inputNumber + ", and your favourite number is " + favouriteNumber + ".");
if(inputNumber === favouriteNumber) {
console.log("Those are the same number!");
} else {
console.log("Those are NOT the same number!");
}
}
@aubryio
aubryio / ohmyzsh-setup.md
Last active November 6, 2018 06:11
Awesome terminal

Awesome terminal

cool terminal

This gists contains my terminal setup on Ubuntu 16.04 which includes:

  • ZSH
  • Oh-my-zsh
  • Terminator (optional, also work with gnome-terminal)
  • Powerline symbols
import csv
import cStringIO
import codecs
import glob
import json
import requests
def fetch_jsons():
url = ('https://summerofcode.withgoogle.com/api/program/current/project/'