CREATE KEYSPACE IF NOT EXISTS resto_Fez
WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor': 1};
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 io.github.chermehdi.lib.math; | |
import java.util.Arrays; | |
/** | |
* @author Egor Kulikov ([email protected]) | |
*/ | |
public class Matrix { | |
public static long mod = Long.MAX_VALUE; |
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 io.github.chermehdi.lib.math; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
public class Ints { | |
public static final int INF = Integer.MAX_VALUE >> 1; |
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 io.github.chermehdi.lib.string; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.function.Function; | |
import java.util.function.Predicate; | |
public class StringUtils { |
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 io.github.chermehdi.lib; | |
import io.github.chermehdi.lib.ds.CountingMap; | |
import java.lang.reflect.Array; | |
import java.util.Arrays; | |
import java.util.HashMap; | |
import java.util.HashSet; | |
import java.util.List; | |
import java.util.Random; |
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 io.github.chermehdi.lib.io; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.util.InputMismatchException; | |
public class InputReader implements FastIO { | |
private InputStream stream; | |
private static final int DEFAULT_BUFFER_SIZE = 1 << 16; |
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
public class MaxAndElectricalPanel { | |
public void solve(int testNumber, FastReader in, PrintWriter out) { | |
int n; | |
int INC; | |
int increment(int cur) { | |
return Math.min(n, cur + INC); | |
} | |
int decrement(int cur) { | |
return Math.max(1, cur - INC); | |
} |
- Day 1:
- Recap
HTML5
andCSS3
specifications: along with new elements added in html5, andflex box
,css variables
andcss grid
- Read about a CSS Preprocessor such as
sass
orless
- Resources :
- Recap
- Grafikart: css grid
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
/** | |
* @author chermehdi | |
*/ | |
@ExtendWith(InjectionExtension.class) | |
public class TestExtension { | |
@Test | |
void testExtension(DemoService service) { | |
assertNotNull(service); | |
} |
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
public class InjectionExtension implements ParameterResolver { | |
private SeContainer container; | |
/** | |
* boot the CDI context | |
*/ | |
public InjectionExtension() { | |
container = SeContainerInitializer.newInstance().initialize(); | |
} |