Skip to content

Instantly share code, notes, and snippets.

View jaryl's full-sized avatar
🤓
Indie hacking

Jaryl Sim jaryl

🤓
Indie hacking
View GitHub Profile
@fordguo
fordguo / devise.zh-CN.yml
Created June 5, 2011 04:24
devise i18n for zh-CN
zh-CN:
errors:
messages:
expired: "您已过期,请重新申请"
not_found: "没有找到"
already_confirmed: "已经确认"
not_locked: "未锁定"
not_saved:
one: "因为1个错误导致此%{resource}保存失败:"
other: "因为%{count}个错误导致此%{resource}保存失败:"
@jlong
jlong / uri.js
Created April 20, 2012 13:29
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"
@gaqzi
gaqzi / bump-it.sh
Last active August 29, 2015 14:10
#!/bin/bash
#
# Usage: bump-it.sh [major|minor|patch|nobump]
# Default: patch
#
# This script uses the gem `bump` to do most of the heavy lifting:
# https://rubygems.org/gems/bump
#
# The updating of the Gemfile is really dump, it expects the gem to be
# specified in the following format exactly: gem 'gem-name', 'version-number'
@selfawaresoup
selfawaresoup / uconsole.md
Last active October 28, 2024 01:40
Notes for Clockwork uConsole setup

uConsole Notes

Batteries

I use two XTAR 16850-3500 cells and I get about 8h of active usage out of them.

Get GNOME Shell and GDM3

sudo apt install gnome-shell gdm3