Skip to content

Instantly share code, notes, and snippets.

View jeff2go's full-sized avatar
😀
Deep into Go

zhujiangwei jeff2go

😀
Deep into Go
View GitHub Profile
@rimatla
rimatla / TSLInt-Prettier-CreateReactApp-TypeScript-setup.md
Last active May 17, 2024 09:44
Create React App + TypeScript Linting with TSLint and Prettier setup on VSCode

Ps: The current setup was done on 01-04-19

Project Dependency Versions at the time 👇

  "react": "^16.7.0",
  "react-dom": "^16.7.0",
  "react-scripts": "2.1.3",
  "typescript": "^3.2.2"
  "tslint": "^5.12.0",
  "tslint-config-prettier": "^1.17.0",
@dongweiming
dongweiming / 0_urllib2.py
Last active December 18, 2018 06:49 — forked from kennethreitz/0_urllib2.py
urllib2 vs requests
# coding=utf-8
import json
import urllib2
from cookielib import CookieJar
hb_url = 'https://httpbin.org/basic-auth/user/pass'
req = urllib2.Request(hb_url)
password_manager = urllib2.HTTPPasswordMgrWithDefaultRealm()
@leolin310148
leolin310148 / solve.md
Last active November 22, 2019 12:46
solve "error initializing graphdriver: loopback attach failed" for docker-in-docker

Create loopback.sh in tmp

#!/bin/bash
ensure_loop(){
  num="$1"
  dev="/dev/loop$num"
  if test -b "$dev"; then
    echo "$dev is a usable loop device."
 return 0
local redis_c = require "resty.redis"
local ok, new_tab = pcall(require, "table.new")
if not ok or type(new_tab) ~= "function" then
new_tab = function (narr, nrec) return {} end
end
local _M = new_tab(0, 155)