Elements Out by towc
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
<!DOCTYPE html> | |
<html ng-app="myApp" ng-controller="myCtrl"> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.18/angular.min.js"></script> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/angular-ui-router/0.2.10/angular-ui-router.min.js"></script> | |
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> | |
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css"> |
Disclaimer: This is an unofficial post by a random person from the community. I am not an official representative of io.js. Want to ask a question? open an issue on the node-forward
discussions repo
- io is a fork of node v0.12 (the next stable version of node.js, currently unreleased)
- io.js will be totally compatible with node.js
- the people who created io.js are node core contributors who have different ideas on how to run the project
- it is not a zero-sum game. many core contributors will help maintain both node.js and io.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
/* | |
|-------------------------------------------------------------------------- | |
| GlobalLoaderService | |
|-------------------------------------------------------------------------- | |
| | |
| Global Loader Factory, use for fancy effect when saving, loading, deleting | |
| | |
*/ | |
var GlobalLoaderService = 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
var SerialPort = require('serialport').SerialPort; | |
var xbee_api = require('xbee-api'); | |
var C = xbee_api.constants; | |
var Q = require('q'); | |
// following settings work for me on my Raspberry pi, your config may differ! | |
var xbeeAPI = new xbee_api.XBeeAPI({ | |
api_mode: 1 | |
}); | |
var serialport = new SerialPort("/dev/ttyAMA0", { |
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
// Intercepting HTTP calls with AngularJS. | |
angular.module('MyApp', []) | |
.config(function ($provide, $httpProvider) { | |
// Intercept http calls. | |
$provide.factory('MyHttpInterceptor', function ($q) { | |
return { | |
// On request success | |
request: function (config) { | |
// console.log(config); // Contains the data about the request before it is sent. |
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
http://jsfiddle.net/brendanowen/uXbn6/8/ | |
<script type="text/ng-template" id="tree_item_renderer.html"> | |
{{data.name}} | |
<button ng-click="add(data)">Add node</button> | |
<button ng-click="delete(data)" ng-show="data.nodes.length > 0">Delete nodes</button> | |
<ul> | |
<li ng-repeat="data in data.nodes" ng-include="'tree_item_renderer.html'"></li> | |
</ul> | |
</script> |
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
'use strict'; | |
angular.module('app') | |
.controller('CreateWorkflowCtrl', function($scope, $location, Workflow, Category) { | |
$scope.workflow = new Workflow(); | |
$scope.page = 0; | |
$scope.create = function() { | |
$scope.workflow.$save(function(data) { | |
$location.path("/workflow/" + data.id); |
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
if [ -z "\${which tree}" ]; then | |
tree () { | |
find $@ -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g' | |
} | |
fi |
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
sudo: false | |
language: php | |
matrix: | |
include: | |
- php: 5.5 | |
env: WP_TRAVISCI=travis:js | |
- php: 5.2 | |
env: WP_TRAVISCI=travis:phpunit | |
- php: 5.3 | |
env: WP_TRAVISCI=travis:phpunit |