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
@echo off | |
rem tested on Windows Vista | |
setlocal enabledelayedexpansion | |
:: conerti totues les videos du dossier et le concaténe en all.mpg | |
:: | |
:: | |
echo ceci va concertir tout les fichiers videos du dossier . | |
set /p rep=Etes vous sur? (y/n) | |
if not "%rep%"=="y" exit /b |
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 jopenid.sample; | |
import java.io.IOException; | |
import javax.servlet.Filter; | |
import javax.servlet.FilterChain; | |
import javax.servlet.FilterConfig; | |
import javax.servlet.ServletException; | |
import javax.servlet.ServletRequest; | |
import javax.servlet.ServletResponse; |
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 StringReduceTest { | |
private static final Charset UTF8 = Charset.forName("UTF-8"); | |
public String reduceStringUTF8Size(String s, int size) { | |
while(s.getBytes(UTF8).length >size){ | |
s=s.substring(0,s.length()-1); | |
} | |
return s; | |
} | |
public String reduceStringUTF8Size2(String s, int size) throws CharacterCodingException { |
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 fr.warlog.util; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.StringReader; | |
import java.util.ArrayList; | |
import java.util.Deque; | |
import java.util.LinkedHashMap; | |
import java.util.LinkedList; | |
import java.util.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
package com.viseo.cv.jpa; | |
import java.util.HashMap; | |
import java.util.Map; | |
import javax.persistence.EntityManager; | |
import javax.persistence.EntityManagerFactory; | |
import javax.persistence.Persistence; | |
import javax.persistence.Query; |
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
sc stop WSearch | |
sc stop hidserv | |
sc stop napagent | |
sc stop iphlpsvc | |
sc stop TrkWks | |
sc stop CscService | |
sc stop WdiSystemHost | |
sc stop PcaSvc | |
sc stop DPS |
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 debug; | |
import java.lang.reflect.Field; | |
import java.lang.reflect.Member; | |
import java.lang.reflect.Modifier; | |
import java.lang.reflect.ParameterizedType; | |
import java.lang.reflect.Type; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Collection; |
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
@echo off | |
set JAVA_HOME=d:\opt\jdk | |
cd /D %JAVA_HOME% | |
call :treeProcess | |
goto :eof | |
:treeProcess | |
rem Do whatever you want here over the files of this subdir, for example: | |
for %%i in (*.pack) do (echo "unpacking %%i" & %JAVA_HOME%\bin\unpack200 "%%i" "%%~ni.jar" & del "%%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
/** | |
* Group on 2 levels | |
*/ | |
protected <K,V> Map<K, Map<K,List<V>>> groupByFields2 (List<V> modelList,Function<? super V, ? extends K> classifier1,Function<? super V, ? extends K> classifier2) { | |
Collector<V, ?, Map<K, List<V>>> groupingBy2 = Collectors.groupingBy(classifier2); | |
Collector<V, ?, Map<K, Map<K,List<V>>>> groupingBy = Collectors.groupingBy( | |
classifier1 | |
,groupingBy2 | |
); |
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
# | |
# use npm install js-yaml | |
const fs = require('fs') | |
const jsyaml = require('js-yaml') | |
const mkdirSync = function (dirPath) { | |
try { | |
fs.mkdirSync(dirPath) |
OlderNewer