Skip to content

Instantly share code, notes, and snippets.

View mpdo2017's full-sized avatar
🎯
Focusing

Michele Lanning mpdo2017

🎯
Focusing
View GitHub Profile
@wenfahu
wenfahu / I love you in X languages.rst
Last active July 28, 2025 16:48
Say "I love you" in X programming languages! And X = 24
    /\_/\     /\_/\
  =( owo )= =( owo )=
\\  )   (     )   (  //
 \\(_ _ _)   (_ _ _)//
  1. C
@LeCoupa
LeCoupa / bash-cheatsheet.sh
Last active January 14, 2026 08:59
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@alexpchin
alexpchin / Setting_upa_new_repo.md
Last active December 23, 2025 17:01
Create a new repository on the command line

Setting up a new Git Repo

##Create a new repository on the command line

touch README.md
git init
git add README.md
git commit -m "first commit"

git remote add origin [email protected]:alexpchin/.git

@jwmalara
jwmalara / state_dropdown.html
Created April 22, 2014 18:44
HTML: State Dropdown
<select name="state">
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
<option value="AZ">Arizona</option>
<option value="AR">Arkansas</option>
<option value="CA">California</option>
<option value="CO">Colorado</option>
<option value="CT">Connecticut</option>
<option value="DE">Delaware</option>
<option value="FL">Florida</option>
@blackfalcon
blackfalcon / git-feature-workflow.md
Last active October 8, 2025 17:33
Git basics - a general workflow

Git-workflow vs feature branching

When working with Git, there are two prevailing workflows are Git workflow and feature branches. IMHO, being more of a subscriber to continuous integration, I feel that the feature branch workflow is better suited, and the focus of this article.

If you are new to Git and Git-workflows, I suggest reading the atlassian.com Git Workflow article in addition to this as there is more detail there than presented here.

I admit, using Bash in the command line with the standard configuration leaves a bit to be desired when it comes to awareness of state. A tool that I suggest using follows these instructions on setting up GIT Bash autocompletion. This tool will assist you to better visualize the state of a branc

@tmcw
tmcw / README.md
Last active October 30, 2025 04:27

OSM Lab

OSM Lab is an organization for OpenStreetMap related projects - libraries, applications, and other code. We're liberal with membership.

Project Guidelines

  • Use semver where appropriate
  • README.md is required
@quii
quii / scala-xml-filter.scala
Created September 4, 2012 21:13
Filtering an xml file for certain elements and then removing unwanted nodes
import scala.xml._
import scala.xml.transform._
object Main extends App {
import Stuff._
val sourceXml = XML.loadFile("metadata.switchaai.xml")
val allEntities = sourceXml \\ "EntityDescriptor"
import lxml.etree
def pprint(elem):
print lxml.etree.tostring(elem, pretty_print=True)
class Bind(object):
def __init__(self, path, converter=None, first=False):
'''
path -- xpath to select elements
converter -- run result through converter
first -- return only first element instead of a list of elements
Ruby Quickstart for Refugees:
--
# is a comment.
You don't need semicolons.
Ruby aims to be elegant and readable, so punctuation and boilerplate are
minimal.
--