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 "kemal" | |
def index(env) | |
"Hello World!" | |
end | |
get "/", &->index(HTTP::Server::Context) | |
Kemal.run |
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
def build_url | |
case verb | |
when "get" | |
case action_name | |
when :index then "/" | |
when :show then "/:#{param}" | |
when :new then "/new" | |
when :edit then "/:#{param}/edit" | |
end | |
when "post" |
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
executable = "bin/critter" | |
deps = [] of String | |
output = `ldd #{executable}`.scan(/(\/.*)\s\(/) do |m| | |
library = m[1] | |
deps << library | |
real_lib = File.real_path(library) | |
deps << real_lib if real_lib != library | |
end |
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
Sitio Web | Nombre de la Empresa | |
---|---|---|
http://www.admios.com | Admios | |
https://allsafe.com.pa | All Safe Solutions S.A. | |
http://www.allsecurity.org/wp | AllSecurity – Revista Allsecurity Especializada en Tecnologías & Seguridad de la información Noticias comunidad Hardware Software ethical Hacking cybersecurity. | |
http://www.americavirtual.net | America Virtual – Diseño Web Panama – Marketing Digital | |
https://arpiasoftware.com | arpiasoftware.com | |
http://www.livewalkpty.com | Audio walks that Awaken Panama's HIstory - Panama Self-Guided Audio Walking Tours | |
http://best.com.pa | Best Software Inc. – Sage 50 (antes Peachtree) ACT! OIS en Panamá | |
http://www.bitban.com | Bitban | Simplificando la web | |
http://bluetideconsulting.com | BlueTide IT Consulting |
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 "openssl/cipher" | |
module AES | |
def self.encrypt(data, password) | |
cipher = OpenSSL::Cipher.new("aes-128-cbc") | |
cipher.encrypt | |
cipher.key = password | |
io = IO::Memory.new | |
io.write(cipher.update(data)) | |
io.write(cipher.final) |
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
# Compiled using LLVM 6 with AVR target support | |
# Digispark Attiny85 version | |
CC=avr-gcc | |
AR=avr-ar | |
OBJCOPY=avr-objcopy | |
STRIP=avr-strip | |
SIZE=/home/main/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-size | |
CRYSTAL=/run/media/main/5E7F72DC50CCBB04/crystal-master-4f5c55d-0.27.1-dev/bin/crystal | |
AVR-INCLUDE=$(HOME)/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/avr/include/ |
OlderNewer