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
(* | |
Mathematica Function for Movie Creation with ffmpeg/avconv | |
This function enables Mathematica make a long movie file | |
with less memory usage. | |
Copyright (c) 2015 330k | |
This software is released under the MIT License. | |
http://opensource.org/licenses/mit-license.php | |
*) |
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
(* | |
Import and Export Function of Mathematica/CDF Player with JLink | |
This function enables Wolfram CDF Player import and export files. | |
Copyright (c) 2015 330k | |
This software is released under the MIT License. | |
http://opensource.org/licenses/mit-license.php | |
*) | |
ImportWithJLink[filepath_?(FileExistsQ[FindFile[#]] &), format_] := ( |
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
/********************************************************************** | |
Disable Specified Windows Updates (KB******) without WSUS | |
Copyright (c) 2015 Kei Misawa | |
This software is released under the MIT License. | |
http://opensource.org/licenses/mit-license.php | |
**********************************************************************/ | |
try{ | |
// KB numbers you want to disable | |
var disabledKBs = [ |
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
private static String formatFloat10(double d){ | |
char[] c = new char[10]; | |
double a; | |
if(d == 0.0){ | |
return " 0.0000000"; | |
} | |
if(d < 0){ | |
c[0] = '-'; | |
a = -d; |
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
/** | |
* Hubeny測地線距離計算式(簡易) | |
* @param {number} lat1 | |
* @param {number} lon1 | |
* @param {number} lat2 | |
* @param {number} lon2 | |
* @return {number} distance [m] | |
*/ | |
function hubeny(lat1, lon1, lat2, lon2){ | |
"use strict"; |
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> | |
<!-- | |
HTA SQL Tool by 330k | |
Copyright (c) 2016 330k | |
This software is released under the MIT License. | |
http://opensource.org/licenses/mit-license.php | |
--> | |
<title>HTA SQL Tool by 330k</title> | |
<HTA:APPLICATION ID="USQLEXE" APPLICATIONNAME="USQLEXE" BORDER="thick" BORDERSTYLE="normal" |
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 | |
DEST=${1:-8.8.8.8} | |
MAXHOP=${2:-31} | |
IPV="-4" | |
# Ctrl + Cで中断 | |
trap 'echo Breaked; exit 2' 2 | |
# そもそも届かなければ終了 |
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
while true; do echo -n `date '+%Y/%m/%d %H:%M:%S'`; ping -c 5 1.1.1.1 | sed -z 's/,/\n/g' | egrep 'duplicates|packet loss|rtt' | sed -z 's/\n/, /g'; echo; done |
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 | |
IP_OLD="" | |
while true | |
do | |
IP=`curl -m 3 -s http://inet-ip.info` | |
if [[ ${IP} =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then | |
if [[ "$IP" != "$IP_OLD" ]]; then | |
IP_OLD="$IP" |
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
function Get-ChildFilePath { | |
<# | |
.SYNOPSIS | |
Get-ChildFilePath returns a list of file paths of children recursively. | |
This supports long file name (>256 characters). | |
.DESCRIPTION | |
Get-ChildFilePath returns an array of string of full path, | |
in contrast to Get-ChildItem, which returns an array of object. | |
Get-ChildFilePath is twice as Get-ChildItem. | |
.PARAMETER Path |
OlderNewer