Skip to content

Instantly share code, notes, and snippets.

View mukeshm's full-sized avatar

Mukesh Munisubbanna mukeshm

View GitHub Profile
@mikehaertl
mikehaertl / gist:3258427
Created August 4, 2012 15:40
Learn you a Haskell - In a nutshell

Learn you a Haskell - In a nutshell

This is a summary of the "Learn You A Haskell" online book under http://learnyouahaskell.com/chapters.


1. Introduction

  • Haskell is a functional programming language.
@jvns
jvns / interview-questions.md
Last active May 14, 2024 18:47
A list of questions you could ask while interviewing

A lot of these are outright stolen from Edward O'Campo-Gooding's list of questions. I really like his list.

I'm having some trouble paring this down to a manageable list of questions -- I realistically want to know all of these things before starting to work at a company, but it's a lot to ask all at once. My current game plan is to pick 6 before an interview and ask those.

I'd love comments and suggestions about any of these.

I've found questions like "do you have smart people? Can I learn a lot at your company?" to be basically totally useless -- everybody will say "yeah, definitely!" and it's hard to learn anything from them. So I'm trying to make all of these questions pretty concrete -- if a team doesn't have an issue tracker, they don't have an issue tracker.

I'm also mostly not asking about principles, but the way things are -- not "do you think code review is important?", but "Does all code get reviewed?".

@mziwisky
mziwisky / Oauth2.md
Last active February 15, 2024 23:31
Oauth2 Explanation

OAUTH2

The Problem

I’m a web app that wants to allow other web apps access to my users’ information, but I want to ensure that the user says it’s ok.

The Solution

I can’t trust the other web apps, so I must interact with my users directly. I’ll let them know that the other app is trying to get their info, and ask whether they want to grant that permission. Oauth defines a way to initiate that permission verification from the other app’s site so that the user experience is smooth. If the user grants permission, I issue an AuthToken to the other app which it can use to make requests for that user's info.

Note on encryption

Oauth2 has nothing to do with encryption -- it relies upon SSL to keep things (like the client app’s shared_secret) secure.

@prakhar1989
prakhar1989 / richhickey.md
Last active November 8, 2023 17:19 — forked from stijlist/gist:bb932fb93e22fe6260b2
richhickey.md

Rich Hickey on becoming a better developer

Rich Hickey • 3 years ago

Sorry, I have to disagree with the entire premise here.

A wide variety of experiences might lead to well-roundedness, but not to greatness, nor even goodness. By constantly switching from one thing to another you are always reaching above your comfort zone, yes, but doing so by resetting your skill and knowledge level to zero.

Mastery comes from a combination of at least several of the following:

Git Cheat Sheet

Commands

Getting Started

git init

or

@PurpleBooth
PurpleBooth / README-Template.md
Last active June 6, 2024 18:23
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

anonymous
anonymous / fuxsocy.py
Created September 19, 2015 08:16
#! /usr/bin/env python
import base64
print base64.b64decode("CiAgICAgICAgICAgICAgICAgICAgICAgJ0BAQEBAIzogICAgICAgK0BAQEBAQCAsQEBAQEBAQEBAQEBAIzogICAgICAgICAgICAgICAgICAgQEBAQEBAQEBAQEBAQCtgICAgICAgICAgYCtAQEBAQEBAIzogICAgIC5AQEBAQEBAQEBAJyAgICAgICAgICA6K0BAQEBAQEArLiAgICAgI0BAQEBAQEBAQEBAQEBAQEBAQAogICAgICAgICAgICAgICAgICAgICAgICdAQEBAQEBAQCAgICAsQEBAQEBAQEAgLEBAQEBAQEBAQEBAQEBAQGAgICAgICAgICAgICAgICAgIEBAQEBAQEBAQEBAQEBAQEAgICAgICAgQEBAQEBAQEBAQEBAQCwgICAsQEBAQEBAQEBAQEBAJyAgICAgIC5AQEBAQEBAQEBAQEBAICAgIEBAQEBAQEBAQEBAQEBAQEBAQEAKICAgICAgICAgICAgICAgICAgICAgICAnQEBAQEBAQEAsICAgQEBAQEBAQEBAICxAQEBAQEBAQEBAQEBAQEBALiAgICAgICAgICAgICAgICBAQEBAQEBAQEBAQEBAQEBAQCAgICAgQEBAQEBAQEBAQEBAQEBALCAgLEBAQEBAQEBAQEBAQEAjICAgIGBAQEBAQEBAQEBAQEBAQEAgICBAQEBAQEBAQEBAQEBAQEBAQEBACiAgICAgICAgICAgICAgICAgICAgICAgJ0BAQCwnQEBAQCAgK0BAQCs6O0BAQCBgLCwsLCwsLCwsLDo6I0BAQEBgICAgICAgICAgICAgICAgLCwsLCwsLCwsLCwsJ0BAQEBAICAgK0BAQEAnLCwsLCwnI0BAQEAgIGAsLCwsLCwsLCwnQEBAQDsgICBAQEBAQCcsLCwsLCdAQEBAIyAgLCwsLCwsLCw6LCwsLCwsLCwsLAogICAgICAgIC
@gokulkrishh
gokulkrishh / media-query.css
Last active June 7, 2024 05:36
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */
@bearfrieze
bearfrieze / comprehensions.md
Last active December 23, 2023 22:49
Comprehensions in Python the Jedi way

Comprehensions in Python the Jedi way

by Bjørn Friese

Beautiful is better than ugly. Explicit is better than implicit.

-- The Zen of Python

I frequently deal with collections of things in the programs I write. Collections of droids, jedis, planets, lightsabers, starfighters, etc. When programming in Python, these collections of things are usually represented as lists, sets and dictionaries. Oftentimes, what I want to do with collections is to transform them in various ways. Comprehensions is a powerful syntax for doing just that. I use them extensively, and it's one of the things that keep me coming back to Python. Let me show you a few examples of the incredible usefulness of comprehensions.

This document has moved!

It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.