Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
# The MIT License (MIT) | |
# Copyright (c) 2014 Dave Clark | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
import * as http from 'http' | |
import * as _ from 'lodash' | |
//! In the standard implementation of http server, calling close is not guaranteed to close the | |
//! server. Any idle connections being kept alive by clients will stay open until their timeout | |
//! is reached. This is problematic for gracefully shutting down a process with an http server. | |
//! This function will create an http server that tracks the open connections. On close, idle | |
//! connections are closed and any newly idled connection is immediately closed as well. When there | |
//! are no more connections on the server, the 'empty' event is raised. |
var util = require('util'), | |
http = require('http'), | |
events = require('events'); | |
var Twitter = function(opts) { | |
this.username = opts.username; | |
this.password = opts.password; | |
this.track = opts.track; | |
this.data = ''; | |
}; |
#!/usr/bin/env python3 | |
# Download the daily APOD picture and set it as the system wallpaper on OS X | |
# @author Alex Zylstra | |
# @date 2013/10/05 | |
__author__ = 'Alex Zylstra' | |
__date__ = '2013-10-05' | |
import urllib.request | |
import os |
Goes in my tummy |
'use strict'; | |
const http = require('http'); | |
function addGracefulShutdown(server) { | |
const oldClose = server.close; | |
const connections = {}; | |
let shouldDestroy = false; | |
let connectionId = 0; | |
function destroy(socket) { |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.