Skip to content

Instantly share code, notes, and snippets.

View cnocon's full-sized avatar
:octocat:
Professionally developing

Cristin O'Connor cnocon

:octocat:
Professionally developing
View GitHub Profile
@elclanrs
elclanrs / README.md
Last active May 21, 2024 22:10
VanillaJS popover with autoposition
@aVolpe
aVolpe / EmbeddedGist.js
Created September 13, 2016 22:58
EmbeddedGist allows a gist to be embedded in a React application
import React, { Component } from 'react';
class EmbeddedGist extends Component {
constructor(props) {
super(props);
this.gist = props.gist;
this.file = props.file;
this.stylesheetAdded = false;
this.state = {
@xionon
xionon / regex.rb
Last active August 29, 2015 13:55
This is a runable tutorial on 3 regex tips that will make your code more readable: 1) named capture groups, 2) whitespace+comments, 3) an alternate syntax
require 'minitest'
require 'minitest/spec'
require 'minitest/autorun'
describe 'Regexes are super great' do
before do
@month = "12"
@day = "15"
@year = "2014"
@date = "#{@month}/#{@day}/#{@year}"