This file contains 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
mod behavior { | |
pub trait Behavior { | |
type T; | |
type S; | |
type R: IntoIterator<Item=Self::S>; | |
fn apply(&self, &Self::T, &Self::S) -> Self::T; | |
fn react(&self, &Self::T, &Self::S) -> Self::R; | |
} |
This file contains 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
const applier = (rules, reactions) => { | |
const apply = (state, events) => { | |
return R.reduce((state, event) => { | |
const reaction = reactions(state, event); | |
const next = rules(state, event); | |
return apply(next, reaction); | |
}, state, events); | |
}; |
This file contains 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
ECMA Script 6: | |
const applier = (rules, reactions) => { | |
const apply = (state, events) => { | |
return R.reduce((state, event) => { | |
const reaction = reactions(state, event); | |
const next = rules(state, event); | |
return apply(next, reaction); | |
}, state, events); |
This file contains 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
<tag> | |
<inner_tag> | |
<awsome target="me"/> | |
</inner_tag> | |
<inner_tag> | |
<awsome target="smo1"/> | |
<awsome target="smo2"/> | |
</inner_tag> |
This file contains 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
call __main | |
movl $1, -4(%rbp) | |
jmp .L2 | |
.L3: | |
sall -4(%rbp) | |
movl -4(%rbp), %eax | |
movl %eax, %edx | |
movq .refptr._ZSt4cout(%rip), %rcx | |
call _ZNSolsEi | |
leaq .LC0(%rip), %rdx |
This file contains 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
#ifndef _CPLUSPLUS_H | |
#define _CPLUSPLUS_H | |
/* | |
This is applicable if using virtual inheritance. | |
*/ | |
__extension__ typedef int __guard __attribute__((mode (__DI__))); | |
extern "C" int __cxa_guard_acquire(__guard *); | |
extern "C" void __cxa_guard_release (__guard *); |
This file contains 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
rear tyre is tired. | |
but front is ok. | |
internet connection is wired. | |
and it makes our own day. | |
the time will stuck in traffic. | |
once our connections go down. | |
you just can be provided by graphic. | |
but in lie legenda will drown. |
This file contains 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.myzone.nopebook; | |
import java.util.function.Function; | |
import static org.mockito.Matchers.*; | |
import static org.mockito.Mockito.*; | |
/** | |
* Created by myzone on 12/3/13. | |
*/ |
This file contains 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
# | |
# A fatal error has been detected by the Java Runtime Environment: | |
# | |
# SIGSEGV (0xb) at pc=0xb6ec66da, pid=16590, tid=468130624 | |
# | |
# JRE version: Java(TM) SE Runtime Environment (8.0-b116) (build 1.8.0-ea-b116) | |
# Java VM: Java HotSpot(TM) Server VM (25.0-b58 mixed mode linux-x86 ) | |
# Problematic frame: | |
# V [libjvm.so+0x68c6da] Method::bci_from(unsigned char*) const+0xa | |
# |
This file contains 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
javascript: $(".nav, #queue_title").css("display", "none"); // hide navigation-bar | |
javascript: $(".nav, #queue_title").css("display", "block"); // show navigation-bar |
NewerOlder