Skip to content

Instantly share code, notes, and snippets.

View kahlil's full-sized avatar

Kahlil Lechelt kahlil

View GitHub Profile
{
"installed_packages":
[
"Alignment",
"Base16 Color Schemes",
"ColorPicker",
"GitGutter",
"HTML-CSS-JS Prettify",
"InactivePanes",
"MaxPane",
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Copyright (C) 2014 ADDY OSMANI <addyosmani.com>
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
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
@kahlil
kahlil / interesting-related-to-angular.md
Last active August 29, 2015 14:26
During current researches into how to write Angular 1 so to reduce friction when transitioning to Angular 2 I came across some interesting resources and facts. One of the most interesting discoveries was that RxJS Observables and Subjects are being embraced.
@kahlil
kahlil / introrx.md
Last active August 29, 2015 14:27 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing

The introduction to Reactive Programming you've been missing

(by @andrestaltz)

So you're curious in learning this new thing called Reactive Programming, particularly its variant comprising of Rx, Bacon.js, RAC, and others.

Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:

Rx.Observable.prototype.flatMapLatest(selector, [thisArg])

Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.

@kahlil
kahlil / config.php
Created May 27, 2010 19:08
PHP: Implementation for Contao CMS hooks to change various URLs
<?php if (!defined('TL_ROOT')) die('You can not access this file directly!');
$GLOBALS['TL_HOOKS']['generateFrontendUrl'][] = array('RDKHooks', 'myGenerateFrontendUrl');
$GLOBALS['TL_HOOKS']['getPageIdFromUrl'][] = array('RDKHooks', 'myGetPageIdFromUrl');
@kahlil
kahlil / shorten_strings.php
Created June 29, 2010 13:43
Shorten Strings and leave the last word complete
<?php
function shorten_string ($string, $string_max_length = 150)
{
if (empty($string) == true)
{
return('Es wurde kein String an die Function: shorten_string() übergeben!');
}
else
{
@kahlil
kahlil / ajaxifyTabs.js
Created June 30, 2010 09:08
Ajaxify a tab navigation
// Dann im Javascript sieht’s so aus:
// hier erst mal initialisiert und definiert:
var AjaxContent = function(){
var container_div = '';
var content_div = '';
return {
getContent : function(url){
$(container_div).html('<br><br><br><center><p><img src="/img/loader_big_fl.gif" /></p></center>').animate({opacity:0.2}, //Turn the opacity to 0
@kahlil
kahlil / slackbot.md
Last active September 21, 2015 12:34 — forked from boennemann/slackbot.md

guys, dudes, bros

I think you mean team...

I think you mean squad..

I think you mean gang...

I think you mean pals...