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
cd / && sudo du -aH --max-depth=1 |
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/Xvfb :99 -ac -screen 0 1024x768x16 |
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 ng-app="myApp"> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.min.js"></script> | |
</head> | |
<body> | |
<div ng-controller="TodoCtrl"> | |
<button ng-click="beQuickOrBeDead()">Fetch with 100ms timeout</button> | |
<button ng-click="neverEndingStory()">Fetch with default timeout</button> |
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
//my initial config | |
app.config(["$routeProvider", function($routeProvider){ | |
$routeProvider | |
.when('/list_streams', { | |
templateUrl: 'assets/angular/views/target_bitrates.html', | |
controller: 'TargetBitratesCtrl' | |
}) | |
.when('/transmissions',{ | |
templateUrl: 'assets/angular/views/create_live_media.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
angular.module('Sauron') | |
.factory('TargetBitrates', ["$http", "$timeout", "Config", function($http, $timeout, Config){ | |
var data = {list: []}; | |
var onSuccess = function(result){ | |
data.list = result.data.data; | |
$timeout(poller, Config.pollingTimeout); | |
}; | |
var poller = function() { | |
$http.get('/streams.json', Config.httpOptions).then(onSuccess); | |
}; |
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
angular.module('pearlJam') | |
.factory('Songs', function($http, $timeout, Config){ | |
var response = {list: []}; | |
var onSuccess = function(result){ | |
response.list = result.data.data; | |
$timeout(poller, Config.pollingTimeout); | |
}; | |
var poller = function(){ | |
$http.get('api/songs.json', Config.httpOptions).then(onSuccess); |
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
angular.module('goodsCom') | |
.factory('Goods', function($http){ | |
var response = {}; | |
$http.get('api/songs.json'). | |
then(function(result){ | |
response.list = result.data; | |
}); | |
return {all: 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
function makelist(x) {return [x]} | |
makelist(document.head[0]) | |
makelist("DKC:TF") | |
makelist("6502") | |
makelist(0xf13e455d7a1b96cd2d930e578284d889) |
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 printNumbers = () => { | |
[1,2,3].forEach((number) => console.log(`Hello, ${number}`)) | |
} | |
printNumbers() |
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 print = (list) => { | |
list.forEach((number) => console.log(`Hello, ${number}`)) | |
} | |
print([1,2,3]) | |
print(["D","K","C"]) |