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
setInterval(() => (window.prevFocus !== document.activeElement) && (console.log(document.activeElement),window.prevFocus=document.activeElement), 500) |
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
const countListeners = node => Array.from(node.children).reduce((acc, curr) => acc + countListeners(curr), Object.values(getEventListeners($0)).map(i => i.length).reduce((acc, curr) => acc + curr, 0)) |
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
Lead Changes | |
Lead creation | |
ADAM batch upload -> NOT_YET_ISSUED | |
NOT_YET_ISSUED | |
Start campaign -> OPEN_AWAITING_ASSIGNMENT | |
Closed by ADAM -> CLOSED | |
OPEN_AWAITING_ASSIGNMENT | |
Assign -> OPEN_AWAITING_ACTION | |
Closed by ADAM -> CLOSED | |
Lead expired -> CLOSED |
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
Reunion | |
Menu* | |
My Photos -> My Photos | |
My Photos | |
Menu -> Menu | |
My Photos Home* | |
# Upload | |
Send -> Selection Start | |
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
function docker-compose() { | |
if ($pwd.Path.StartsWith('C:\Users')) { | |
$projectName = Split-Path "$pwd" -leaf | |
$dockerPath = "/c" + $($($pwd -replace "^[a-z]:(.*)$",'$1') -replace "\\","/") | |
$dockerCmd = "docker run -v $dockerPath" + ":/$dockerPath -w $dockerPath -v /var/run/docker.sock:/var/run/docker.sock -e COMPOSE_PROJECT_NAME=$projectName -ti --rm dduportal/docker-compose:latest $args" | |
Write-Host $dockerCmd | |
Invoke-Expression $dockerCmd | |
} else { | |
Write-Error 'You must be under C:\Users, otherwise fileshare to boot2docker will not work!' | |
} |
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
<section class="some"> | |
<p class="some__element">Hello</p> | |
</section> |
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
<div class="fonts-loaded"> | |
<p class="para"> | |
</p> | |
</div> |
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
#!/usr/bin/env bash | |
function setJavaHome { | |
if grep -q "JAVA_HOME" /etc/environment; then | |
echo "JAVA_HOME already set..." | |
else | |
echo "Setting JAVA_HOME..." | |
echo "JAVA_HOME=$1" >> /etc/environment | |
fi | |
} |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> | |
<logger name="org.hibernate.SQL"> | |
<level value="debug" /> | |
</logger> | |
<logger name="org.hibernate.type"> | |
<level value="trace" /> | |
</logger> | |
</log4j:configuration> |
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
@InitBinder | |
public void initBinder(WebDataBinder binder) { | |
SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy"); | |
binder.registerCustomEditor(Date.class, new CustomDateEditor(dateFormat, true)); | |
binder.setBindingErrorProcessor(new DefaultBindingErrorProcessor() { | |
@Override | |
public void processPropertyAccessException(PropertyAccessException ex, BindingResult bindingResult) { | |
String propertyName = ex.getPropertyName(); |
NewerOlder