Skip to content

Instantly share code, notes, and snippets.

View jlmitch5's full-sized avatar

John Mitchell jlmitch5

  • Red Hat
  • Garner, NC
View GitHub Profile
@jlmitch5
jlmitch5 / Long_Contrib.md
Created February 14, 2015 23:59
Long_Contrib.md

Contributing to Atom

👍🎉 First off, thanks for taking the time to contribute! 🎉👍

The following is a set of guidelines for contributing to Atom and its packages, which are hosted in the Atom Organization on GitHub. If you're unsure which package is causing your problem or if you're having an issue with Atom core, please open an issue on the main atom repository. These are just guidelines, not rules, use your best judgement and feel free to propose changes to this document in a pull request.

@jlmitch5
jlmitch5 / movinup.yml
Created November 10, 2014 04:38
An ansible playbook for setting up my NCSU Senior Design project on Ubuntu 14.10
---
# NOTE: you may need to include an ansible.cfg file in the same directory this file is in if the git task stalls out
# ansible.cfg contents:
# [defaults]
# transport = ssh
#
# [ssh_connection]
# ssh_args = -o ForwardAgent=yes
- hosts: all
user: root
@jlmitch5
jlmitch5 / restydrinks.py
Created June 19, 2014 20:13
mixin rest classes workign doc
from schema_kernel.models import KernelVersion
from schema_kernel.serializers import KernelVersionSerializer
from rest_framework import mixins, generics
class KVList(mixins.ListModelMixin, generics.GenericAPIView):
queryset = KernelVersion.objects.all()
serializer_class = KernelVersionSerializer
def get(self, request, *args, **kwargs):
return self.list(request, *args, **kwargs)
@jlmitch5
jlmitch5 / hideous.js
Created March 11, 2014 00:20
a duplexing stream country counter (honestly I have no idea what this does)
var duplexer = require('duplexer');
var through = require('through');
module.exports = function (counter) {
var counts = {}
return duplexer(through(function write (row) {
counts[row.country] = (counts[row.country] || 0) + 1
}, function end () {
counter.setCounts(counts)
}), counter)