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
#define PED_RET_ERR_START -300 | |
#define PED_RET_ERR_NO_PIN_INPUT (PED_RET_ERR_START-5) | |
#define PED_RET_ERR_INPUT_CANCEL (PED_RET_ERR_START-6) |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <signal.h> | |
#include <fcntl.h> | |
#include <sys/stat.h> | |
#include <sys/types.h> | |
#include <osal.h> | |
#include <xui.h> |
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
var moment = require("moment"); | |
var a = "2015-09-10"; | |
var b = '2015-10-23'; | |
var start = moment(a); | |
var end = moment(b); | |
var c = []; | |
var iterator=0, index=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
class Device | |
class Transaction | |
class Download | |
def perform(socket_proc, company_name, remote_path, filepath, current_app, logical_number, file_crc = nil, socket_call = true) | |
if socket_call | |
@socket, @buffer, @request, @first_packet = socket_proc.call, "", "", "" | |
else | |
@socket, @buffer, @request, @first_packet = socket_proc, "", "", "" | |
end | |
@crc = file_crc ? file_crc : generate_crc(filepath) |
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
# From differents repositories | |
git remote add <remote name> <address> # example `git remote add scalone [email protected]:scalone/mruby-miniz.git` | |
git fetch <remote name> # To get all commits from repo. | |
git checkout -tb <branch name> <remote name>/<remote branch name> # example `git checkout -tb change1 scalone/change1` | |
# test ... | |
# Same repository | |
git fetch <remote name> # To get all commits from repo. | |
git checkout -tb <branch name> <remote name>/<remote branch name> # example `git checkout -tb change1 origin/change1` | |
# test ... |
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
<aplicativoposxml xmlns="http://tempuri.org/posxml.xsd"> | |
<pagina nome="principal"> | |
<variavelint valor="0" variavel="status" /> | |
<variavelstr valor="" variavel="sStatus" /> | |
<imprima mensagem="AAAAAAAA" /> | |
<!-- open - Apenas na inicialização do terminal --> | |
<limpadisplay /> | |
<display coluna="0" linha="0" mensagem="Inicializa EMV: " /> |
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
require 'da_funk/iso8583' # gem install da_funk | |
class WilliamMessage < ISO8583::Message | |
include ISO8583 | |
mti_format N, :length => 4 | |
mti 200, "Authorization Request Acquirer Gateway" | |
bmp 3 , "Processing Code" , N , :length => 6 | |
bmp 4 , "Amount (Transaction)" , N , :length => 12 | |
bmp 7 , "Amount (Transaction)" , N , :length => 10 | |
bmp 11 , "Amount (Transaction)" , N , :length => 6 |
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
diff --git a/build_config.rb b/build_config.rb | |
index 96b1d46..7f49744 100644 | |
--- a/build_config.rb | |
+++ b/build_config.rb | |
@@ -2,11 +2,7 @@ MRuby::Build.new do |conf| | |
# load specific toolchain settings | |
# Gets set by the VS command prompts. | |
- if ENV['VisualStudioVersion'] || ENV['VSINSTALLDIR'] | |
- toolchain :visualcpp |
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
% mirb | |
> mrb_eval("puts 'New context'") | |
New context | |
=> true | |
... |
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
static mrb_value | |
mrb_mrb_eval(mrb_state *mrb, mrb_value self) | |
{ | |
mrb_state *mrb2=NULL; | |
mrbc_context *c; | |
mrb_value code, ret, mrb_ret = mrb_nil_value(); | |
mrb_get_args(mrb, "S", &code); | |
mrb2 = mrb_open(); |