Skip to content

Instantly share code, notes, and snippets.

View nicolas-zozol's full-sized avatar
🙂

Nicolas Zozol nicolas-zozol

🙂
View GitHub Profile
@nicolas-zozol
nicolas-zozol / .sh
Last active April 22, 2021 09:49
Bash shortcuts
export HOME="~/" # or change on windows
export CODE="/c/code/"
export TOOLS="$CODE/tools/"
### Bash Aliases
alias grep='grep --color=auto'
alias ls='ls --color=auto'
alias ll='ls -alF'
@nicolas-zozol
nicolas-zozol / .sh
Created April 2, 2017 15:22
Various configuration tricks on W7 or MacOS
# Intall Git Bash
# Intall conEmu
# Intellij : Settings->Terminal
"C:\Program Files\Git\bin\sh.exe" -login -i
@nicolas-zozol
nicolas-zozol / pecs.java
Last active July 20, 2017 13:19
Failing PECS conversion
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 {
@nicolas-zozol
nicolas-zozol / pecs.java
Created July 20, 2017 12:32
Working PECS heritage
public class ContravariantHeritage {
public static void main(String[] args) {
new ContravariantHeritage().launch();
}
void launch() {
List<Bamboo> food = new OhPanda().getMeals();
System.out.println(food);
}
-XX:ReservedCodeCacheSize=1024m
-XX:SoftRefLRUPolicyMSPerMB=50
-Djava.net.preferIPv4Stack=true
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-server
-Xms2048m
-Xmx2048m
-XX:NewSize=512m
-XX:MaxNewSize=512m
youtube-dl https://www.youtube.com/watch?v=BLvFgrwghkQ
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.
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
version="2.0">
<persistence-unit name="funkopop" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
<properties>
<property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost:3306/funkopop" />
<property name="javax.persistence.jdbc.user" value="admin" />
@nicolas-zozol
nicolas-zozol / responds-to-more.scss
Last active March 5, 2021 09:14
Sass-responds-to
// Using media-query to generate some common hide/show css classes.
// Work in Progress, works with my projects.
// !important is sometimes needed with bootstrap, you should try to remove it first.
// Most of the time, I just pick one between laptop or desktop
// Extra small screen / phone ;
$mobileMax: 480px;
// Small screen / tablet
$tabletMax: 850px;
// laptops :
"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
},