Symbol | Explanation | Hint |
---|---|---|
\/ |
Right-leaning Either | Split ways, go one way or the other |
-\/ |
Left value of \/ |
- is on the left side |
\/- |
Right value of \/ |
- is on the right side |
>>= |
flatMap |
shove result into |
>> |
flatMap(_ => ..) |
shove into, but ignore the result |
|@| |
Applicatives into Tuple | Scream operator |
|+| |
Append via Monoid | + was taken |
`> | ` | fa.map(_ => b) |
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
val file = "/Users/user/Downloads/waves.log" | |
val regex = s"${Regex.quote("http://.wvservices.com:6869")}(/.*)".r.unanchored | |
val result = Source | |
.fromFile(file) | |
.getLines() | |
.collect { case regex(url) ⇒ url } | |
.map(s => "\"" + s + "\"") | |
.toSet | |
.mkString(",\n") | |
println(result) |
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
from telethon import TelegramClient, events, sync | |
import socks, logging, asyncio, abc | |
api_id = 17349 | |
api_hash = '344583e45741c457fe1862106095a5eb' | |
proxy = (socks.SOCKS5, 'deimos.public.opennetwork.cc', 1090, True, '577372493', 'Hm2NcWbp') | |
# proxy = (socks.SOCKS5, 'localhost', 9050) | |
phone = "+7телефон" | |
password = "пароль" |
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.io.{OutputStream, PrintWriter} | |
import akka.NotUsed | |
import akka.actor.{ActorRef, Props} | |
import akka.stream.scaladsl.Source | |
import com.gargoylesoftware.htmlunit.html._ | |
import com.gargoylesoftware.htmlunit._ | |
import com.karasiq.common.{StringUtils, ThreadLocalFactory} | |
import com.karasiq.fileutils.PathUtils | |
import com.karasiq.gallerysaver.scripting.internal.{GallerySaverContext, Loaders, LoaderUtils} |
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
private final native public volatile static transient synchronized protected abstract class FactoryFactoryFactoryFacade extends AbstractBuilderIteratorBeanDecoratorInterceptorFactoryFactory implements AbstractFactoryStrategyIteratorProxy, AbstractFactoryFactoryListener { | |
SingletonDecoratorAdapter singletonDecoratorAdapter = new SingletonDecoratorAdapter(); | |
AbstractFactoryFactorySingletonBuilderProxy abstractFactoryFactorySingletonBuilderProxy = new AbstractFactoryFactorySingletonBuilderProxy(); | |
VisitorBeanSingletonProxyAdvisorBuilderFactoryFactory visitorBeanSingletonProxyAdvisorBuilderFactoryFactory = new VisitorBeanSingletonProxyAdvisorBuilderFactoryFactory(); | |
IteratorListenerBean iteratorListenerBean = new IteratorListenerBean(); |
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.*; | |
import java.lang.*; | |
import java.io.*; | |
public class Main { | |
static { | |
swap("Hello World", "ПИЗДОС!"); | |
} | |
public static void swap(Object a, Object b) { |
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.*; | |
import java.lang.*; | |
import java.io.*; | |
public class Main { | |
public static void swap(Object a, Object b) { | |
try { | |
java.lang.reflect.Field value = a.getClass().getDeclaredField("value"); | |
value.setAccessible(true); | |
Object tmp = value.get(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
#include <stdio.h> | |
void a0() { | |
puts("Hui sasi"); | |
} | |
void __attribute__ ((noinline)) r(void ***a) { | |
a[2] = *(a[1] = (a[0] = &a) - 1); | |
*a[1] = a0; *a[0] = a[2]; | |
} |
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
public class ArrayUtil { | |
private static final Object[] EMPTY = new Object[0] | |
; | |
public static Object[] createArray() { | |
return EMPTY; | |
} | |
public static Object[] createArray(Object arg0) { | |
return new Object[]{ |
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
#include "MyStrategy.h" | |
#include "mt19937ar.h" | |
#define _USE_MATH_DEFINES | |
#include <cmath> | |
#include <cstdlib> | |
#include <iostream> | |
#include <algorithm> | |
#include <queue> | |
#include <time.h> |