This file contains hidden or 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
| Promise.all( | |
| ['wrestlers', 'verbs', 'nouns', 'verbs'].map( | |
| it => fetch('https://api.noopschallenge.com/wordbot?set=' + it) | |
| .then(response => response.json()).then(each => each.words[0]) | |
| ) | |
| ).then(all => console.log( | |
| 'Hello, my name is ' | |
| + all[0] + '. You ' | |
| + all[1] + 'ed my ' | |
| + all[2] + ', Prepare to ' |
This file contains hidden or 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 fs = require('fs'); | |
| const util = require('util'); | |
| const readdir = util.promisify(fs.readdir); | |
| const stat = util.promisify(fs.stat); | |
| const path = require('path'); | |
| const ls = (curDir, count) => readdir(curDir) | |
| .then((entries) => { | |
| return Promise.resolve(entries.map(each => path.resolve(curDir,each))); | |
| }) |
This file contains hidden or 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
| { | |
| "goalTreeString": "%7B%22branches%22%3A%7B%22master%22%3A%7B%22target%22%3A%22C3%27%22%2C%22id%22%3A%22master%22%2C%22remoteTrackingBranchID%22%3A%22o/master%22%7D%2C%22o/master%22%3A%7B%22target%22%3A%22C3%27%22%2C%22id%22%3A%22o/master%22%2C%22remoteTrackingBranchID%22%3Anull%7D%2C%22bugFix%22%3A%7B%22target%22%3A%22C3%27%22%2C%22id%22%3A%22bugFix%22%2C%22remoteTrackingBranchID%22%3A%22o/bugFix%22%7D%2C%22feature%22%3A%7B%22target%22%3A%22C5%27%22%2C%22id%22%3A%22feature%22%2C%22remoteTrackingBranchID%22%3A%22o/feature%22%7D%2C%22o/feature%22%3A%7B%22target%22%3A%22C5%27%22%2C%22id%22%3A%22o/feature%22%2C%22remoteTrackingBranchID%22%3Anull%7D%2C%22o/bugFix%22%3A%7B%22target%22%3A%22C3%27%22%2C%22id%22%3A%22o/bugFix%22%2C%22remoteTrackingBranchID%22%3Anull%7D%7D%2C%22commits%22%3A%7B%22C0%22%3A%7B%22parents%22%3A%5B%5D%2C%22id%22%3A%22C0%22%2C%22rootCommit%22%3Atrue%7D%2C%22C1%22%3A%7B%22parents%22%3A%5B%22C0%22%5D%2C%22id%22%3A%22C1%22%7D%2C%22C2%22%3A%7B%22parents%22%3A%5B%22C1%22%5D%2C%22id%22%3A%22C2 |
This file contains hidden or 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
| import groovy.json.* | |
| def bearerToken | |
| slurper = new JsonSlurper() | |
| def getToken() { | |
| def twigglerKey = 'enter-key-here' | |
| def twigglerSecret = 'enter-secret-here' | |
| def encodedToken = URLEncoder.encode(twigglerKey) + ':' + URLEncoder.encode(twigglerSecret) |
This file contains hidden or 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
| def xprocs() { | |
| "adb shell ps".execute().text.split('\n').collect { it.split('\\s+') } | |
| } | |
| def procs() { | |
| """USER PID PPID VSIZE RSS WCHAN PC NAME | |
| root 1 0 10632 608 SyS_epoll_ 0000000000 S /init | |
| root 2 0 0 0 kthreadd 0000000000 S kthreadd | |
| root 3 2 0 0 smpboot_th 0000000000 S ksoftirqd/0 | |
| root 6 2 0 0 msm_mpm_wo 0000000000 D kworker/u8:0 |
This file contains hidden or 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
| package com.cliftoncraig.apps.imagegallery | |
| import android.app.ListActivity | |
| import android.content.Context | |
| import android.net.Uri | |
| import android.os.Bundle | |
| import android.util.Log | |
| import android.view.KeyEvent | |
| import android.view.Menu | |
| import android.view.MenuItem |
This file contains hidden or 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
| import java.net.URISyntaxException; | |
| public class ClassLoaders { | |
| static void handle(Throwable e){ | |
| throw new RuntimeException("Exception " + e, e); | |
| } | |
| static void load(String toLoad) { | |
| String resRef = toLoad.replaceAll("\\.","/") + ".class"; |