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
<?xml version="1.0" encoding="UTF-8"?> | |
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" | |
xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> | |
<s:Header> | |
<o:Security xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" | |
s:mustUnderstand="1"> | |
<o:UsernameToken xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" | |
Id="909c1b23-c100-4a66-beb7-3fb6400c8e89"> | |
<o:Username>2preklamcilTR</o:Username> | |
<o:Password>K^0zE#3vI!6v</o:Password> |
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
const req = { | |
ClientDetail: { | |
}, | |
RequestedShipment: { | |
DropOffType: 'REQUEST_COURIER', | |
Ship: { | |
Shipper: { | |
StreetLines: '1-16-24, Minami-gyotoku', | |
City: 'Ichikawa-shi, Chiba', | |
PostalCode: '272-0138', |
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
async function wsdlRequest(wsdlUrl, method, auth, req) { | |
return new Promise((resolve, reject) => { | |
const res = {}; | |
soap.createClient(wsdlUrl, function(err, client) { | |
if (auth.username === undefined) { | |
reject('No username specified'); | |
} | |
if (auth.password === undefined) { | |
reject('No password specified'); |
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
<script> | |
$('.scrollleft').click(function () { | |
console.log('ok') | |
$('#scrollbar').animate({ | |
scrollLeft: '-=153' | |
}, 1000, 'easeOutQuad'); | |
}); | |
$('.scrollright').click(function () { | |
console.log('ok') | |
$('#scrollbar').animate({ |
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
//@version=1 | |
study(title="注意空頭", overlay=true) | |
short = sma(close, 5) | |
long = sma(close, 250) * 0.975 | |
enter_period = sma(sign(short-long)*0.1-0.1, 22)*22 | |
enter_indicator = enter_period<0?1:0 |
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
Get-Childitem -Recurse | foreach-object { | |
if(!$_.PSIsContainer -and $_.length -eq 0) { | |
write-host (“{0} -> {1}” -f $_.FullName, $_.Length) | |
remove-item -path $_.FullName | |
} | |
} |
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 | |
echo "Before:" | |
du -h -d 0 .gradle | |
find ~/.gradle -type f -atime +30 -delete | |
find ~/.gradle -type d -mindepth 1 -empty -delete | |
echo "Now:" | |
du -h -d 0 .gradle |
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
RewriteEngine On | |
RewriteCond %{HTTPS} off | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
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
<?php | |
$hostname = '{********:993/imap/ssl}INBOX'; | |
$username = '*********'; | |
$password = '******'; | |
$inbox = imap_open($hostname,$username,$password) or die('Cannot connect to server: ' . imap_last_error()); | |
$emails = imap_search($inbox,'ALL'); | |
if($emails) { |
NewerOlder