This file contains 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
curl -s https://api.github.com/orgs/twitter/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}' |
This file contains 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
let prevent; | |
const stop = () => { | |
prevent = true; | |
chrome.runtime.sendMessage({ | |
type: "msg", | |
msg: "start again", | |
running: false | |
}); | |
}; |
This file contains 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
set heading off | |
set linesize 1000 | |
rem set pagesize 50000 | |
set echo off | |
set serveroutput on | |
SET FEEDBACK OFF | |
SPOOL out.sql | |
DECLARE | |
cur SYS_REFCURSOR; |
This file contains 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
const sliceSlotsByAverageTime = (slots,averageTime)=>{ | |
let newSlots = [] ; | |
// loop over slots | |
slots.forEach((slot)=>{ | |
let from = new Date(slot.from); | |
let end = new Date(slot.to); | |
let loop = 1 ; |