const pages = dv.pages()
const emoji = '🍅'
dv.table(
["Task", "Pomodoros", "Time"],
pages.file.tasks
.filter(task => task.children.some(child=> child[emoji]))
.map(task=> {
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
{ | |
"input": "http://s3.amazonaws.com/zencodertesting/test.mov", | |
"outputs": [ | |
{ | |
"label": "mp4-1500k", | |
"prepare_for_segmenting": ["hls", "dash"], | |
"audio_bitrate": 128, | |
"video_bitrate": 1100, | |
"size": "1280x720", | |
"url": "s3://my-bucket/mp4/1500.mp4" |
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
#MaxHotkeysPerInterval 200 | |
ModActivateDelay := 100 | |
*Space:: | |
If SpacePressed ; AutoRepeat defense | |
Return | |
SpacePressed:=true | |
SetTimer ModActivate, % "-" ModActivateDelay | |
Return |
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
alias.lg=log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit |
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
/** | |
* Static methods for working with types. | |
* | |
* @author Bob Lee | |
* @author Jesse Wilson | |
*/ | |
final class Types { | |
private static final Type[] EMPTY_TYPE_ARRAY = new Type[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
-- 1 week ago | |
SELECT * FROM table WHERE inputtime>DATE_SUB(CURDATE(), INTERVAL 1 WEEK) | |
-- 1 year ago | |
select *,YEAR(dateTime) from table where year(dateTime)=year(date_sub(now(),interval 1 year)); |
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
sudo -u admin /usr/local/java/bin/jps -mlvV |
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
netstat -nat|grep 8080|awk '{print $6}' |sort|uniq -c|sort -rn | |
lsof -i:8080|awk '{print $10}' |sort|uniq -c|sort -rn |
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 interface ClassADAO { | |
@Select("SELECT id, name, description FROM TableA WHERE id = #{id}") | |
@Results({@Result(property = "id", column = "id"), | |
@Result(property = "list", javaType = List.class, column = "id", | |
many = @Many(select = "ClassBDao.getClassBForClassA"))}) | |
ClassA getClassAById(@Param("id") long id); | |
} |
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
mysqld --verbose --help | grep -A 1 'Default options' |
NewerOlder