This is the reference point. All the other options are based off this.
|-- app
| |-- controllers
| | |-- admin
| <!DOCTYPE html> | |
| <html> | |
| <style type="text/css"> | |
| body { | |
| font-size: 18px; | |
| background: #000; | |
| color: #fff; | |
| } | |
| #container { | |
| width: 600px; |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 Jed Schmidt <http://jed.is> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
| var http = require('http'); | |
| var path = require('path'); | |
| var fs = require('fs'); | |
| var AUDIOFILE = "./audio.ogg"; | |
| function serveWithRanges(request, response, content) { | |
| var range = request.headers.range; | |
| var total = content.length; | |
| var parts = range.replace(/bytes=/, "").split("-"); |
| // Lefalet shortcuts for common tile providers - is it worth adding such 1.5kb to Leaflet core? | |
| L.TileLayer.Common = L.TileLayer.extend({ | |
| initialize: function (options) { | |
| L.TileLayer.prototype.initialize.call(this, this.url, options); | |
| } | |
| }); | |
| (function () { | |
| <html> | |
| <head> | |
| <style> | |
| #content { | |
| height:1500; | |
| } | |
| .calendar { | |
| background-color: #CCDDFF; | |
| float: left; | |
| height:1500; |
| #!/usr/bin/python | |
| # -*- encoding:utf-8 -*- | |
| """Translate Google's Transcript into srt file. | |
| Takes google's transcript filename as argument (xml extension required). | |
| NB: to get google's transcript, use tihs URL: | |
| http://video.google.com/timedtext?lang=en&v=VIDEO_ID | |
| """ |
| // set-up a connection between the client and the server | |
| var socket = io.connect(); | |
| // let's assume that the client page, once rendered, knows what room it wants to join | |
| var room = "abc123"; | |
| socket.on('connect', function() { | |
| // Connected, let's sign-up for to receive messages for this room | |
| socket.emit('room', room); | |
| }); |
| /** | |
| * Get YouTube ID from various YouTube URL | |
| * @author: takien | |
| * @url: http://takien.com | |
| * For PHP YouTube parser, go here http://takien.com/864 | |
| */ | |
| function YouTubeGetID(url){ | |
| var ID = ''; | |
| url = url.replace(/(>|<)/gi,'').split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/); |
| package main | |
| import ( | |
| "database/sql" | |
| "errors" | |
| "fmt" | |
| _ "github.com/bmizerany/pq" | |
| "os" | |
| "regexp" | |
| "strings" |