Skip to content

Instantly share code, notes, and snippets.

:shipit:
Hacking into the mainframe

Tom tomleo

:shipit:
Hacking into the mainframe
Block or report user

Report or block tomleo

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
View hyper.js
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
View test.mermaid
```mermaid
graph LR
A[HTTP Request] --> B(Load Balancer)
B --> C(WSGI Worker)
B --> D(WSGI Worker)
B --> E(WSGI Worker)
C --> F(Production Backend)
D --> F
E --> F
```
View intro.md

Goals

  1. Basic website structure
  2. HTML
  3. CSS
  4. Markdown

Series of Tubes

Protocols

@tomleo
tomleo / .bashrc
Created May 9, 2018
Git bash prompt code I wrote
View .bashrc
# ...
faux_host_name="computer"
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
# Updated bash prompt code to include git branch
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@$faux_host_name\[\033[00m\]:\[\033[01;34m\]\w\[\033[01;31m\] $(parse_git_branch)\[\033[00m\]\$ '
View keybase.md

Keybase proof

I hereby claim:

  • I am tomleo on github.
  • I am tomleo (https://keybase.io/tomleo) on keybase.
  • I have a public key ASC5udFcEk2QMhILwwF-4QFeZR8xeBgVIG8pP9uP863qCQo

To claim this, I am signing this object:

View xlfd_maker.py
xlfd_tmpl = u"-%(maker)s-%(family)s-%(weight)s-%(slant)s-%(widthtype)s-%(style)s-%(pixels)s-%(height)s-%(horiz)s-%(vert)s-%(spacing)s-%(width)s-%(registry)s-%(encoding)s"
def make_xlfd(maker="unknown", family=None, weight="normal", slant="r",
widthtype="normal", style="*", pixels=8, height="*",
horiz="*", vert="*", spacing="m", width="*", registry="iso8859",
encoding=1):
"""
Usage Example::
tom@desktop ~> python xlfd_maker.py --family "Input Mono" --size 9
@tomleo
tomleo / tags
Last active Aug 29, 2015
Supported HTML Tags & Supported Attributes
View tags
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<table>
<tbody>
<tr>
@tomleo
tomleo / index.html
Created May 11, 2015
JS Bin Idea for state selection widget // source http://jsbin.com/jomexe
View index.html
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Idea for state selection widget">
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
View index.html
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
@tomleo
tomleo / SassMeister-input.scss
Created Apr 23, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
@import "compass/css3/box-sizing";
$m-form-input-types: (
'text',
'password',
You can’t perform that action at this time.