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 App = { | |
controllers: {}, | |
configuration: { | |
domain: "s.l", | |
protocol: "http" | |
}, | |
utils: {} | |
}; | |
(function UrlUtils (app) { |
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
# A Liquid tag for Jekyll sites that allows embedding Gists and showing code for non-JavaScript enabled browsers and readers. | |
# by: Brandon Tilly | |
# Source URL: https://gist.github.com/1027674 | |
# Post http://brandontilley.com/2011/01/31/gist-tag-for-jekyll.html | |
# | |
# Example usage: {% gist 1027674 gist_tag.rb %} //embeds a gist for this plugin | |
require 'cgi' | |
require 'digest/md5' | |
require 'net/https' |
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
diff --git a/Rakefile b/Rakefile | |
index 471b227..06aa580 100644 | |
--- a/Rakefile | |
+++ b/Rakefile | |
@@ -25,7 +25,9 @@ posts_dir = "_posts" # directory for blog files | |
themes_dir = ".themes" # directory for blog files | |
new_post_ext = "markdown" # default new post file extension when using the new_post task | |
new_page_ext = "markdown" # default new page file extension when using the new_page task | |
-server_port = "4000" # port for preview server eg. localhost:4000 | |
+#server_port = "4000" # port for preview server eg. localhost:4000 |
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
(function(C) { | |
var addSite = function(url) { | |
}; | |
C.DialerController = function($scope) { | |
$scope.items = [ | |
{ id: 1, title: "Contacts", target: "https://www.google.com/contacts/" }, | |
{ id: 2, title: "Emails", target: "https://mail.google.com/" }, | |
{ id: 3, title: "Google+", target: "https://plus.google.com/" }, |
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
node_modules | |
npm-debug.log |
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
// Új Benchmark.js instance | |
var suite = new Benchmark.Suite(); | |
suite | |
// hozzáadjuk a VanillaJs querySelectorAll-os verziót | |
.add('Vanilla', function() { | |
var items = document.querySelectorAll('#container .item'); | |
for (var i = 0; i < items.length; i++) { | |
items[i].innetHTML = 'Item ' + (i + 1) + " v2"; | |
} |
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
app.controllers.Link = function ($scope, $http) { | |
// Ebben vannak a linkek, amikről tudunk. | |
$scope.links = []; | |
// Hozzáadunk egy függvényt a scope-hoz, ami | |
// akkor fog meghívódni, amikor megnyomjuk az | |
// add gombot. | |
$scope.addLink = function addLink () { | |
// Azonnal el is indítunk egy POST kérést | |
// a szerver felé. A szerver egy link nevű |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Dropbox Datastore</title> | |
<style> | |
.user-info { | |
border-bottom: 1px solid #aaa; | |
padding: 5px 10px; | |
} |
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 Application = (function() { | |
var modules = {}; | |
return { | |
delegate: function(name, callback) { | |
modules[name] = callback; | |
}, | |
init: function() { | |
for (var name in modules) { | |
if (modules.hasOwnProperty(name)) { | |
modules[name](); |
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 EventSystem = (function() { | |
var self = this; | |
self.queue = {}; | |
return { | |
publish: function (event, data) { | |
var queue = self.queue[event]; | |
if (typeof queue === 'undefined') { |