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
class Example { | |
void Main() { | |
Listener refectListener = new ReflectionListener() { | |
void received(Connection connection, OneMessage message) { | |
} |
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
def p_configs(alen): | |
if alen == 0: | |
return 1 | |
totals = 0 | |
if alen >= 1: | |
totals += p_configs(alen - 1) |
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
def print_confs(c_len, c_ones): | |
inner_print_confs("", c_len, c_ones) | |
def inner_print_confs(c_prefix, c_len, c_ones): | |
if c_len == c_ones: | |
print(c_prefix + "1" * c_len) |
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 main | |
import ( | |
"fmt" | |
"time" | |
"github.com/satori/go.uuid" | |
) |
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
class Option(object): | |
pass | |
class Some(Option): | |
def __init__(self, value): | |
if value is None: | |
raise "Lol cant have some None" | |
self.value = value | |
def map(self, mapper): |
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
def make_io(res): | |
def new_io(): | |
print("calculated {}".format(res)) | |
return res | |
print("created {}".format(res)) | |
return new_io | |
testers = [make_io(n) for n in range(10)] |
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 main | |
import ( | |
"fmt" | |
"math/rand" | |
) | |
type arbitraryData struct { | |
data []byte | |
} |
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
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
String emojiString = "😋 Get Emoji — All Emojis to ✂ Copy and 📋 Paste 👌"; | |
String emoniRegex = "([\\u20a0-\\u32ff\\ud83c\\udc00-\\ud83d\\udeff\\udbb9\\udce5-\\udbb9\\udcee])"; | |
String extractedEmojis = ""; | |
Matcher matcher = Pattern.compile(emoniRegex).matcher(emojiString); |
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
g=git | |
ga='git add' | |
gaa='git add --all' | |
gap='git apply' | |
gapa='git add --patch' | |
gau='git add --update' | |
gav='git add --verbose' | |
gb='git branch' | |
gbD='git branch -D' | |
gba='git branch -a' |
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.ragnaros.reactor.utils; | |
import com.badlogic.gdx.Gdx; | |
import java.util.ArrayList; | |
import java.util.Collection; | |
import java.util.List; | |
import java.util.concurrent.Callable; | |
import java.util.concurrent.CountDownLatch; | |
import java.util.concurrent.ExecutionException; |
OlderNewer