This file contains 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 main | |
import ( | |
"context" | |
"fmt" | |
"log" | |
"os" | |
"github.com/aws/aws-sdk-go-v2/config" | |
elbv2 "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2" |
This file contains 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
#!/bin/bash | |
# Start capture | |
N=40 | |
SKIPF=15 | |
SKIPE=15 | |
echo $N $(($N-$SKIPF)) | |
mplayer tv:// -tv driver=v4l2:device=/dev/video1:width=1920:height=1080 -frames $N -vo jpeg:outdir=1 & | |
mplayer tv:// -tv driver=v4l2:device=/dev/video2:width=1920:height=1080 -frames $N -vo jpeg:outdir=2 & | |
wait |
This file contains 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 strict"; | |
q03(4); | |
function q03(n) { | |
let arr = new Array(n * 2); | |
fit(n); | |
function fit(v) { |
This file contains 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
http://stackoverflow.com/questions/392022/best-way-to-kill-all-child-processes/15139734#15139734 |
This file contains 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
#!/bin/bash | |
xmodmap -e "clear lock" | |
xmodmap -e "keysym Caps_Lock = Mode_switch Mode_switch" | |
xmodmap -e "keysym i = i I Up Up" | |
xmodmap -e "keysym k = k K Down Down" | |
xmodmap -e "keysym j = j J Left Left" | |
xmodmap -e "keysym l = l L Right Right" | |
xmodmap -e "keysym u = u U Home Home" | |
xmodmap -e "keysym o = o O End End" | |
xmodmap -e "keysym u = y Y Prior Prior" |
This file contains 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
<html> | |
<head><title>Test Ajax</title> | |
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script> | |
<script> | |
$(function(){ | |
$('.run').click(function(){ | |
var buf = [ | |
['0','0','0','0','0','0','0','0'], |