MwbGyZ ('-' * 6)
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
// create a module | |
var app = angular.module("mailbox",[]); | |
// create a directive | |
app.directive('mail', function(){ | |
console.log(app.$scope); | |
return { | |
restrict: 'E', | |
scope: { | |
subject: "@", |
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
<div class="mail-clip"> | |
<div class="subject-clip">{{subject}}</div> | |
<div class="content-clip"> | |
{{content}} | |
</div> | |
</div> |
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
<div class="mail-clip"> | |
<div class="subject-clip">{{subject}}</div> | |
<div class="content-clip"> | |
{{content}} | |
</div> | |
</div> |
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 is a comment --> | |
<div class="mail-clip2"> | |
<div class="subject-clip">{{subject}}</div> | |
<div class="content-clip"> | |
{{content}} | |
</div> | |
</div> |
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
String sourceFileName = "source.ged"; | |
String userDir = System.getProperty("user.dir"); | |
File sourceFile = new File(userDir, sourceFileName); | |
@Test // 1s | |
public void read_with_FileInputStream() throws IOException { | |
for (int i = 0; i < 1000; i++){ | |
FileInputStream fileInputStream = new FileInputStream(sourceFile); | |
int read = fileInputStream.read(); | |
while (read != -1){ | |
read = fileInputStream.read(); |
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
// ==UserScript== | |
// @name Red Green Bar | |
// @namespace http://use.i.E.your.homepage/ | |
// @version 0.1 | |
// @description enter something useful | |
// @match http://dev-cer-ci-dt2.stkildard.vic.ausregistry.com.au:8080/overview.html | |
// @copyright 2012+, You | |
// ==/UserScript== | |
setInterval(function() { |
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
# installs to /opt/gradle | |
# existing versions are not overwritten/deleted | |
# seamless upgrades/downgrades | |
# $GRADLE_HOME points to latest *installed* (not released) | |
gradle_version=1.11 | |
wget -N http://services.gradle.org/distributions/gradle-${gradle_version}-all.zip | |
sudo unzip -foq gradle-${gradle_version}-all.zip -d /opt/gradle | |
sudo ln -sfn gradle-${gradle_version} /opt/gradle/latest | |
sudo printf "export GRADLE_HOME=/opt/gradle/latest\nexport PATH=\$PATH:\$GRADLE_HOME/bin" > /etc/profile.d/gradle.sh | |
. /etc/profile.d/gradle.sh |
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
# installs to /opt/gradle | |
# existing versions are not overwritten/deleted | |
# seamless upgrades/downgrades | |
# $GRADLE_HOME points to latest *installed* (not released) | |
gradle_version=2.0 | |
wget -N http://services.gradle.org/distributions/gradle-${gradle_version}-all.zip | |
sudo mkdir -p /opt/gradle | |
sudo unzip gradle-${gradle_version}-all.zip -d /opt/gradle | |
sudo ln -sfn gradle-${gradle_version} /opt/gradle/latest | |
sudo printf "export GRADLE_HOME=/opt/gradle/latest\nexport PATH=\$PATH:\$GRADLE_HOME/bin" | sudo tee /etc/profile.d/gradle.sh > /dev/null |
This file has been truncated, but you can view the full file.
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
/* START MicrosoftAjax.js */ | |
//---------------------------------------------------------- | |
// Copyright (C) Microsoft Corporation. All rights reserved. | |
//---------------------------------------------------------- | |
// MicrosoftAjax.js | |
Function.__typeName = "Function"; | |
Function.__class = true; | |
Function.createCallback = function (b, a) { | |
return function () { | |
var e = arguments.length; |
OlderNewer