http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html
Download files:
const ExcelJS = require('exceljs'); | |
const workbook = new ExcelJS.Workbook(); | |
const data = await workbook.xlsx.readFile('./test.xlsx'); | |
const worksheet = workbook.worksheets[0]; | |
for (const image of worksheet.getImages()) { | |
console.log('processing image row', image.range.tl.nativeRow, 'col', image.range.tl.nativeCol, 'imageId', image.imageId); | |
// fetch the media item with the data (it seems the imageId matches up with m.index?) | |
const img = workbook.model.media.find(m => m.index === image.imageId); | |
fs.writeFileSync(`${image.range.tl.nativeRow}.${image.range.tl.nativeCol}.${img.name}.${img.extension}`, img.buffer); |
// บอทปั้มเงิน TLM เกม Alien Worlds (เงินจะเอาไปแลกเงินจริงใน Binance ได้) | |
// ไว้ทดสอบเฉย ๆ อย่าเอาไปใช้จริง คนเขียนไม่รับผิดชอบต่อบั๊กใด ๆ ทั้งสิ้น | |
// | |
// วิธีใช้: | |
// 1. สมัคร + เข้า https://play.alienworlds.io/ | |
// 2. ต้องเคย mine แบบ manual ก่อน 1 ครั้ง | |
// 3. ก๊อปสคริปท์นี้ไปแปะใน Console (F12) | |
// น่าจะมีบั๊กพวก rate limit อะไรทั้งหลาย กับ if/loop บางอันเอาออกได้ | |
// ลองรันเล่น ๆ 5 ชม จาก user เปล่า ๆ ได้มา 8 TLM (ขึ้นกับดวงและอื่นๆด้วยมั่ง) | |
// ใครว่าง ๆ แก้เป็นยิงเข้า API โดยตรงไม่ผ่าน JS น่าจะเสถียรกว่าเยอะมาก |
function GoogleFormToLine(){ | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var row = sheet.getLastRow(); | |
var column = sheet.getLastColumn(); | |
var range = sheet.getDataRange(); | |
var message = ""; | |
for(var i=1;i<=column;i++){ | |
var item = range.getCell(1, i).getValue(); | |
var value = range.getCell(row, i).getValue(); |
<?php | |
// load the 'fpdf' extension | |
require('fpdf.php'); | |
// just for demonstration purpose, the OP gets the content from a database instead | |
$h_img = fopen('img.jpg', "rb"); | |
$img = fread($h_img, filesize('img.jpg')); | |
fclose($h_img); | |
// prepare a base64 encoded "data url" |
ini_set('soap.wsdl_cache_enabled', 0); | |
ini_set('soap.wsdl_cache_ttl', 900); | |
ini_set('default_socket_timeout', 15); | |
$params = array('param1'=>$param1); | |
$wsdl = 'http://service_url/method?WSDL'; |
<?php | |
/* These are two points in New York City */ | |
$point1 = array('lat' => 40.770623, 'long' => -73.964367); | |
$point2 = array('lat' => 40.758224, 'long' => -73.917404); | |
$distance = getDistanceBetweenPoints($point1['lat'], $point1['long'], $point2['lat'], $point2['long']); | |
foreach ($distance as $unit => $value) { | |
echo $unit.': '.number_format($value,4).'<br />'; | |
} |