Skip to content

Instantly share code, notes, and snippets.

View liiker's full-sized avatar

Adam Yang liiker

  • http://nxzzld.com
  • China
View GitHub Profile
@liiker
liiker / MySQL_5-7_macOS.md
Created June 22, 2020 06:45 — forked from robhrt7/MySQL_5-7_macOS.md
Install MySQL 5.7 on macOS using Homebrew

This is a fork of original gist https://gist.github.com/nrollr/3f57fc15ded7dddddcc4e82fe137b58e, with slight changes on pointing to 5.7 version branch, instead of 8 (latest default of MySQL in Hombrew).

Install MySQL 5.7 on macOS

This procedure explains how to install MySQL using Homebrew on macOS (Sierra 10.12 and up)

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.
@liiker
liiker / postgres-brew.md
Created June 17, 2020 08:14 — forked from ibraheem4/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; Liiker's emacs default config
;;
;; @auth nx.liiker@gmail.com
;;
;; @update-at: 2018-11-25
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@liiker
liiker / train.org
Last active January 17, 2018 02:51
培训大纲

培训大纲

目标

通过一周的讲解和训练对Python或者PHP有一个较为全面的了解,并能进行基础的开发

具体内容

闲聊程序开发

  • 什么是程序
  • 有哪些类型的程序
  • 怎么(快速??)掌握一门开发语言

工欲善其事必先利其器

  • IDE
@liiker
liiker / warrior.py
Last active January 16, 2019 05:49
warrior ---- python console game
########################################
############### GAME START #############
########################################
import os
import random
class Game:
is_run = True
map = []
@liiker
liiker / youdao.el
Last active February 8, 2017 13:40
use youdao api tranlate English to chinese
;; send http get request
(defun get-url (url)
(with-current-buffer (url-retrieve-synchronously url) (buffer-string)))
;; get word translate origin data
(defun get-translate-info (word)
(decode-coding-string (get-url (format "http://fanyi.youdao.com/openapi.do?keyfrom=emacs-fanyi&key=830729599&type=data&doctype=json&version=1.1&q=%s" word)) 'utf-8))
;; get chinese explain and send to the minibuffer
(defun translate (word)