Skip to content

Instantly share code, notes, and snippets.

View yhsiang's full-sized avatar
🙅‍♂️
それだめ

LY Cheng yhsiang

🙅‍♂️
それだめ
View GitHub Profile
@yhsiang
yhsiang / gist:6199118
Last active December 20, 2015 21:39
lfrest npm-debug.log
11875 info postuninstall pgrest@0.0.6
11876 error Error: ENOENT, chmod '/Users/yhsiang/Work/g0v/lfrest/node_modules/pgrest/bin/cmd.js'
11877 error If you need help, you may report this log at:
11877 error <http://github.com/isaacs/npm/issues>
11877 error or email it to:
11877 error <npm-@googlegroups.com>
11878 error System Darwin 12.4.0
11879 error command "node" "/usr/local/bin/npm" "i"
11880 error cwd /Users/yhsiang/Work/g0v/lfrest
11881 error node -v v0.10.7
{
"status": "ok",
"result": [
{
"status_quo_schulze_rank": 1,
"voter_count": 0,
"population": 3,
"fully_frozen": "2011-10-04T00:06:00.609Z",
"half_frozen": "2011-09-26T00:05:39.916Z",
"accepted": "2011-09-11T00:05:02.081Z",
{
"status": "ok",
"result": [
{
"winner": false,
"eligible": false,
"multistage_majority": true,
"reverse_beat_path": true,
"worse_than_status_quo": false,
"better_than_status_quo": false,
{
"status": "ok",
"result": [
{
"member_weight": 1,
"direct_member_count": 1,
"description": "",
"name": "Statutes of the United Solar System",
"active": true,
"unit_id": 1,
@yhsiang
yhsiang / gist:6204459
Created August 11, 2013 11:31
npm i pgrest@0.0.x
CXX(target) Release/obj.target/binding/src/binding.o
SOLINK_MODULE(target) Release/binding.node
SOLINK_MODULE(target) Release/binding.node: Finished
npm http 304 https://registry.npmjs.org/rmdir
> pg@2.1.0 install /Users/yhsiang/Work/g0v/lfrest/node_modules/pgrest/node_modules/plv8x/node_modules/pg
> node-gyp rebuild || (exit 0)
npm http 304 https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/lru-cache
@yhsiang
yhsiang / gist:6204510
Created August 11, 2013 11:48
lfrest error
Yuans-MacBook-Pro:lfrest yhsiang$ ./node_modules/.bin/lsc app.ls --db tcp://test:test@localhost:5432/lf --port 25520
events.js:72
throw er; // Unhandled 'error' event
^
Error: connect ECONNREFUSED
at errnoException (net.js:884:11)
at Object.afterConnect [as oncomplete] (net.js:875:19)
{
"status": "ok",
"result": [
{
"winner": null,
"eligible": null,
"multistage_majority": null,
"reverse_beat_path": null,
"worse_than_status_quo": null,
"better_than_status_quo": null,
@yhsiang
yhsiang / gist:6238803
Created August 15, 2013 06:53
psql -v ON_ERROR_STOP=1 -f demo.sql liquid_feedback
Yuans-MacBook-Pro:liquid_feedback_core yhsiang$ psql -v ON_ERROR_STOP=1 -f demo.sql liquid_feedback
BEGIN
INSERT 0 1
psql:demo.sql:11: ERROR: null value in column "polling" violates not-null constraint
DETAIL: Failing row contains (null, 01:00:00, 6, 1).
@yhsiang
yhsiang / gist:6283778
Created August 20, 2013 16:26
newshelper-extension content_script.js 新版Timeline
// 新版Timeline
if (!addedAction) {
containerNode.parent('._4q_').find('._6p-').find('._5ciy').find('._6j_').each(function(idx, shareAction){
console.log(shareAction);
$($('<a class="_5cix"></a>').html(buildActionBar({title: titleText, link: linkHref}))).insertAfter(shareAction);
addedAction = true;
});
}
{
"kml": {
"Folder": [
{
"Folder": [
{
"NetworkLink": [
{
"Url": [
{