Skip to content

Instantly share code, notes, and snippets.

View datayja's full-sized avatar
:shipit:
Shipping it

Markéta Lisová datayja

:shipit:
Shipping it
View GitHub Profile
#import <UIKit/UIKit.h>
@interface UIBarButtonItem (GSTBackButtonFactory)
+ (UIBarButtonItem *)backButtonItemWithTitle:(NSString *)backButtonTitle;
@end
@datayja
datayja / InsignificantWhitespaceFilter.php
Created July 15, 2013 18:10
Insignificant whitespace postprocessor filter for Coral programming language, a part of proof-of-concept PHP implementation
<?php
namespace Coral\Compiler\Postprocessor;
use Coral\Compiler\Tokenizer\Tokens\Token;
use Coral\Compiler\Tokenizer\Tokens\WhitespaceToken;
use Coral\Internal\Object;
class InsignificantWhitespaceFilter extends Object implements Filter
{
public function apply_filter ($tokens)
<?php
namespace Coral\Compiler\Engine\AST;
use Coral\Compiler\Tokenizer\Constants\Operator;
use Coral\Compiler\Tokenizer\Tokens\OperatorToken;
class OperatorNode extends Node
{
const UNARY = 'unary';
const BINARY = 'binary';
package bar.foo.example.lib.android;
import android.app.ActionBar;
import android.app.Fragment;
import android.app.FragmentTransaction;
import android.content.Context;
import java.lang.ref.WeakReference;
public class FragmentsTabListener<T extends Fragment> implements ActionBar.TabListener {
package com.coral_lang.lib.std;
import java.util.NoSuchElementException;
import java.util.Objects;
import java.util.Optional;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Predicate;
import java.util.function.Supplier;
;(function ($) {
"use strict";
var observers = [];
var checkedNotification = function (notification) {
if (notification.hasOwnProperty('name')) {
return $.extend({id: null}, notification);
} else {
throw 'notification must have a name';
}
val endless = subject
.materialize()
.filter { it.isOnNext }
.dematerialize { it }