Skip to content

Instantly share code, notes, and snippets.

@bstavroulakis
bstavroulakis / JS-LINQ.js
Created May 4, 2017 14:21 — forked from DanDiplo/JS-LINQ.js
JavaScript equivalents of some common C# LINQ methods. To help me remember!
// JS array equivalents to C# LINQ methods - by Dan B.
// Here's a simple array of "person" objects
var people = [
{ name: "John", age: 20 },
{ name: "Mary", age: 35 },
{ name: "Arthur", age: 78 },
{ name: "Mike", age: 27 },
{ name: "Judy", age: 42 },
{ name: "Tim", age: 8 }
@bstavroulakis
bstavroulakis / start-stop-server-in-background.sh
Created April 19, 2019 01:37 — forked from pwittchen/start-stop-server-in-background.sh
Starting and stopping simple HTTP server in background on Linux. After starting server and closing terminal, server should keep running
# starting simple HTTP server with Python in background
screen -d -m python -m SimpleHTTPServer 7777
# or for Python 3.x
screen -d -m python -m http.server 7777
# killing process running with screen in background
kill -9 `top -n 1 | pgrep screen`