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
needs_reconnect = True | |
# Keep trying to fetch new tasks forever... | |
while True: | |
if needs_reconnect: | |
try: | |
await connect_nats() | |
js = nc.jetstream() |
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
<script type="text/ng-template" id="one.html"> | |
<div>This is first template</div> | |
</script> | |
<script type="text/ng-template" id="two.html"> | |
<div>This is second template</div> | |
</script> |
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
#!/usr/bin/env node | |
// Tarmak 1 | |
// var CHARS = 'nkej nkej nkejcb'; | |
// Tarmak 2 | |
// var CHARS = 'gtfj gtfj nkejcb'; | |
// Tarmak 3 | |
// var CHARS = 'jyo; jyo; jyo; gtfj nkejcb'; |
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
<!DOCTYPE HTML> | |
<html xmlns:ng="http://angularjs.org" ng:controller="Main"> | |
<head> | |
<title ng:bind-template="Prefix: {{pageTitle}}"></title> | |
<script type="text/javascript" src="build/angular.js" ng:autobind></script> | |
<script type="text/javascript"> | |
function Main(){} | |
function Child(){} | |
</script> |
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
/** | |
* @license AngularJS | |
* (c) 2010-2012 AngularJS http://angularjs.org | |
* License: MIT | |
*/ | |
/** | |
* Backward compatibility module for AngularJS | |
* @author Vojta Jina <vojta.jina@gmail.com> | |
* |
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
var served = function(file) { | |
return {pattern: file, included: false}; | |
}; | |
var included = function(file) { | |
return {pattern: file, included: true}; | |
}; | |
module.exports = function(config) { | |
config.set({ |
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
<!DOCTYPE HTML> | |
<html xmlns:ng="http://code.angularjs.org/0.9.16/angular-0.9.16.min.js" ng:controller="Main"> | |
<head> | |
<title>Simple Example of Angular's $xhr</title> | |
<script type="text/javascript" src="build/angular.js" ng:autobind></script> | |
<script type="text/javascript"> | |
function Main($xhr){ | |
var selft = this; | |
this.doRequest = function() { | |
$xhr('POST', 'url.php', 'data-content=233', function(code, response) { |
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
var chokidar = require('chokidar'); | |
var watcher = new chokidar.FSWatcher({ | |
usePolling: false, | |
useFsEvents: true, | |
// changing to false makes it work | |
ignoreInitial: true, | |
}); | |
watcher.add('/Users/vojta/Code/karma/test/e2e/basic'); |
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
var fs = require('q-io/fs'); | |
var q = require('q'); | |
var ignoreNodeDirectory = function(path) { | |
return path.indexOf('src/node/') === -1; | |
}; | |
var EXPORT_REGEXP = /export/g; |
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
export class Greeter { | |
} |
NewerOlder