Skip to content

Instantly share code, notes, and snippets.

@LukaHuang
LukaHuang / mysql2-catalina.md
Created May 11, 2021 10:20 — forked from fernandoaleman/mysql2-catalina.md
Install mysql2 on MacOS Catalina

Problem

Installing mysql2 gem errors on MacOS Catalina with MySQL 5.7.

Solution

Make sure openssl is installed on Mac via Homebrew.

brew install openssl
@LukaHuang
LukaHuang / LICENSE
Created May 7, 2021 21:23 — forked from sinisterchipmunk/LICENSE
tar, gzip, and untar files using ruby in memory without tempfiles
Copyright (C) 2011 by Colin MacKenzie IV
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:
The above copyright notice and this permission notice shall be included in
@LukaHuang
LukaHuang / _basics.scss
Created January 23, 2021 15:21 — forked from nickcooley/_basics.scss
SASS Sample Files
body {
text-align: center;
> #container {
text-align:left;
margin:0 auto;
width:500px;
}
}
@LukaHuang
LukaHuang / ikhoon.postfixTemplates
Created November 16, 2020 07:42 — forked from ikhoon/ikhoon.postfixTemplates
custom postfix template
## Templates for guava ##
.toList : convert to ImmutableList
java.util.stream.Stream -> $expr$.collect(com.google.common.collect.ImmutableList.toImmutableList())
@LukaHuang
LukaHuang / Markdown教學.md
Created November 3, 2020 18:01 — forked from christech1117/Markdown教學.md
Markdown教學,每個部分的教學分為兩個區塊,上半部為markdown語法,下半部為顯示結果
@LukaHuang
LukaHuang / Markdown教學.md
Last active November 3, 2020 18:01 — forked from christech1117/Markdown教學.md
Markdown教學,每個部分的教學分為兩個區塊,上半部為markdown語法,下半部為顯示結果
#載入selenium套件
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
#我的chromedriver路徑
chrome_driver_path = '/Users/ting11222001/Downloads/chromedriver'
#第一個頁面的url
url = 'https://gogakuru.com/english/phrase/genre/180_%E5%88%9D%E7%B4%9A%E3%83%AC%E3%83%99%E3%83%AB.html?layoutPhrase=1&orderPhrase=1&condMovie=0&flow=enSearchGenre&condGenre=180&perPage=50'
@LukaHuang
LukaHuang / vimium-arc-dark.css
Created June 18, 2020 04:46 — forked from nerdius/vimium-arc-dark.css
Arc Dark theme for styling Vimium link hints
/*
Arc Dark theme for styling Vimium link hints
By Giorgi Gzirishvili (@giogziro95). This code is in the public domain.
To use:
1. Copy the code.
2. Go to the Vimium options.
3. Click Show Advanced Options.
# frozen_string_literal: true
source 'https://rubygems.org'
gem 'activesupport'
gem 'minitest'
gem 'minitest-reporters', '>= 0.5.0'
gem 'rr'
gem 'rubocop'
@LukaHuang
LukaHuang / gist:977b69c1e56e38b7619165b6c3b47842
Created June 5, 2020 14:51 — forked from 480/gist:3b41f449686a089f34edb45d00672f28
MacOS X + oh my zsh + powerline fonts + visual studio code terminal settings

MacOS X + oh my zsh + powerline fonts + visual studio code (vscode) terminal settings

Thank you everybody, Your comments makes it better

Install oh my zsh

http://ohmyz.sh/

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"