Skip to content

Instantly share code, notes, and snippets.

View liuchong's full-sized avatar
🦀
Working from ... with r...

刘冲 liuchong

🦀
Working from ... with r...
View GitHub Profile

github/choosealicense.com#496

To create CC0-1.0 license on github, visit the below link in your browser with and replaced with yours.

https://github.com///community/license/new?branch=master&template=cc0-1.0

@liuchong
liuchong / punch.sh
Last active March 16, 2019 17:21
啦啦啦……
#!/bin/bash
PUSH=false
DT=`date --rfc-3339=date`
MAX=36666
punch() {
cur=-1
while [ $((++cur)) -lt $MAX ]; do
echo -e "\n$DT" >> punch.txt
We’re required to have agreements with everyone who takes part in this project to give us permission to use your contributions. In effect, you’re giving us a licence, and you retain the right to modify your code and use it in other projects.
@liuchong
liuchong / funcs.el
Created December 14, 2018 12:44
elisp functions for emacs window spawning
;;
;; Add window width/height to frame.
;;
(defun my/add-window-to-frame-width ()
"Resize selected frame to add width of current window to current frame."
(let* ((f-width (frame-width))
(w-width (window-width)))
(set-frame-width (selected-frame) (+ f-width w-width))))
const fs = require('fs')
const { spawn } = require('child_process')
const uuid = require('uuid/v1')
const proxy = require('http-proxy-middleware')
class Faker {
constructor ({ schemaStr, schemaPath, port }) {
this.schemaStr = schemaStr
this.schemaPath = schemaPath
;;; json.el --- JavaScript Object Notation parser / generator
;; Copyright (C) 2006-2017 Free Software Foundation, Inc.
;; Author: Edward O'Connor <ted@oconnor.cx>
;; Version: 1.4
;; Keywords: convenience
;; This file is part of GNU Emacs.