Skip to content

Instantly share code, notes, and snippets.

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

Victoria Nadasdi yitsushi

🏳️‍⚧️
View GitHub Profile
var TEXT = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec accumsan mattis nibh, sit amet ultricies enim congue a. Pellentesque congue libero sit amet velit pulvinar feugiat. Etiam sagittis erat vel est lacinia, ut bibendum quam mattis. Vestibulum lacinia ante sem, sit amet convallis lorem elementum sit amet. Phasellus a fringilla orci, eget placerat sem. Curabitur tempus sed nibh a iaculis. Fusce ut sapien eu massa euismod elementum. Etiam nisi magna, tempus non dictum eu, feugiat eu lacus. Vivamus tempor lacus eget nisl vulputate dignissim. Donec ut tincidunt ipsum, ac convallis neque."
var soundex = function (s) {
var a = s.toLowerCase().split('')
f = a.shift(),
r = '',
codes = {
a: '', e: '', i: '', o: '', u: '',
b: 1, f: 1, p: 1, v: 1,
Verifying myself: My Bitcoin username is +androgeek. https://onename.io/androgeek
Verifying myself: My Bitcoin username is +yitsushi. https://onename.io/yitsushi
@yitsushi
yitsushi / index.html
Created August 6, 2014 18:27
CSS-ben :target
<!DOCTYPE HTML>
<html lang="hu">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="app.css">
<title>CSS-ben :target?</title>
</head>
<body>
<nav>
<a href='#a1'>Hogyan?</a>
<?php
$order_id = 1;
$item = array('partnumber' => 1, 'name' => 1, 'quantity' => 1, 'id' => 1);
$quantity = array('1' => 1);
function generateUrl($a, $b, $c) {
return "jahskdjahskjdhasjkhdkjashdjkhashdjkash";
}
<?php
function wsplitAlt($value, $limit)
{
$limited = substr($value, 0, $limit);
$nextSpaceValue = substr($value, 0, strpos($value, ' ', strrpos($limited, ' ') + 1));
if ($limited === $nextSpaceValue) {
return $limited;
}
@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') {
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]();
<!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;
}
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ű