Skip to content

Instantly share code, notes, and snippets.

View qwo's full-sized avatar

Stanley Zheng qwo

View GitHub Profile
@sursh
sursh / README.md
Last active September 27, 2017 22:42
Introducing RC Connections

RC Connections is a way of connecting with others in the Recurse Center community.

Rooted in the belief that everyone has experience and skills that are valuable to someone else, we have no separate list for mentors and mentees. We are all mentors. We are all mentees. For example, Sasha and Andrew had a phone chat recently where she helped him structure a talk he was working on and he told her about the master’s program he recently finished, as she’s considering doing one herself.

If you know a specific person in RC that you'd like to talk with, then you should probably reach out to them directly! RC Connections is meant to facilitate discussion when it's not obvious that a potential connection should happen.

This service is organized by alumni (currently, Sasha and Andrew). Furthermore, RC Connections is an experiment. We welcome and encourage feedback. Please use the #connections Zulip stream to discuss.

How it works:

  • We’ll start on a ~monthly rhythm
@mosquito
mosquito / README.md
Last active June 5, 2024 14:13
Add doker-compose as a systemd unit

Docker compose as a systemd unit

Create file /etc/systemd/system/docker-compose@.service. SystemD calling binaries using an absolute path. In my case is prefixed by /usr/local/bin, you should use paths specific for your environment.

[Unit]
Description=%i service with docker compose
PartOf=docker.service
After=docker.service
@hoesler
hoesler / install_jenkins_plugin.sh
Last active February 9, 2024 16:28 — forked from micw/install_jenkins_plugin.sh
Script to install one or more jenkins plugins including dependencies while jenkins is offline
#!/usr/bin/env bash
set -e
set -o pipefail
plugin_repo_url="http://updates.jenkins-ci.org/download/plugins"
plugin_dir="/var/lib/jenkins/plugins"
include_optionals=false
showUsage() {
;; dispatcher is a work in progress haha
(define-syntax dispatcher
(lambda (x)
(syntax-case x (else)
((d name (case1 do1 ...) ... )
(with-syntax ( (args (datum->syntax #'d 'args)) )
#'(define (name m . args)
(case m
(case1 do1 ...) ...
(else (error (symbol->string 'name) "bad operation" m)))))))))
@puffnfresh
puffnfresh / F.d.ts
Last active January 20, 2017 08:18
declare namespace F {
class Either<A, B> {
private constructor();
// Hack to make A and B covariant.
private a: A;
private b: B;
static Left<A, B>(a: A): Either<A, B>;
static Right<A, B>(b: B): Either<A, B>;
from fractions import Fraction as f
import math
def decompose(n):
frac = f(n)
out = []
current_denom = 1
if frac >= 1:
number = int(frac)
@inytar
inytar / Graphs 2016_12_16.ipynb
Last active January 30, 2022 01:03
Graphs 2016_12_16
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@qwo
qwo / emoji.js
Last active May 17, 2017 09:22 — forked from beaugunderson/emoji.js
Scrape all emojis with descriptions from unicode.org/emoji/charts website
/*TODO Remove Tag when Done */
var request = require('request');
var cheerio = require('cheerio');
var fs = require('fs');
console.log('retrieving unicode table...');
request.get('http://unicode.org/emoji/charts/full-emoji-list.html', function (err, response, body) {
console.log('loading data...');
@lordnynex
lordnynex / app.go
Created September 22, 2016 22:18 — forked from Bochenski/app.go
Negroni golang mgo middleware example
package main
import (
"github.com/codegangsta/negroni"
"github.com/gorilla/context"
"github.com/unrolled/render"
"labix.org/v2/mgo"
"labix.org/v2/mgo/bson"
"log"
"net/http"