Skip to content

Instantly share code, notes, and snippets.

View doshprompt's full-sized avatar

Rahul Doshi doshprompt

View GitHub Profile

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@yossorion
yossorion / what-i-wish-id-known-about-equity-before-joining-a-unicorn.md
Last active October 19, 2024 10:57
What I Wish I'd Known About Equity Before Joining A Unicorn

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@spinda
spinda / jsequalityimpl.md
Last active March 15, 2017 21:50
js equality implementation (in spidermonkey)

explanation of https://twitter.com/getify/status/780249160662605824 in terms of SpiderMonkey (Firefox) internals

edit: The tweet linked above has since been deleted, but the original code read something like:

' \t\n\r\u000c\u000b\uFEFF\u0020' == 0 // true
  1. The script is parsed and compiled to bytecode.
August 2015
circleci
* pros:
- full docker support
- fast UI and build
- SSH mode to debug the build
* cons:
- no way to put secure ENV variable in the yml

CODING OPPORTUNITY: Mesosphere Storage server

Your challenge, should you choose to accept it, involves building a storage service. The storage server is meant to store arbitrary data. You are to build a REST API (HTTP/1.1, or 2.0, your choice) that presents a data storage, and retrieval API.

Environment

Your environment runs on Ubuntu 16.04 in a Docker container as a non-root user. You are allowed to write to the current working directory.

You are to build your deliverable so that it extracts into the following layout:

#!/usr/local/bin/node
/* Github repos stars count and Emoji on change :)
* BitBar plugin
*
* by Varun Malhotra
* (c) 2015
* LICENSE - MIT
*
* Shows current stars count of each repo and 🔔 on change
@remojansen
remojansen / class_decorator.ts
Last active September 14, 2023 14:54
TypeScript Decorators Examples
function logClass(target: any) {
// save a reference to the original constructor
var original = target;
// a utility function to generate instances of a class
function construct(constructor, args) {
var c : any = function () {
return constructor.apply(this, args);
}
@ivasilov
ivasilov / gulpfile.js
Created August 14, 2015 13:51
Gulpfile with webpack, typescript and nodemon
var gulp = require("gulp");
var gutil = require("gulp-util");
var rename = require('gulp-rename');
var webpack = require("webpack");
var nodemon = require('nodemon');
var typescript = require('gulp-typescript');
// These tasks setup nodemon.
gulp.task("start", function(cb) {
var options = {
@kottenator
kottenator / simple-pagination.js
Created July 13, 2015 20:44
Simple pagination algorithm
// Implementation in ES6
function pagination(c, m) {
var current = c,
last = m,
delta = 2,
left = current - delta,
right = current + delta + 1,
range = [],
rangeWithDots = [],
l;
@dnlbox
dnlbox / Issue_Tracker.md
Last active January 29, 2020 10:33
Track Issues on Github

Creating an issue (usually Product Owner)

All new issues should have at least the 3 tags bellow.

  • Type tag: all new issues should inform its type BUG or ENHANCEMENT
  • Platform tag: all new issues also should have only one platform tag MIDDLEWARE, IOS, ANDROID, WINDOWS PHONE or WEBAPP. If the issue have impact in more than one platform, create another issue and add a relationship between them.
  • New tag: all new issues should have a NEW indicator tag to be able filter issues create but not initiated.
  • An issue is never assigned to someone from the beggining.

Type Tag and Platform Tag should never be removed, even after closed.