Skip to content

Instantly share code, notes, and snippets.

View mastern2k3's full-sized avatar
🙈
Coding blindfolded

Nitzan Zada mastern2k3

🙈
Coding blindfolded
View GitHub Profile
package main
import "fmt"
type Lol struct {
a,b,c int
d string
}
func main() {
@mastern2k3
mastern2k3 / HomeController.java
Last active July 23, 2019 14:42
Super simple spring index controller for available paths
import java.util.stream.Stream;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;

Keybase proof

I hereby claim:

  • I am mastern2k3 on github.
  • I am mastern2k3 (https://keybase.io/mastern2k3) on keybase.
  • I have a public key ASC3KgSRgR5hx8Twbbj_8MhTniWKYdAVNost1OMYxPxn3wo

To claim this, I am signing this object:

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;
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'
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);
@mastern2k3
mastern2k3 / makeBatch.go
Last active December 4, 2018 15:18
a skeleton algorithm to batch sizable objects into predefined size limits in go language
package main
import (
"fmt"
"math/rand"
)
type arbitraryData struct {
data []byte
}
@mastern2k3
mastern2k3 / generator_lists_example.py
Created October 9, 2018 12:19
example for list comprehension and generator behavior
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)]
@mastern2k3
mastern2k3 / option.py
Created August 12, 2018 13:53
FP option category in python
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):
@mastern2k3
mastern2k3 / test_channel_load.go
Created July 18, 2018 13:28
Tester program for a channel and a cosumer
package main
import (
"fmt"
"time"
"github.com/satori/go.uuid"
)