Enter this in the search box along with your search terms:
Get all gists from the user santisbon.
user:santisbon
Find all gists with a .yml extension.
extension:yml
Find all gists with HTML files.
language:html
| // work in progress | |
| // you need a bittrex API key and secret with read account option enabled | |
| // I assume that all the keys are in the "keys" spreadsheet. The key is in cell B5 and the secret in cell C5 | |
| var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("keys"); | |
| var key = sheet.getRange("B5").getValue() | |
| var secret = sheet.getRange("C5").getValue(); | |
| var baseUrl = 'https://bittrex.com/api/v1.1/'; | |
| var nonce = Math.floor(new Date().getTime()/1000); |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <title></title> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| </head> | |
| <body> | |
| <h2>Hello from outside the Shadow DOM!</h2> | |
| function promiseMap(inputValues, mapper) { | |
| const reducer = (acc$, inputValue) => | |
| acc$.then(acc => mapper(inputValue).then(result => acc.push(result) && acc)); | |
| return inputValues.reduce(reducer, Promise.resolve([])); | |
| } | |
| /* Example */ | |
| const axios = require('axios'); |
| // Author: Renat Tuktarov ([email protected]) | |
| const retry = function(fn, prev) { | |
| return new Promise((current, reject) => { | |
| const resolve = _ => (prev && prev()) || current(); | |
| fn(resolve, delay => { | |
| setTimeout(_ => { | |
| retry(fn, resolve); | |
| }, delay); |
Enter this in the search box along with your search terms:
Get all gists from the user santisbon.
user:santisbon
Find all gists with a .yml extension.
extension:yml
Find all gists with HTML files.
language:html
Dr. Mark B Lundeberg, 2018 Feb 15
bitcoincash:qqy9myvyt7qffgye5a2mn2vn8ry95qm6asy40ptgx2
This security advisory notes a vulnerability in the common construction of cross-chain smart contracts (contracts between distinct cryptocurrencies) through hash locking. I focus on the primary use case in [atomic
| /************************ | |
| search.js | |
| ************************/ | |
| // an example of how to implement fuse.js with a web worker | |
| var searchWorker; // initialized in document ready function | |
| if(typeof(Worker) !== "undefined") { | |
| if(typeof(searchWorker) == "undefined") { | |
| searchWorker = new Worker('/scripts/searchWorker.js'); | |
| } |
| # Add this to your .bashrc | |
| # Use it like: you@console_>$ _get https://website.org/file.txt | |
| _get () | |
| { | |
| IFS=/ read proto z host query <<< "$1" | |
| exec 3< /dev/tcp/$host/80 | |
| { | |
| echo GET /$query HTTP/1.1 | |
| echo connection: close | |
| echo host: $host |
| const poll = ({ fn, validate, interval, maxAttempts }) => { | |
| console.log('Start poll...'); | |
| let attempts = 0; | |
| const executePoll = async (resolve, reject) => { | |
| console.log('- poll'); | |
| const result = await fn(); | |
| attempts++; | |
| if (validate(result)) { |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
| <meta | |
| name="viewport" | |
| content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" | |
| /> | |
| <meta name="description" content="Use Viewer to start building new applications or easily embed Cesium into existing applications."> |