This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val endless = subject | |
.materialize() | |
.filter { it.isOnNext } | |
.dematerialize { it } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;(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'; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class ClassObject | |
{ | |
const METHOD_NEW = 'new'; | |
private static $classObjectInstances = []; | |
private $className; | |
public static function get ($className) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function array_group_by (array $array, callable $mapping) | |
{ | |
$buckets = []; | |
foreach ($array as $item) { | |
$key = $mapping($item); | |
if (!isset($buckets[$key])) { | |
$buckets[$key] = [$item]; | |
} else { | |
$buckets[$key][] = $item; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "continuation" | |
$a = 1 | |
def test | |
$a = callcc do |cc| | |
$b = cc | |
puts $a | |
3 | |
end | |
end |
NewerOlder