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
| lsof | grep '(deleted)$' |
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
| curl "https://api.digitalocean.com/images/?client_id=$DO_CLIENT_ID&api_key=$DO_API_KEY&filter=global" | js |
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
| <?php | |
| $time = microtime(TRUE); | |
| $mem = memory_get_usage(); | |
| $arr = array(); | |
| foreach (range(1, 1000000) as $i) { | |
| try { | |
| $arr[$i] = $i; | |
| // throw new Exception("foo"); |
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
| wget -O default.js http://updates.jenkins-ci.org/update-center.json | |
| sed '1d;$d' default.js > default.json | |
| curl -X POST -H "Accept: application/json" -d @default.json http://localhost:8080/updateCenter/byId/default/postBack --verbose |
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
| function printResult (r) { | |
| print(tojson(r)) | |
| } | |
| db.sitemedia.find().forEach(printResult) | |
| db.getCollectionNames().forEach(printResult) |
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
| public class lowercase { | |
| public static void main (String [] args) { | |
| String x = "foobar"; | |
| System.out.println(x == x.toLowerCase()); | |
| x = "Foobar"; | |
| System.out.println(x == x.toLowerCase()); | |
| } | |
| } |
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
| public class Concat { | |
| public static void main(String[] args) throws Exception { | |
| long start = System.currentTimeMillis(); | |
| for (int i = 0; i < 1000000; i++) { | |
| String s = "Yo " + i + ". Yo Adrian " + i*2; | |
| } | |
| long end = System.currentTimeMillis(); | |
| System.out.println("String Concatenation: " + ((end - start)) + " ms") ; |
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
| var page = require('webpage').create(), | |
| system = require('system'), | |
| t, address; | |
| if (system.args.length === 1) { | |
| console.log('Usage: loadspeed.js <some URL>'); | |
| phantom.exit(); | |
| } | |
| t = Date.now(); |
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
| ¯\_(ツ)_/¯ |
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
| QUESTION: | |
| 1. Among the topics mentioned in class are | |
| a. Modelessness | |
| b. Monotony | |
| c. Habituation | |
| d. Attention and Locus of Attention | |
| Why can proper use or recognition of each be important for usability and | |
| what is the relationship among them. In your answer, define these terms. | |
| When appropriate, express your answer in terms of gestures. |