Skip to content

Instantly share code, notes, and snippets.

View Snger's full-sized avatar

Sim Jiason Snger

View GitHub Profile
@Snger
Snger / article-style.css
Last active October 9, 2019 05:55 — forked from bangedorrunt/article-style.css
GoldenDict Dark Theme
/* filename: article-style.css
mkdir ~/.goldendict/styles/sim-dark-theme/
then put this stylesheet there */
body {
margin-top: 1px;
margin-right: 3px;
margin-left: 2px;
margin-bottom: 3px;
background: #dbd4d4;
color: white;
@Snger
Snger / sync-projects
Created July 13, 2019 12:09 — forked from JonasGroeger/sync-projects
Gitlab: Clone / Pull all projects in a group
#!/usr/bin/env bash
# Documentation
# https://docs.gitlab.com/ce/api/projects.html#list-projects
NAMESPACE="YOUR_NAMESPACE"
BASE_PATH="https://gitlab.example.com/"
PROJECT_SEARCH_PARAM=""
PROJECT_SELECTION="select(.namespace.name == \"$NAMESPACE\")"
PROJECT_PROJECTION="{ "path": .path, "git": .ssh_url_to_repo }"
@Snger
Snger / emacs_cheatsheet.md
Last active December 19, 2017 09:09 — forked from kiasaki/emacs_cheatsheet.md
emacs_cheatsheet

Learning of emacs in progres...

  • M-x eval-buffer : Self-explanatory

  • M-x replace-string : Self-explanatory

  • C-x C-c : Quit emacs

  • C-g : Cancel current command (keyboard-quit)

Buffers

@Snger
Snger / tmux-cheatsheet.markdown
Last active May 4, 2017 04:48 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@Snger
Snger / DISS.conf
Last active October 7, 2015 05:28 — forked from janlay/README.md
config for Surge.app
# config for Surge.app
[General]
# warning, notify, info, verbose
loglevel = notify
# bypass HTTP persistent connections
# bypass = e.crashlytics.com
[Proxy]
# http, https, socks5

Install cask that extends the brew command :

brew install phinze/cask/brew-cask

Install calibre using cask :

brew cask install calibre
@Snger
Snger / css_resources.md
Created August 18, 2014 08:49 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@Snger
Snger / javascript_resources.md
Created August 18, 2014 08:49 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@Snger
Snger / 0_reuse_code.js
Created August 18, 2014 08:49
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console