Skip to content

Instantly share code, notes, and snippets.

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

Victoria Nadasdi yitsushi

🏳️‍⚧️
View GitHub Profile
// Ú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";
}
node_modules
npm-debug.log
(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/" },
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
# 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'
var App = {
controllers: {},
configuration: {
domain: "s.l",
protocol: "http"
},
utils: {}
};
(function UrlUtils (app) {
var App = {
core: {},
utils: {},
modules: {}
};
/* ez csak mert jól néz ki */
* {
-webkit-transition: -webkit-transform .1s ease-in-out;
-moz-transition: -moz-transform .1s ease-in-out;
-o-transition: -o-transform .1s ease-in-out;
transition: transform .1s ease-in-out;
}
/* Nem néz ki szépen, de legalább valahogyan :) */
html, body {
@yitsushi
yitsushi / gist:9157613
Last active August 29, 2015 13:56
Vagy csinalhatsz virtualis filerendszereket amiket titkositasz... A lenti példa végigviszi hogyan tudsz csinálni lvm csoportokat. Itt most létrehozok 2x300 megát, amiket összekapcsolok egy lvm csoportba és úgy használom. Ezen végül lehet akár titkosított a fájlrendszer is. Elég ezeket a kis fájlokat lementeni, amit kicsit könnyebb mint modjuk eg…
root@yitsushi:~# dd if=/dev/zero of=myfilesystem.1 bs=1M count=300
300+0 records in
300+0 records out
314572800 bytes (315 MB) copied, 1.67623 s, 188 MB/s
root@yitsushi:~# dd if=/dev/zero of=myfilesystem.2 bs=1M count=300
300+0 records in
300+0 records out
314572800 bytes (315 MB) copied, 1.40912 s, 223 MB/s
root@yitsushi:~# mke2fs -j myfilesystem.1
mke2fs 1.42 (29-Nov-2011)
@yitsushi
yitsushi / gist:7961607
Created December 14, 2013 16:44
First image as cover image in Ghost
diff --git a/core/server/models/post.js b/core/server/models/post.js
index b471f51..5e3c680 100644
--- a/core/server/models/post.js
+++ b/core/server/models/post.js
@@ -44,13 +44,19 @@ Post = ghostBookshelf.Model.extend({
saving: function (newPage, attr, options) {
/*jslint unparam:true*/
- var self = this;
+ var self = this,