Skip to content

Instantly share code, notes, and snippets.

View versioning.md

Format

1.0.0 = MAJOR.MINOR.PATCH

  • 3º digit = backward compatible bug fixes
  • 2º digit = backward compatible new features
  • 1ª digit = changes that break backward compatibility

optional pre-release metadata

  • optionally, in pre-release versions, you can append to the MAJOR.MINOR.PATCH a hyphen and a series of dot separated identifiers, e.g. 1.0.0-alpha.1
@ffan0811
ffan0811 / gist:ae034c0dafe024d79805d544aa862fec
Created Jun 3, 2020 — forked from JarenGlover/gist:d7ffab312ea756834218
Nginx - Reverse Proxy | Backend & Front End Example
View gist:ae034c0dafe024d79805d544aa862fec
upstream fuel {
# Defines a group of servers. Servers can listen on different ports.
server IP:PORT fail_timeout=0;
}
upstream frontend {
server IP:PORT fail_timeout=0;
}
View take2.py
from pyspark.sql.functions import udf, col
@udf('string')
def get_zip_udf2(latitude, longitude):
search = SearchEngine()
try:
zip = search.by_coordinates(latitude, longitude, returns=1)[0].to_dict()["zipcode"]
except:
zip = 'bad'
return zip
View polylines.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mcastillo093
mcastillo093 / Numpy 2D Arrays.ipynb
Created Jun 3, 2020
Created on Skills Network Labs
View Numpy 2D Arrays.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jplew
jplew / comparison_to_ocaml.md
Created Jun 3, 2020
Reason to OCaml syntax comparison
View comparison_to_ocaml.md
title
Comparison to OCaml

If you come from OCaml or are a newcomer reading a tutorial written on OCaml, this guide's for you! But don't forget that reason-tools can convert between OCaml and Reason syntax on the fly.

Comments

OCaml Reason
@A0158
A0158 / PY0101EN-5.2_API_2.ipynb
Created Jun 3, 2020
Created on Skills Network Labs
View PY0101EN-5.2_API_2.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Qian-Katy-He
Qian-Katy-He / .block
Created Jun 3, 2020 — forked from uwcc/.block
2020 MDDN242 Assignment 3: Custom Pixel
View .block
license: mit
height: 980
@bburhans
bburhans / reddit.user.js
Created Jun 3, 2020
Userscript to make new reddit slightly less terrible
View reddit.user.js
// ==UserScript==
// @name Reddit
// @namespace bburhans
// @version 0.0.1
// @description Neuter lightbox click behavior on reddit
// @author Benjamin P. Burhans
// @match https://www.reddit.com/r/*
// @grant none
// ==/UserScript==
View take.erl
% Erlang "take" function in direct and tail recursion
-module(take).
-export([take/2, tctake/2, test_tctake/0]).
take(0,_) -> [];
take(_, []) -> [];
take(N, [X | _Xs]) ->
You can’t perform that action at this time.