Skip to content

Instantly share code, notes, and snippets.

View joeljuca's full-sized avatar
👨‍💻
Working on smt new

Joel Jucá joeljuca

👨‍💻
Working on smt new
View GitHub Profile
░░░█▀░░░░░░░░░░░▀▀███████░░░░
░░█▌░░░░░░░░░░░░░░░▀██████░░░
░█▌░░░░░░░░░░░░░░░░███████▌░░
░█░░░░░░░░░░░░░░░░░████████░░
▐▌░░░░░░░░░░░░░░░░░▀██████▌░░
░▌▄███▌░░░░▀████▄░░░░▀████▌░░
▐▀▀▄█▄░▌░░░▄██▄▄▄▀░░░░████▄▄░
▐░▀░░═▐░░░░░░══░░▀░░░░▐▀░▄▀▌▌
▐░░░░░▌░░░░░░░░░░░░░░░▀░▀░░▌▌
▐░░░▄▀░░░▀░▌░░░░░░░░░░░░▌█░▌▌
number_one = IO.gets "Please provide the first number: "
number_two = IO.gets "Please provide the second number: "
operation = IO.gets "Inform which operation you would like to do (+, -, *, /): "
number_one = number_one |> String.slice(0..-2) |> String.to_integer
number_two = number_two |> String.slice(0..-2) |> String.to_integer
operation = operation |> String.slice(0..-2)
# IO.puts number_one
# IO.puts number_two
#!/bin/bash
# settings
HOST='myapp.com.br'
USER='john'
BASE_PATH='/tomcat_home'
WEBAPPS_PATH="${PROJECT_PATH}/webapps"
# local steps
mvn package
/*!
* Milligram v1.2.2
* http://milligram.github.io
*
* Copyright (c) 2016 CJ Patoilo
* Licensed under the MIT license
*/
module.exports = CodeMachine = function (coffee) {
if (coffee instanceof Coffee) {
throw new TypeError('CodeMachine needs coffee to work')
}
var linesOfCode = []
for (var i = 0, end = Math.random() * 1000; i < end; i++) {
var line = []

Keybase proof

I hereby claim:

  • I am joelwallis on github.
  • I am joelwallis (https://keybase.io/joelwallis) on keybase.
  • I have a public key ASBJAt3Lo5eMRpOQWeUyWlOK-wEYaERjW9xxRVBKn54WSwo

To claim this, I am signing this object:

@joeljuca
joeljuca / shouter.js
Last active April 10, 2017 15:07 — forked from michaelablackham/shouter
String Drills
function shouter(whatToShout) {
return whatToShout.toUpperCase() + '!!!';
}
/* From here down, you are not expected to
understand.... for now :)
Nothing to see here!
@joeljuca
joeljuca / prototypes.js
Created April 27, 2017 00:50
Basics of prototype chaining and hierarchy
function Animal (animalName) {
this.name = animalName
}
Animal.prototype.walk = function () {
console.log('Walking around...')
}
function Cat (catName) {
Animal.call(this, catName)
#!/bin/bash
#
# Calculates the MD5 hash of a given file. It uses hashing utilities powered by
# operating systems, but wraps them into a consistent interface.
OS=$(
case $(uname) in
(Darwin*) echo "mac";;
(Linux*) echo "linux";;
# TODO: implement MD5 hashing on Windows
class HelloWorld
def hello
begin
# this return will actually be the return from HelloWorld.hello???
return 'Why?'
end
'Hello world!'
end
end