Skip to content

Instantly share code, notes, and snippets.

View palash25's full-sized avatar

Palash Nigam palash25

View GitHub Profile

How Clojure's documentation can leapfrog other languages

Summary

I made a documentation generator that cashes in on Clojure's dynamism. See the play-cljs docs (a ClojureScript game library) for an example of its output.

The Problem

Like many of you, I've often wondered what my final regret will be on my deathbed. My best guess came to me in a dream recently. I was walking across the charred earth of an apocalyptic future world, maneuvering around the remains of the less fortunate. I was startled to find a young girl, barely holding onto her life. She murmured something to me. I asked her to repeat it, and she said more loudly: "I...wish your Clojure projects didn't have such crappy documentation."

@learner-long-life
learner-long-life / EthereumDev.md
Created July 31, 2017 02:18
How to Set up an Ethereum Dev Environment

How to Set up an Ethereum Dev Environment

So you want to be an Ethereum developer! Congrats, much treasure awaits you. Developing Ethereum dapps benefits from having a well-crafted development environment. This can often be daunting to beginners, so I'm giving you my favorite dev environment to help get you started.

Once your code fortress is constructed, you'll be able to

  • Compile smart contracts written in Solidity
@voyageur
voyageur / sfc_ovn_packet.md
Created June 8, 2017 15:13
[OVN] SFC Day in the Life of Packet

Day in the life of a packet for service chains.

SFC Rational

The goal of adding service function chaining (SFC) to OVN/OVS is to enable a set of use cases, primarily in the security area. Additionally, any network function that needs to be inserted in the traffic path to inspect and/or enhance network payloads would be able to leverage this capability. A simple example would be video encoding/decoding or other forms of content enhancement.

@nikhita
nikhita / update-golang.md
Last active November 5, 2025 12:47
How to update the Go version

How to update the Go version

System: Debian/Ubuntu/Fedora. Might work for others as well.

1. Uninstall the exisiting version

As mentioned here, to update a go version you will first need to uninstall the original version.

To uninstall, delete the /usr/local/go directory by:

import asyncio
loop = asyncio.get_event_loop()
async def hello():
await asyncio.sleep(3)
print('Hello!')
if __name__ == '__main__':
loop.run_until_complete(hello())
@wingedrhino
wingedrhino / NewBusinessQuestionnaire.md
Last active December 22, 2018 17:28
A questionnaire to help completely describe a new business/product idea to a potential cofounder/investor for evaluation.

New Product / Business Idea Questionnaire

Why Does This Exist ?

You are extremely enthusiastic (and rightfully so) about a new product or business idea that you have. Or maybe someone approaching you is (but I'm going to assume that you're the one with the idea for simplicity). You want to bring a cofounder (or an investor) onboard. This can involve a lot of back and forth calls and/or emails that takes up a lot of time. To help paint a clear picture about your product/business idea, here is a questionnaire you can fill up and

@manojpandey
manojpandey / gotchas.md
Last active August 31, 2021 14:52
Attack of Pythons

Attack of Pythons

Among computer programmers, a “gotcha” has become a term for a feature of a programming language that is likely to play tricks on you to display behavior that is different than what you expect.

Just as a fly or a mosquito can “bite” you, we say that a gotcha can “bite” you. So, let's proceed to examine some of Python's gotchas !

alt text


@olivere
olivere / elastic_v3_getting_started.go
Created June 4, 2016 11:44
Getting started with elastic.v3
package main
import (
"encoding/json"
"fmt"
"reflect"
elastic "gopkg.in/olivere/elastic.v3"
)

What Makes a Good Architecture

  • Performance should linearly increase with added nodes and no extra effort. If the number of people required to maintain a system doubles with doubled capacity, you're doing it wrong.

  • Errors shouldn't cause growing data smell and should be quick to recover from.

  • The lesser locks there are in the system, the better it is.

  • Don't depend on something that wouldn't scale or keep up with the rest of the application.