Skip to content

Instantly share code, notes, and snippets.

Mario Rogic supermario

Block or report user

Report or block supermario

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
@supermario
supermario / Makefile
Created Dec 8, 2016
Pretty make help
View Makefile
somecommand: #App# Description of some command
somebashcommand
someothercommand: #Development# Description of some other command
someotherbashcommand
help:
@./scripts/makefile-help.sh ./Makefile
.DEFAULT_GOAL := help
View gist:eb4e9bc64ccaabb0d1cf5a2913dbf706
$ ping slack.com
PING slack.com (52.222.233.130): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
^C
--- slack.com ping statistics ---
4 packets transmitted, 0 packets received, 100.0% packet loss
# mario ~ 10:07:23
View spec.md

Specification

The original specification for the 'Toy Robot' challenge.

Description

  • The application is a simulation of a toy robot moving on a square tabletop, of dimensions 5 units x 5 units.
  • There are no other obstructions on the table surface.
  • The robot is free to roam around the surface of the table, but must be prevented from falling to destruction. Any movement that would result in the robot falling from the table must be prevented, however further valid movement commands must still be allowed.
@supermario
supermario / output.txt
Last active Dec 27, 2015
Pulp build issues
View output.txt
$ pulp init
* Generating project skeleton in /Users/mario/Dropbox/dev/test/sentiment
bower purescript-console#^0.1.0 cached git://github.com/purescript/purescript-console.git#0.1.1
bower purescript-console#^0.1.0 validate 0.1.1 against git://github.com/purescript/purescript-console.git#^0.1.0
bower purescript-eff#^0.1.0 cached git://github.com/purescript/purescript-eff.git#0.1.2
bower purescript-eff#^0.1.0 validate 0.1.2 against git://github.com/purescript/purescript-eff.git#^0.1.0
bower purescript-prelude#^0.1.0 cached git://github.com/purescript/purescript-prelude.git#0.1.3
bower purescript-prelude#^0.1.0 validate 0.1.3 against git://github.com/purescript/purescript-prelude.git#^0.1.0
bower purescript-console#^0.1.0 install purescript-console#0.1.1
bower purescript-eff#^0.1.0 install purescript-eff#0.1.2
View example.hs
data Box = Box { _value :: Integer }
data World = World { _box :: Maybe Box }
makeLenses ''Box
makeLenses ''World
steps :: StateT World IO ()
steps = do
box.value %= succ
@supermario
supermario / pre-commit
Last active Dec 30, 2015
Pre-commit hook to run Rubocop on changed files since fork from master
View pre-commit
#!/bin/sh
# Install with:
# curl http://git.io/vEN3k > .git/hooks/pre-commit
# Fail if any command is non-zero
set -e
# Redirect output to stderr.
exec 1>&2
View Has weird right-to-left characters.txt
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@supermario
supermario / index.html
Last active Aug 29, 2015
SoundCloud React POC!
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Hello React</title>
<script src="http://fb.me/react-0.12.1.js"></script>
<script src="http://fb.me/JSXTransformer-0.12.1.js"></script>
</head>
<body>
<div id="example"></div>
<script type="text/jsx">
View keybase.md

Keybase proof

I hereby claim:

  • I am supermario on github.
  • I am realmario (https://keybase.io/realmario) on keybase.
  • I have a public key whose fingerprint is 637E B6D2 434F 1B97 0910 7B41 0A6D D1E1 398F F347

To claim this, I am signing this object:

You can’t perform that action at this time.