Skip to content

Instantly share code, notes, and snippets.

Sneaky Pepper Chilli v2.0

Ingredients

  1. One red onion
  2. One red bell pepper (green is ok if red is unavailable)
  3. One celery stalk
  4. One carrot
  5. One jalepeno
  6. 3 pounds of ground beef
  7. One 29 ounce can of tomato sauce
def my_method
return alt_val unless some_statement
calc_return_val
end
def some_method
if some_statement
calc_return_val
else
alt_return_val
end
end
pry(main)> 2+2= 5
=> 5
function inputCheck (shitumon, outputNum) {
var condition = true;
var a = -1;
while(condition) {
console.log(a);
if (isNaN(a) || a <= -1) {
console.log("Invalid imput, please enter a number only!<br>");
a = 5;
} else {
@edubkendo
edubkendo / .esvmrc
Last active August 29, 2015 14:27 — forked from jcreamer898/.esvmrc
{
"clusters": {
"destinations": {
"version": "0.90.10",
"config": {
"cluster": {
"name": "destinations_development"
},
"path": {
"data": "tmp/elasticsearch",
defmodule WordCount do
def run do
System.argv
|> path
|> file
|> size
|> count
|> IO.puts
end
defmodule Metex.Worker do
def loop do
receive do
{sender_pid, location} ->
send(sender_pid, {:ok, temperature_of(location)})
{sender_pid, _} -> # won't compile without knowing what the sender_pid is below
send(sender_pid, "Unknown message")
end
loop
end
(add-to-list 'load-path "~/.emacs.d/community")
(add-to-list 'load-path "~/.emacs.d/community/powerline")
(add-to-list 'load-path "~/.emacs.d/community/tester.el")
;; Behavior
;; disable the splash screen
(setq inhibit-splash-screen t)
(when (not (display-graphic-p))