Skip to content

Instantly share code, notes, and snippets.

💀
null === null

Jon Oliver jonoliver

💀
null === null
Block or report user

Report or block jonoliver

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jonoliver
jonoliver / gist:ab4ba49955cd1397f3e4c226feec5d91
Created Feb 28, 2018 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup
View gist:ab4ba49955cd1397f3e4c226feec5d91

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@jonoliver
jonoliver / js
Created Apr 28, 2017
Get a random Wikipedia excerpt
View js
$.getJSON("http://en.wikipedia.org/w/api.php?action=query&generator=random&grnnamespace=0&prop=extracts&exchars=500&format=json&callback=?", function(data) {
const article = data.query.pages[Object.keys(data.query.pages)[0]];
const body = $(article.extract).text();
console.log(article.title);
console.log(body);
});
View gilded_rose.rb
require_relative 'item'
class GildedRose
def initialize items
@items = items
end
def update_quality
@items.each{ |item| update_item item }
@jonoliver
jonoliver / index.html
Created Jul 5, 2016
Minimal valid HTML5
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>title</title>
<!-- <link rel="stylesheet" href="style.css"> -->
<!-- <script src="script.js"></script> -->
</head>
<body>
<!-- page content -->
View rubywarrior
class Player
def play_turn(warrior)
attack = AttackAction.new warrior
rest = RestAction.new warrior
walk = WalkAction.new warrior
for action in [attack, rest, walk]
if action.can?
action.go!
You can’t perform that action at this time.