Yet another oh-my-zsh theme, based on [agnoster][1] - A Powerline-inspired theme for ZSH
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("a[href*=#]:not([href=#])").click -> | |
if location.pathname.replace(/^\//, "") is @pathname.replace(/^\//, "") and location.hostname is @hostname | |
target = $(@hash) | |
target = (if target.length then target else $("[name=#{@hash.slice(1)}]")) | |
if target.length | |
$("html, body").animate | |
scrollTop: target.offset().top - 18 | |
, 1000 | |
false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgs: attrs: | |
with pkgs; | |
let defaultAttrs = { | |
builder = "${bash}/bin/bash"; | |
args = [ ./builder.sh ]; | |
setup = ./setup.sh; | |
baseInputs = [ gnutar gzip gnumake gcc binutils coreutils gawk gnused gnugrep patchelf findutils ]; | |
buildInputs = []; | |
system = builtins.currentSystem; | |
}; |
This list is based on aliases_spec.rb.
You can see also Module: RSpec::Matchers API.
matcher | aliased to | description |
---|---|---|
a_truthy_value | be_truthy | a truthy value |
a_falsey_value | be_falsey | a falsey value |
be_falsy | be_falsey | be falsy |
a_falsy_value | be_falsey | a falsy value |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The next line updates PATH for the Google Cloud SDK. | |
source /Users/dwchiang/google-cloud-sdk/path.zsh.inc | |
# The next line enables zsh completion for gcloud. | |
source /Users/dwchiang/google-cloud-sdk/completion.zsh.inc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The Active Admin equivalent of putting this in your application layout: | |
# <head> | |
# <%= cloudinary_js_config %> | |
# </head> | |
module ActiveAdmin | |
module Views | |
module Pages | |
class Base < Arbre::HTML::Document |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# How to install `ipkg` on a Synology DS214 | |
After a couple of days of trying to get `ipkg` woking on my DS214 I found [this article](https://github.com/trepmag/ds213j-optware-bootstrap) by [trepmag](https://github.com/trepmag). It is written for the DS213j, but it’s been working for me and [others](https://github.com/alberthild) for the DS214 too. | |
I have done some minor changed to clarify some things, but if you are a Linux guy (unlike me) my changes might be of no use to you. | |
## Guide | |
- Add remote_syslog to your Gemfile
- Add
papertrail.rake
tolib/tasks
- Add
remote_syslog.yml
toconfig/
- Add
before_restart.rb
todeploy/
- Set the
PAPERTRAIL_PORT
ENV var to the one provided by Papertrail for your system
Inspiration from Scott W. Bradley
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* -------------------------------- | |
* NTUST 學生資訊系統 平均 GPA 計算 | |
* | |
* 作者:Eric Ping | |
* 更新:Jeremy Yen | |
* | |
* Change Log | |
* - 修正「二次退選」所造成之問題 | |
* - 增加 B99 百分制成績支援 | |
* - 使用正規表達式判斷中文與數字 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// React addon for easier React.DOM building without JSX | |
// | |
// Usage: | |
// | |
// render: function () { | |
// return React.addons.tagHelper( | |
// ['#main.container', | |
// ['h1', 'Hello!'], | |
// ['a.andClass.andAnother', { href: '/' }, 'Home']] |