Skip to content
URL endpoint: https://www.doap.jp/api/SBrand/TransactionReception.php?branchNo=demo3001
Method: POST
Headers:
Content-Type: application/json
Body:
{
"data":
[
{
"postal_code": "854-0044",
class FixedPrecisionDecimal
{
const int number; // 1234.5678
FixedPrecisionDecimal(float)
{
}
FixedPrecisionDecimal(double)
{
func Kermit(byteArray []byte) uint16 {
var crc uint16
for i := 0; i < len(byteArray); i++ {
b := uint16(byteArray[i])
q := (crc ^ b) & 0x0f
crc = (crc >> 4) ^ (q * 0x1081)
q = (crc ^ (b >> 4)) & 0xf
crc = (crc >> 4) ^ (q * 0x1081)
}
return (crc >> 8) ^ (crc << 8)
$('.checkrate').click(function (e) {
e.preventDefault();
var fromObj = fromPicker.get('select');
var toObj = toPicker.get('select');
hhotelDispopriceFHP('ASIATHBKHTLATSiam', '', '', fromObj.year, fromObj.month + 1, fromObj.date, (toObj.obj - fromObj.obj) / (1000 * 60 * 60 * 24), $('#adults').val(), $('#children').val(), $('#accesscode').val(), 'THB')
});
from_date = Date.new(2015, 02, 1)
to_date = Date.civil(2015, 02, -1)
attendance_lines_by_date = File.open(ATTENDANCE_LINES_FILE)
.readlines
.map { |line_text| AttendanceLine.new line_text, ROSTER }
.select { |line| line.date >= from_date and line.date <= to_date }
.reject { |line| line.date.weekend? }
.group_by { |line| line.date }
require 'csv'
module Roster
# Example of each row is: [1,Pac,Sivabudh Umpudh,nil,nil,nil,nil,nil,nil]
def self.parse_from_csv filename
CSV.read(filename)
.drop(1) # remove the first row of CSV which is a header
.map(&:compact) # remove all `nil`
.map { |line_array| [line_array[0], "#{line_array[1]} - #{line_array[2]}"] } # convert ["1", "Pac", "Sivabudh Umpudh"] to ["1", "Pac - Sivabudh Umpudh"]
.to_h # convert array to hash: voila, I now got a hash with key as the ID, and value as my name!
puts "Hello. Welcome to the Functional World!"
#
# This is how to do it imperative style (aka: Stupid Java programmer)
#
array = [1,2,3,4]
new_array = []
array.each do |n|
if n % 2 == 0
new_array.push n
puts "Hello. Welcome to the Functional World!"
# This is how to do it imperative style (Stupid Java programmer)
array = [1,2,3,4]
new_array = []
array.each do |n|
if n % 2 == 0
new_array.push n
end
$DICTIONARY_FILE = "Main.old.strings"
$FILE_TO_TRANSLATE = "Main.strings"
$TRANSLATED_FILE = "Main.new.strings"
module StringsExtraction
def self.extract_english_phrase line
cleaned_up_line = line.delete "/*\n"
tokens = cleaned_up_line.split(";")
token_with_english_phrase = tokens[1]
english_phrase = token_with_english_phrase.split(" = ")[1]
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
Something went wrong with that request. Please try again.