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
| #!/usr/bin/python | |
| import os | |
| file = open("MethodLimit.java", "w") | |
| file.write("import java.lang.Math;\n") | |
| file.write("public class MethodLimit {\n") | |
| file.write("\tpublic static void main(String[] args){\n") | |
| file.write("\t\tSystem.out.println(\"Starting\");") | |
| file.write("\t\tdouble i;") |
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 functional | |
| sealed class Either<L, R> { | |
| abstract fun fold(left: (L) -> Unit, right: (R) -> Unit) | |
| abstract fun <ML> mapLeft(f: (L) -> ML): Either<ML, R> | |
| abstract fun <MR> mapRight(f: (R) -> MR): Either<L, MR> |
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 functional; | |
| public interface Consumer0 { | |
| void consume(); | |
| } |
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
| <?xml version="1.1" encoding="UTF-8"?> | |
| <!DOCTYPE keyboard SYSTEM "file://localhost/System/Library/DTDs/KeyboardLayout.dtd"> | |
| <!--Last edited by Ukelele version 3.3.0.249 on 2019-01-30 at 18:01 (GMT-2)--> | |
| <keyboard group="126" id="-7888" name="Ademar_ptBR" maxout="1"> | |
| <layouts> | |
| <layout first="0" last="0" mapSet="a8" modifiers="30"/> | |
| </layouts> | |
| <modifierMap id="30" defaultIndex="0"> | |
| <keyMapSelect mapIndex="0"> | |
| <modifier keys="command?"/> |
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
| import org.mockito.* | |
| import org.mockito.stubbing.OngoingStubbing | |
| inline fun <reified T> mock() = Mockito.mock(T::class.java) as T | |
| inline fun <reified T> mock(body: T.() -> Unit) = (Mockito.mock(T::class.java) as T).apply { | |
| body() | |
| } | |
| @CheckReturnValue |
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
| *.swp |
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
| #!/bin/bash | |
| API_KEY="$(perl -MURI::Escape -e 'print uri_escape(" <<< HERE YOUR API KEY >>> ");' "$2")" | |
| API_SECRET="$(perl -MURI::Escape -e 'print uri_escape(" <<< HERE YOUR API SECRET >>> ");' "$2")" | |
| CONSUMER_URL=$API_KEY:$API_SECRET | |
| CONSUMER_URL_64=`echo -n $CONSUMER_URL | base64` | |
| curl -s \ | |
| -H "User-Agent: My Twitter App v1.0.23" \ | |
| -H "Authorization: Basic $CONSUMER_URL_64" \ | |
| --data-urlencode grant_type=client_credentials \ | |
| --compressed \ |
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
| -Dfile.encoding=UTF-8 | |
| -Didea.paths.selector=AndroidStudio | |
| -Didea.platform.prefix=AndroidStudio | |
| -Djava.net.preferIPv4Stack=true | |
| -Djna.boot.library.path= | |
| -Djna.debug_load.jna=true | |
| -Djna.debug_load=true | |
| -Djna.nosys=true | |
| -Djsse.enableSNIExtension=false | |
| -Dsun.io.useCanonCaches=false |