http://www.fastclip.net/Taboca/70ang
export PATH=$PATH:/usr/local/bin
setTimeout() => clearTimeout()
http://www.fastclip.net/Taboca/70ang
export PATH=$PATH:/usr/local/bin
setTimeout() => clearTimeout()
| // Demo http://jsbin.com/qevetiqavu/edit?js,output | |
| var one = function(i) { | |
| return new Promise((resolve, reject) => { | |
| setTimeout(() => { | |
| console.log(`setTimeout ${i}`); | |
| if (i < 0) { | |
| reject(i); | |
| } | |
| else if (i >= 5) { |
| require(XML) | |
| require(stringr) | |
| library(RCurl) | |
| # The ticker symbols to get price quotes. | |
| names <- c('SPY', 'EFA', 'AGG') | |
| # Read current stock prices. | |
| prices <- t(sapply(names, function(name) { | |
| webpage <- getURL(paste0('https://finance.yahoo.com/quote/', name), .opts = list(ssl.verifypeer = FALSE)) |
12-06-2017
Speaker: Kory Becker
It’s a very exciting time to be a technologist right now. The term “big data” is really more of a media concept, often mentioned in combination with machine learning and AI. It’s really about more than just the size of the data itself – it’s also about the insight that can be collected from it.
Only in the past few years have we seen such as explosion of data availability from a variety of sources. Computers used to be relatively silo-ed, but now we have an enormous amount of data coming from places like social networking services, biometric screening devices, home automation suites, and new sources every day.
| from __future__ import absolute_import | |
| # | |
| # This is an extension to the Nautilus file manager to allow better | |
| # integration with the Subversion source control system. | |
| # | |
| # Copyright (C) 2006-2008 by Jason Field <jason@jasonfield.com> | |
| # Copyright (C) 2007-2008 by Bruce van der Kooij <brucevdkooij@gmail.com> | |
| # Copyright (C) 2008-2010 by Adam Plumb <adamplumb@gmail.com> | |
| # | |
| # RabbitVCS is free software; you can redistribute it and/or modify |
| document.querySelector('body'); | |
| function getRandomColor() { | |
| var letters = '0123456789ABCDEF'; | |
| var color = '#'; | |
| for (var i = 0; i < 6; i++) { | |
| color += letters[Math.floor(Math.random() * 16)]; | |
| } | |
| return color; | |
| } |
| # | |
| # [2017-10-16] Challenge #336 [Easy] Cannibal numbers | |
| # https: https://www.reddit.com/r/dailyprogrammer/comments/76qk58/20171016_challenge_336_easy_cannibal_numbers/ | |
| # | |
| # Demo at http://www.r-fiddle.org/#/fiddle?id=xqqeOaS1&version=2 | |
| # | |
| # Imagine a given set of numbers wherein some are cannibals. | |
| # We define a cannibal as a larger number can eat a smaller number and increase its value by 1. | |
| # There are no restrictions on how many numbers any given number can consume. | |
| # A number which has been consumed is no longer available. |
| <div className='delete-button' onClick={() => { if (window.confirm('Are you sure you wish to delete this item?')) this.onCancel(item) } } /> |
| // | |
| // [2017-10-09] Challenge #335 [Easy] Consecutive Distance Rating | |
| // https://www.reddit.com/r/dailyprogrammer/comments/759fha/20171009_challenge_335_easy_consecutive_distance/ | |
| // | |
| // Demo at http://jsbin.com/kipepoyuba/edit?js,output | |
| // | |
| // We'll call the consecutive distance rating of an integer sequence the sum of the distances between consecutive integers. | |
| // Consider the sequence 1 7 2 11 8 34 3. 1 and 2 are consecutive integers, but their distance apart in the sequence is 2. | |
| // 2 and 3 are consecutive integers, and their distance is 4. | |
| // The distance between 7 and 8 is 3. The sum of these distances is 9. |