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
// Available variables which can be used inside of strings. | |
// ${workspaceRoot}: the root folder of the team | |
// ${file}: the current opened file | |
// ${fileBasename}: the current opened file's basename | |
// ${fileDirname}: the current opened file's dirname | |
// ${fileExtname}: the current opened file's extension | |
// ${cwd}: the current working directory of the spawned process | |
{ | |
"version": "0.1.0", | |
"command": "go", //or absolute path: /usr/local/go/bin/go |
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 { EARTH } from 'universe'; | |
import { dj } from 'salvador-bh'; | |
const araketu = { | |
isPlaying: dj.checkOSomDaCaixa(), | |
todoMundo: async () => await EARTH.getAllPeople() | |
}; | |
if(araketu.isPLaying) { | |
araketu.todoMundo().forEach((p) => { |
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 java.nio.file.{Path, Paths} | |
import akka.stream.scaladsl.Source | |
val foo: Path = Paths.get("/images/foo.jpg") | |
val bar: Path = Paths.get("/images/bar.png") | |
val data = Multipart.FormData { | |
Source { | |
List ( | |
Multipart.FormData.BodyPart.fromPath("foo", ContentTypes.`application/octet-stream`, foo), |
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 akka.http.scaladsl.Http | |
import akka.http.scaladsl.client.RequestBuilding._ | |
val customContentType = ContentType(MediaType.customWithFixedCharset("binary", "octet-stream", HttpCharsets.`UTF-8`)) //Content-Type: binary/octet-stream | |
val someData = "{}" | |
//simple http call using above content type | |
Http().singleRequest( | |
Put("http://127.0.0.1:8080/someendpoint") |
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 akka.pattern.CircuitBreaker | |
val breaker = | |
CircuitBreaker(system.scheduler, | |
maxFailures = 5, | |
callTimeout = 10.seconds, | |
resetTimeout = 1.minute) | |
def dangerous: Future[String] = | |
breaker.withCircuitBreaker(Future(dangerousCall)) |
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
git rm -r --cached . | |
git add . | |
git commit -m "fix untracked files" |
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 com.company; | |
import java.util.Arrays; | |
public class BubbleSortExample { | |
public static void main(String[] args) { | |
int[] list = {34, 203, 3, 746, 200, 984, 198, 764, 9}; // list of numbers, aka: array | |
bubbleSort(list); |
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
displayUserTxt=">_ blzjns" | |
userBgColor="\e[7;49;32m" | |
branchColor="\e[1;35m" | |
pathColor="\e[0;33m" | |
repoColor="\e[36m" | |
boldTxt=$(tput bold) | |
noTextFmt="\e[0m" | |
if test -f /etc/profile.d/git-sdk.sh; then | |
TITLEPREFIX=SDK-${MSYSTEM#MINGW} |
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
/* | |
Using BinarySearch, | |
from a given point [x, y] on a 2D grid (WxH) find the next-best position in order to reach an element as soon as possible. | |
*/ | |
const W = readInt('Building width: '); // width of the building. | |
const H = readInt('Building height: '); // height of the building. | |
const N = readInt('Max. no of turns: '); // maximum number of turns before game over. | |
let X = readInt('Start from X: '); | |
let Y = readInt('Start from Y: '); |
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
if [ -z $mexer_c_nois ]; then | |
se_prepara | |
fi |
OlderNewer