Skip to content

Instantly share code, notes, and snippets.

View suxiaogang's full-sized avatar
🙄
busy writing bugs

Sam Su suxiaogang

🙄
busy writing bugs
  • NULL
  • UTM Zone 49
View GitHub Profile
@matt-curtis
matt-curtis / Lenovo G510 High Sierra Notes.md
Last active February 10, 2019 06:05
Lenovo G510 High Sierra Notes

Checklist:

  • ✅ WIFI
  • ✅ Ethernet
  • ✅ Display
  • ✅ Touchpad
  • ✅ USB (2 & 3)
  • ❓ HDMI (Video works, haven't bothered to fix audio yet)
  • ✅ Sleep
  • ✅ Audio (No microphone)
@gokulkrishh
gokulkrishh / media-query.css
Last active November 10, 2024 02:00
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */
@l1x
l1x / install_gradle_version_with_homebrew.sh
Created June 17, 2015 19:24
Installing a specific version of Gradle with Homebrew
brew tap homebrew/versions
brew search gradle
brew install homebrew/versions/gradle112
gradle -version
brew link --overwrite gradle112
gradle -version
@djyde
djyde / rm2magnet1024.user.js
Last active January 20, 2019 13:08
rm2magnet1024.user.js
// ==UserScript==
// @name rm2mag1024
// @namespace http://djyde.github.io/
// @version 0.1.1
// @description Automatically convert rmdown to magnet and show on the top of 1024 page
// @author Randy
// @match http://t66y.com/htm_data/*
// @grant none
// ==/UserScript==
@lttlrck
lttlrck / gist:9628955
Created March 18, 2014 20:34
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@wjn
wjn / Console Output
Created December 19, 2013 03:12
Multiplication Table: This Java class creates a simple, text-based, multiplication table based on user's input.
Upto what whole number would you like your times table? 10
------------------------------------------------------------------------
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
------------------------------------------------------------------------
| 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 |
------------------------------------------------------------------------
| 3 | 6 | 9 | 12 | 15 | 18 | 21 | 24 | 27 | 30 |
------------------------------------------------------------------------
| 4 | 8 | 12 | 16 | 20 | 24 | 28 | 32 | 36 | 40 |

注意: 这篇文章假设你有GitHub账号以及了解基本的Git知识

页面访问地址: http://username.github.io/repository/

创建GitHub仓库

  // 拉取远程仓库至本地  
  git clone https://github.com/user/repository.git
  // 打开本地仓库
  cd repository
@P233
P233 / ios7-theme-for-v2ex
Last active December 9, 2016 07:51
体积稍大,需要压缩: http://cssminifier.com/
a:link, a:visited, a:active {
color: #8e8d93;
-webkit-transition: all .15s;
-moz-transition: all .15s;
-ms-transition: all .15s;
-o-transition: all .15s;
transition: all .15s;
}
a.top:link, a.top:visited, a.top:active {
color: #000;
@fengdragon
fengdragon / Jiandan.py
Created August 28, 2013 04:32
jiandan-MEIZHI
#!/usr/bin/env python
#coding:utf-8
import os,time,socket
import urllib,re
urlList = ['http://jandan.net/ooxx/page-%d' % i for i in range(1, 911)]
globnum = 1