google-sheet2Html

/*! * * Google Sheets To HTML v0.9a * * To use, simply replace the "tq?key=" value in the * URL below with your own unique Google document ID * * The Google document's sharing must be set to public * */ google.load('visualization', '1', { packages: ['table'] }); var visualization; function drawVisualization() { var query = new google.visualization.Query('https://spreadsheets.google.com/tq?key=https://docs.google.com/spreadsheets/d/1-vUEZ9tae5C_OXzSi0dQPWwUrO3H5S-gImB5afFgqDg/edit?usp=sharing'); query.setQuery('SELECT A, B, C, D label A "Duration", B "Song", C "Requested By", D "URL"'); query.send(handleQueryResponse); } function handleQueryResponse(response) { if (response.isError()) { alert('There was a problem with your query: ' + response.getMessage() + ' ' + response.getDetailedMessage()); return; } var data = response.getDataTable(); visualization = new google.visualization.Table(document.getElementById('table')); visualization.draw(data, { legend: 'bottom' }); } google.setOnLoadCallback(drawVisualization);
Showing posts with label touch. Show all posts
Showing posts with label touch. Show all posts

Friday, June 3, 2016

คำสั่ง touch


คำสั่ง touch


ปรกติ ถ้ามีการแก้ไข ไฟล์ ข้อมูล และ บันทึก ทับของเดิม วันเวลาที่ระบุจะเป็นเวลา ที่ทำการบันทึก
แต่ ในระบบLinux มีคำสัง touch สามารถ แก้ไข วันเวลาการบันทึก ให้ย้อนหลังได้ รูปแบบคำสั่งคือ

touch -option [[YY[YY]MMDDhhmm[.xx]] filename

โดยที่ option
-m เปลี่ยนเวลาเท่านั้น
-a เปลี่ยน access time
-t เปลี่ยนเวลา มีรูปแบบ ดังนี้ [[YY[YY]MMDDhhmm[.xx]]