-
Clone the AngularJS 2.0 source tree:
git clone https://github.com/angular/angular
-
inside the project directory, run
npm install
-
inside gulpfile.js, replace the 'build' task (near the end of the file) with the following one:
gulp.task('build', ['jsRuntime/build', 'modules/build.dev.js']);
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 ZLSound = require('com.salsarhythmsoftware.zlsound'); | |
function createUrlSound(url, localFilename) { | |
var sound = nil; | |
var autoPlay = false; | |
var request = Titanium.Network.createHTTPClient(); | |
var soundFile = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, localFilename); | |
if (soundFile.exists()) { | |
return ZLSound.createSample({media: soundFile.nativePath}); | |
} |
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
/** | |
* Example application for combining TiMultiTouch module with Zero Latency Sound module. | |
* | |
* # https://marketplace.appcelerator.com/apps/860 TiMultiTouch | |
* # https://marketplace.appcelerator.com/apps/891 Zero Latency Sound | |
* | |
* Created for Jose R. Castello | |
*/ | |
Titanium.UI.setBackgroundColor('#000'); |
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
/* Copyright (C) 2013, Uri Shaked, GDG Tel-Aviv Lead. */ | |
var jq = document.createElement("script"); | |
jq.setAttribute("src", "https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"); | |
jq.setAttribute("type", "text/javascript"); | |
jq.onload = function () { | |
$ = jQuery; | |
function e(e, t) { | |
return e + Math.random() * (t - e) | |
} | |
function t(t) { |
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
def spitzer(k,r,p): | |
return k-p*(r/12.0) | |
def months(k,r,p): | |
total = 0 | |
while k > 0: | |
k -= spitzer(k,r,p) | |
total += 1 | |
return total |
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
'use strict'; | |
angular.module('myApp') | |
.directive('styleSheet', function () { | |
return { | |
restrict: 'EA', | |
template: '<style type="text/css" />', | |
transclude: true, | |
replace: true, |
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
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; |
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
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; |
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
<link rel="import" href="../core-animated-pages/core-animated-pages.html"> | |
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html"> | |
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html"> | |
<link rel="import" href="../core-animated-pages/transitions/slide-down.html"> | |
<link rel="import" href="../core-animated-pages/transitions/slide-up.html"> | |
<link rel="import" href="../core-animated-pages/transitions/tile-cascade.html"> | |
<link rel="import" href="../smoothie-chart/smoothie-chart.html"> | |
<link rel="import" href="../chart-js/chart-js.html"> | |
<link rel="import" href="../speech-mic/speech-mic.html"> | |
<link rel="import" href="../yt-video/yt-search-video.html"> |
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
#!/bin/bash | |
# Based on: http://www.tunnelsup.com/raspberry-pi-phoning-home-using-a-reverse-remote-ssh-tunnel | |
createTunnel() { | |
/usr/bin/ssh -o ServerAliveInterval=5 -o ServerAliveCountMax=1 -N -R 0.0.0.0:2222:localhost:22 fwd1@RemoteHost | |
if [[ $? -eq 0 ]]; then | |
echo Tunnel to jumpbox created successfully | |
else | |
echo An error occurred creating a tunnel to jumpbox. RC was $? |
OlderNewer