Skip to content

Instantly share code, notes, and snippets.

View ETBlue's full-sized avatar

ETBlue ETBlue

View GitHub Profile
@ETBlue
ETBlue / app.js
Created May 26, 2013 06:19
_public/js/app.js
(function(/*! Brunch !*/) {
'use strict';
var globals = typeof window !== 'undefined' ? window : global;
if (typeof globals.require === 'function') return;
var modules = {};
var cache = {};
var has = function(object, name) {
@ETBlue
ETBlue / gist:5651871
Created May 26, 2013 06:10
rm -rf _public npm run start
C:\Users\ETBlue\Documents\GitHub\hack.g0v.tw [master +1 ~1 -0 !]> rm -rf _public
Remove-Item : A parameter cannot be found that matches parameter name 'rf'.
At line:1 char:7
+ rm -rf <<<< _public
+ CategoryInfo : InvalidArgument: (:) [Remove-Item], ParameterBin
dingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Comm
ands.RemoveItemCommand
TypeError: Cannot read property 'FIREBASE' of undefined
at Object.angular.module.controller.controller.factory.Hub (http://localhost:3333/js/app.js:652:31)
at Object.d [as invoke] (http://ajax.googleapis.com/ajax/libs/angularjs/1.1.4/angular.min.js:28:122)
at http://ajax.googleapis.com/ajax/libs/angularjs/1.1.4/angular.min.js:29:310
at c (http://ajax.googleapis.com/ajax/libs/angularjs/1.1.4/angular.min.js:26:467)
at d (http://ajax.googleapis.com/ajax/libs/angularjs/1.1.4/angular.min.js:27:98)
at Object.instantiate (http://ajax.googleapis.com/ajax/libs/angularjs/1.1.4/angular.min.js:28:252)
at http://ajax.googleapis.com/ajax/libs/angularjs/1.1.4/angular.min.js:53:80
at <error: illegal access>
at Object.e.$broadcast (http://ajax.googleapis.com/ajax/libs/angularjs/1.1.4/angular.min.js:93:240)
C:\Users\ETBlue\Documents\GitHub\hack.g0v.tw [master +1 ~0 -0 !]> git pull
Already up-to-date.
C:\Users\ETBlue\Documents\GitHub\hack.g0v.tw [master +1 ~0 -0 !]> npm i
> [email protected] prepublish C:\Users\ETBlue\Documents\GitHub\hack.g0v.tw
> node ./node_modules/.bin/lsc -cj package.ls
C:\Users\ETBlue\Documents\GitHub\hack.g0v.tw\node_modules\.bin\lsc:2
basedir=`dirname "$0"`
@ETBlue
ETBlue / listening - jedi
Created May 25, 2013 16:36
g0v 福利請聽專案 - 聽語治療專業領域資料貢獻
[23:18] Jedi_ ETBlue: 我覺得我應該要努力實體參與 http://listening.g0v.tw/ 可是此專案聚會好像都還是挑周間北部
kcwu Jedi_'s url: [Listening 福利請聽]
ETBlue: 因為目前的試做玩具都是同業第一線應該會用到的東西啦....
Jedi_ ETBlue: 我知道有同業在用,但是都沒有 feedback
Jedi_ (也有可能 feedback 在我看不到的 facebook)
[23:22] ETBlue: 目前我是敝縣輔具補助審查委員會的審查委員 ._.
[23:23] ETBlue Jedi_: 你做的東西是實體的嗎?還是數位的
Jedi_ ETBlue: 數位的呀
ETBlue: 見 http://jedi.org/blog/archives/cat_occupation.html
[23:24] kcwu Jedi_'s url: [occupation 彙整 | Jedi's BLOG]
@ETBlue
ETBlue / gist:5645539
Created May 24, 2013 18:27
npm start
> [email protected] start C:\Users\ETBlue\Documents\GitHub\hack.g0v.tw
> node ./node_modules/.bin/brunch watch --server
C:\Users\ETBlue\Documents\GitHub\hack.g0v.tw\node_modules\.bin\brunch:2
basedir=`dirname "$0"`
^
SyntaxError: Unexpected token ILLEGAL
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
@ETBlue
ETBlue / gist:5645529
Created May 24, 2013 18:25
node node_modules\.bin\brunch w -s
C:\Users\ETBlue\Documents\GitHub\hack.g0v.tw\node_modules\.bin\brunch:2
basedir=`dirname "$0"`
^
SyntaxError: Unexpected token ILLEGAL
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
C:\Users\ETBlue\Documents\GitHub\hack.g0v.tw\node_modules\.bin\lsc:2
basedir=`dirname "$0"`
^
SyntaxError: Unexpected token ILLEGAL
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
# header
puts "\n--------------------------\n * Multiplication Table * \n--------------------------"
# body
(1..9).each{|y|
# one row
(1..9).each{|x|
number=x*y
def get_size
print"\n how many rows/columns do you wish to have? (please input a number between 4 and 100:) "
# ask user to input the correct format over and over again
while
table_size=gets.chomp.to_i
# start over if the format is incorrect
if !table_size || table_size<4 || table_size>100
print"\n please give me an integer between 4 and 100: "