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
# Intall Git Bash | |
# Intall conEmu | |
# Intellij : Settings->Terminal | |
"C:\Program Files\Git\bin\sh.exe" -login -i | |
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 ContravariantHeritage { | |
public static void main(String[] args) { | |
new ContravariantHeritage().launch(); | |
} | |
void launch() { | |
List<Bamboo> food = new OhPanda().getMeals(); | |
System.out.println(food); | |
} |
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 io.robusta.java.pecs; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.List; | |
/** | |
* Created by nicorama on 20/07/2017. | |
*/ | |
public class ContravariantHeritage { |
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
youtube-dl https://www.youtube.com/watch?v=BLvFgrwghkQ |
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 io.pax.cryptos.ws; | |
import javax.servlet.*; | |
import javax.servlet.annotation.WebFilter; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
import java.io.IOException; | |
/** | |
* Created by nicorama and others on 09/02/2018. |
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
-XX:ReservedCodeCacheSize=1024m | |
-XX:SoftRefLRUPolicyMSPerMB=50 | |
-Djava.net.preferIPv4Stack=true | |
-XX:+HeapDumpOnOutOfMemoryError | |
-XX:-OmitStackTraceInFastThrow | |
-server | |
-Xms2048m | |
-Xmx2048m | |
-XX:NewSize=512m | |
-XX:MaxNewSize=512m |
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
"rules": { | |
"no-consecutive-blank-lines": true, | |
"interface-over-type-literal": false, | |
"trailing-comma":false, | |
"object-literal-sort-keys":false, | |
"member-access":false, | |
"interface-name":false, | |
"arrow-parens":false | |
}, |
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
export class Optional<T> { | |
constructor(public value:T) { | |
} | |
isPresent():boolean { | |
return this.value !== null && this.value !== undefined; | |
} | |
map(bindCall):Optional<T> { |
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
require('dotenv').config() | |
const ewelink = require('ewelink-api') | |
const credentials = { | |
username: process.env.EMAIL, | |
password: process.env.PASSWORD | |
} | |
const devices = { | |
lili: process.env.LILI // device Id |
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
[Unit] | |
Description=My app | |
After=syslog.target | |
[Service] | |
User=www-data | |
Type=simple | |
ExecStart=/home/myuser/mywebsite/node_modules/next/dist/bin/next start -p $PORT | |
SuccessExitStatus=130 | |
RestartSec=3 | |
Restart=on-failure |
OlderNewer