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> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Hello World!</title> | |
</head> | |
<body> | |
<h1>Hello World!</h1> | |
<h2>Status <span id="status">Offline</span></h2> | |
<!-- All of the Node.js APIs are available in this renderer process. --> |
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
<html> | |
<head> | |
<link href="style.css" rel="stylesheet" /> | |
</head> | |
<body> | |
<h3>Graph: Dragons</h3> | |
<div class="legend legendX"><div>Scariness ️→</div></div> | |
<div class="legend legendY"><div>Actual Power →</div></div> | |
<!-- http://bit.ly/neuralvanilla --> | |
<canvas id="wowacanvas" width="1000" height="1000"></canvas> |
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
/** | |
* Module dependencies | |
*/ | |
var express = require('express'); | |
var fs = require('fs'); | |
var mongoose = require('mongoose'); | |
var Schema = mongoose.Schema; | |
// img path |
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
/** | |
* Module dependencies | |
*/ | |
var express = require('express'); | |
var fs = require('fs'); | |
var mongoose = require('mongoose'); | |
var Schema = mongoose.Schema; | |
// img path |
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 Ping = (function(){ | |
function Ping (url, pings){ | |
this.url = url; | |
this.pings = pings || 3; | |
this.totalPings = 0; | |
this.totalSuccess = 0; | |
this.totalError = 0; | |
this.time = 0; |
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 (angular, $, document) { | |
'use strict'; | |
angular.module('jPlayerModule', []) | |
.factory('jPlayer', function () { | |
return function (instance) { | |
var | |
me = instance, | |
events = { | |
ready: [], | |
setMedia: [], |
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
myApp.directive("jplayer", ['$window', 'PlayerService', function ($window, PlayerService) { | |
return { | |
restrict: "E", | |
// Have our own scope - we only want to watch the service and not conflict with other scopes | |
scope: {}, | |
// Serve up some html with our player | |
templateUrl: "/jplayer-template.html", | |
link: function (scope, element, attrs) { | |
// An element on the page to attach the jPlayer to. Could also use "element" from linkFN ^ | |
var jPlayer = angular.element("#jquery_jplayer_1").jPlayer(); |
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
<div id="jquery_jplayer_1" class="jp-jplayer"></div> | |
<div id="jp_container_1" class="jp-audio" role="application" aria-label="media player"> | |
<div class="jp-type-single"> | |
<div class="jp-gui jp-interface"> | |
<div class="jp-volume-controls"> | |
<button class="jp-mute" role="button" tabindex="0">mute</button> | |
<button class="jp-volume-max" role="button" tabindex="0">max volume</button> | |
<div class="jp-volume-bar"> | |
<div class="jp-volume-bar-value"></div> | |
</div> |
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
myApp.service("PlayerService", [function () { | |
this.IsPaused = false; | |
this.CurrentTrack = null; | |
this.Play = function (track) { | |
this.CurrentTrack = track; | |
this.IsPaused = false; | |
}; | |
this.Pause = function () { | |
this.IsPaused = !this.IsPaused; |
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
<?php | |
$path = realpath('/home/user/Music'); | |
$ite = new RecursiveDirectoryIterator($path); | |
$files = array(); | |
foreach (new RecursiveIteratorIterator($ite) as $filename => $cur) { | |
if($cur->isDir() || $cur->getExtension() != 'mp3') { |
NewerOlder