Skip to content

Instantly share code, notes, and snippets.

@sxwebdev
sxwebdev / golang_job_queue.md
Created July 11, 2020 22:21 — forked from harlow/golang_job_queue.md
Job queues in Golang
@sxwebdev
sxwebdev / Dockerfile
Created May 24, 2020 23:15 — forked from rizo/Dockerfile
Alpine (3.6) based docker image with Protocol Buffers compiler supporting Go.
# Protobuf Builder
# ================
#
# This image builds protocol buffers library from source with Go generation
# support. The builder and runner images are produced.
# Builder Image
# -------------
FROM golang:1.8.3-alpine3.6 as builder
@sxwebdev
sxwebdev / medianHeap.java
Created September 30, 2019 13:21
Java algorithm to get the running median for an array of integer.
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
/**
* The add number method
*/
@sxwebdev
sxwebdev / gist:fb82be7b783a34dddcfd186a8b3d335e
Created August 24, 2018 21:28 — forked from sabarasaba/gist:3080590
Remove directory from remote repository after adding them to .gitignore
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master
@sxwebdev
sxwebdev / LICENCE SUBLIME TEXT
Created August 12, 2018 20:53
Sublime Text 3 Serial key build is 3176
## Sublime Text 3 Serial key build is 3176
> * Added these lines into /etc/hosts
127.0.0.1 www.sublimetext.com
127.0.0.1 license.sublimehq.com
> * Used the license key
----- BEGIN LICENSE -----
@sxwebdev
sxwebdev / tab-trigger.js
Last active March 30, 2018 03:43 — forked from wesbos/tab-trigger.js
How to properly get a TAB trigger working with Emmet inside of JSX
{
"keys": ["tab"],
"command": "expand_abbreviation_by_tab",
// put comma-separated syntax selectors for which
// you want to expandEmmet abbreviations into "operand" key
// instead of SCOPE_SELECTOR.
// Examples: source.js, text.html - source
"context": [
{