(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| function getJSON(aUrl,sheetname) { | |
| //var sheetname = "test"; | |
| //var aUrl = "http://pipes.yahoo.com/pipes/pipe.run?_id=286bbb1d8d30f65b54173b3b752fa4d9&_render=json"; | |
| var response = UrlFetchApp.fetch(aUrl); // get feed | |
| var dataAll = JSON.parse(response.getContentText()); // | |
| var data = dataAll.value.items; | |
| for (i in data){ | |
| data[i].pubDate = new Date(data[i].pubDate); | |
| data[i].start = data[i].pubDate; | |
| } |
| /** | |
| * Retrieves all the rows in the active spreadsheet that contain data and logs the | |
| * values for each row. | |
| * For more information on using the Spreadsheet API, see | |
| * https://developers.google.com/apps-script/service_spreadsheet | |
| */ | |
| function readRows() { | |
| var sheet = SpreadsheetApp.getActiveSheet(); | |
| var rows = sheet.getDataRange(); | |
| var numRows = rows.getNumRows(); |
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
Rubyλ μ¦κ±°μ΄ μΈμ΄μ λλ€. Rubyλ₯Ό μ¬μ©νλ€λ³΄λ©΄ λ§€λ΄μΌμλ λμμμ§ μμ 'μμ λ°κ²¬'μ λ§λκ² λ©λλ€. μ΄λ¬ν 'λ°κ²¬'μ νλ‘κ·Έλ¨μ μ§μ΄λ
| def get_count(q): | |
| count_q = q.statement.with_only_columns([func.count()]).order_by(None) | |
| count = q.session.execute(count_q).scalar() | |
| return count | |
| q = session.query(TestModel).filter(...).order_by(...) | |
| # Slow: SELECT COUNT(*) FROM (SELECT ... FROM TestModel WHERE ...) ... | |
| print q.count() |
| #!/usr/bin/env python | |
| #-*- coding: utf-8 -*- | |
| def left_shift(n): | |
| return n + n | |
| def is_bit_on(n, bit): | |
| a = n % bit | |
| b = n % left_shift(bit) | |
| if not b: |
| <source> | |
| type tail | |
| path /dev/shm/tmp/dummy.log | |
| pos_file /var/tmp/_var_log_dummy.pos | |
| format none | |
| tag dummy | |
| </source> | |
| <match dummy> | |
| type copy | |
| <store> |
| // built files are found at /public/__build__/* | |
| // how do I get `webpack` to build to `public/__build__/` | |
| // but have the webpack dev server serve `public/index.html` | |
| // and the bundles from `/__build__/`? | |
| // | |
| // I'm using this to run the server | |
| // | |
| // webpack-dev-server --inline --content-base public/ | |
| // | |
| // and this is my config: |