Skip to content

Instantly share code, notes, and snippets.

View patleeman's full-sized avatar
🤷‍♂️

Patrick Lee patleeman

🤷‍♂️
View GitHub Profile
@patleeman
patleeman / build.sh
Created October 10, 2019 14:57
Example build script for project Meristem.
#!/bin/bash
# Set git fetch match pattern to fetch all branches.
# If this isn't set, running git fetch may not pull all the branches we need.
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
git clone ${REPO_URL} tmp/
cd tmp/
git fetch --all
@patleeman
patleeman / build.sh
Created October 10, 2019 14:57
Example build script for project Meristem.
#!/bin/bash
# Set git fetch match pattern to fetch all branches.
# If this isn't set, running git fetch may not pull all the branches we need.
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
git clone ${REPO_URL} tmp/
cd tmp/
git fetch --all
@patleeman
patleeman / userChrome.css
Last active February 14, 2019 14:00
Firefox userChrome.css for use with treestyletabs
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* to hide the native tabs */
.toolbar-items {
visibility: collapse;
}
/* to hide the sidebar header */
#sidebar-header {
visibility: collapse;
Accept:image/webp,image/apng,image/*,*/*;q=0.8
Accept-Encoding:gzip, deflate
Accept-Language:en-US,en;q=0.8
Cache-Control:no-cache
Connection:keep-alive
Cookie:lkqdid=rzYCEP95q7M; p_0=H4sIAAAAAAAAAJWQPU4EMQyFG0DRaqsgLdPQDQKBPMqPndi3oECinjiTZkWzFFyPC3ACBFyFEazSb_dZen5-z5vJPNiRuLETiTBrC4DeIQgRQZEY14FzDmH4_nz_ON9MZjpJb8zZ8HWki07mSJPZnnh9Z8emKYlmhrDUDFi5gnhUICxlZi2sWbv-yo4J54RNERTJAzpiKJocaI2UUDWiSk879ow3R7o2t_bSZ0kuCjuXMcTMlKiv3PWV-07QC0Y75sWXuYmutRa3BuAEHDRDK54bxqyplu6G3YM65e7Gdpz9-iKhCqG4tX6o6-NiaRBVwrK0ULW54edPvzNity_P-8c3ej0c9vXp_8ov66Qu8vUBAAA
Host:t.lkqd.net
Pragma:no-cache
Referer:http://disqusads.com/ads-iframe/prebid/?aol=0&experiment=network_default&safetylevel=30&lq=0&serverbid=0&thumbnails_allowed=1&display_only=0&forum_pk=2581396&position=top&forum_shortname=<censored>&appnexus=0&category=culture&display_bidding_enabled=1&stories_allowed=1&service=dynamic&display_allowed=1&video_allowed=1&provider=prebid&adx=0&t=1504719092&rubicon=0&sandbox_display=1&links_allowed=1&doublewide_allowed=1&shortname=<c
@patleeman
patleeman / main.js
Created September 3, 2017 04:03
Vue.js global event bus example
import Vue from 'vue'
// Create the event bus by creating a new Vue instance and
// binding it somehwere accessible. If you bind it to the
// Vue prototype, you can access it within your components
// like this:
//
// Emit an event
// this.$bus.$emit('myEvent', {data: true})
//
@patleeman
patleeman / Slimdown.md
Created June 28, 2017 12:22 — forked from jbroadway/Slimdown.md
Slimdown - A simple regex-based Markdown parser.

Slimdown

A very basic regex-based Markdown parser. Supports the following elements (and can be extended via Slimdown::add_rule()):

  • Headers
  • Links
  • Bold
  • Emphasis
  • Deletions
@patleeman
patleeman / Template.vue
Created June 17, 2017 16:11
Empty .vue file template
<template>
</template>
<script>
export default {
components: {
},
props: [
@patleeman
patleeman / learn_python.md
Last active September 24, 2016 07:05
List of Python and related resources.

Resources for learning Python.

Resources for learning Python. From beginner to intermediate.

This resource is meant for those learning Python as a first language. It's a small collection of resources which start at beginner and moves to more intermediate concepts.

Articles

@patleeman
patleeman / cipherizer.py
Last active October 2, 2015 13:39
Basic vigenere's cipher encoder and decoder.
def main():
action = 0
cipherizer = """
_____ _ _ _ ______
/ __ (_) | | (_)|___ /
| / \/_ _ __ | |__ ___ _ __ _ / / ___ _ __
| | | | '_ \| '_ \ / _ \ '__| | / / / _ \ '__|
| \__/\ | |_) | | | | __/ | | |./ /__| __/ |
\____/_| .__/|_| |_|\___|_| |_|\_____/\___|_|
| |