Skip to content

Instantly share code, notes, and snippets.

View yitsushi's full-sized avatar
🏳️‍⚧️

Victoria Nadasdi yitsushi

🏳️‍⚧️
View GitHub Profile
var App = {
controllers: {},
configuration: {
domain: "s.l",
protocol: "http"
},
utils: {}
};
(function UrlUtils (app) {
# 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'
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
(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/" },
node_modules
npm-debug.log
// Ú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";
}
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ű
<!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;
}
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]();
@yitsushi
yitsushi / EventSystem.js
Created May 6, 2014 09:52
EventSystem that I use with React.js to communicate between components
var EventSystem = (function() {
var self = this;
self.queue = {};
return {
publish: function (event, data) {
var queue = self.queue[event];
if (typeof queue === 'undefined') {