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
alert('Think of a number from 1 to 100...'); | |
var currGuess = 50; | |
do { | |
var response = prompt('I guess ' + currGuess + ' - am I too [h]igh, too [l]ow, or [r]ight on?'); | |
if (response[0].toLowerCase() === 'h') { | |
currGuess--; | |
} else if (response[0].toLowerCase() === 'l') { | |
currGuess++; | |
} else { |
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
> this.changeSet | |
Object {addMachines-866: (...)} | |
addMachines-866: (...) | |
get addMachines-866: function () { | |
set addMachines-866: function (value) { | |
__proto__: Object |
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
ecs = app.env.get('ecs'); | |
cb = function() { console.log(arguments); }; | |
app.env.addMachines([{}], cb); | |
ecs.changeSet; // note the unique ID of the addMachines entry | |
app.env.addMachines([{containerType: 'lxc', parentId: 'addMachines-XXX'}], cb); // Replace XXX with the ID above | |
ecs.commit(app.env); | |
app.db.machines.size(); // should be 2 | |
app.db.machines.item(1).id; // should be 0/lxc/0 |
Wordcount metrics:
find directorywithlogfiles/ -type f -exec cat {} \; | sed -re 's/[ "!?.,()]+/\n/g' | sed -re 's/(\n\n|\r)//g' | sort | uniq -ic | sort -rn > all.freq
This will give wordcount frequencies; but will leave names intact - you will need to delete those to ensure anonymity.
Other interesting metrics:
- Breakdown of pairings - M/M, M/F, etc. in percentages
- Interesting interactions, kinks, fetishes, interests
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
diff --git a/app/subapps/browser/browser.js b/app/subapps/browser/browser.js | |
index 9ab70d3..080b6da 100644 | |
--- a/app/subapps/browser/browser.js | |
+++ b/app/subapps/browser/browser.js | |
@@ -546,7 +546,9 @@ YUI.add('subapp-browser', function(Y) { | |
this._charmbrowser.destroy(); | |
this._charmbrowser = null; | |
} | |
- if (this._sidebar.search) { this._sidebar.hideSearch(); } | |
+ if (this._sidebar.search) { |
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
diff --git a/app/store/charmworld.js b/app/store/charmworld.js | |
index c164653..7c8d783 100644 | |
--- a/app/store/charmworld.js | |
+++ b/app/store/charmworld.js | |
@@ -59,15 +59,21 @@ YUI.add('juju-charm-store', function(Y) { | |
apiEndpoint = apiEndpoint + '?' + Y.QueryString.stringify(args); | |
} | |
+ var cachedResults = this.get('cachedResults')[apiEndpoint]; | |
+ if (cachedResults) { |
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
1401827730586 "changeState" browser.js:411 | |
1401827730588 "_navigate" ns-routing-app-extension.js:417 | |
URL has more than one reference to same namespace ns-routing-app-extension.js:216 | |
1401827730606 "_dispatch" ns-routing-app-extension.js:447 | |
1401827730614 "dispatch" state.js:116 | |
1401827730616 "_cleanUp" charmbrowser.js:316 | |
1401827730653 "_loadCurated" charmbrowser.js:133 | |
1401827731110 "_renderCharmTokens" charmbrowser.js:159 | |
1401827731221 "_makeStickyHeaders" |
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
package main | |
// This is a demo application that uses the jujusvg library to build a bundle SVG | |
// from a given bundle.yaml file. | |
import ( | |
"io/ioutil" | |
"log" | |
"os" | |
"strings" |
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
require 'twitter_ebooks' | |
# This is an example bot definition with event handlers commented out | |
# You can define and instantiate as many bots as you like | |
# Load the models generated by `ebooks consume-all all corpus/*` | |
$model = Ebooks::Model.load('model/all.model') | |
class MyBot < Ebooks::Bot | |
# Configuration here applies to all MyBots |