Skip to content

Instantly share code, notes, and snippets.

View TristinDavis's full-sized avatar

Tristin Davis TristinDavis

  • Thrivent Financial
  • Arkansas, USA
  • 00:22 (UTC -05:00)
View GitHub Profile
@TristinDavis
TristinDavis / tab-completion.coffee
Created June 1, 2016 16:54 — forked from piersadrian/tab-completion.coffee
Atom autocomplete suggestions on tab
{Point} = require 'atom'
atom.commands.add 'atom-text-editor', 'custom:tabcomplete', (e) ->
editor = atom.workspace.getActiveTextEditor()
cursor = editor.getLastCursor()
{row, column} = cursor.getBufferPosition()
precedingCharacter = editor.getTextInBufferRange([[row, column - 1], [row, column]])
if /\S/.test(precedingCharacter)
#!/bin/bash
function docker_run_shell {
NAME=$1
DOCKERFILE=$2
# docker needs a few libraries, but not all - essential libs here
BIND_LIBS=`ldd /usr/bin/docker | grep /lib/ | awk '{print $3}' | egrep '(apparmor|libseccomp|libdevmap|libsystemd-journal|libcgmanager.so.0|libnih.so.1|libnih-dbus.so.1|libdbus-1.so.3|libgcrypt.so.11)'`
ARGS=""
for LIB in $BIND_LIBS; do
ARGS="$ARGS -v $LIB:$LIB:ro"
@TristinDavis
TristinDavis / Galaxy Of Tutorial Torrents
Created February 7, 2016 09:28 — forked from iHassan/Galaxy Of Tutorial Torrents
Ultimate Galaxy Of Tutorial Torrents
=============================
**http://kickass.to/infiniteskills-learning-jquery-mobile-working-files-t7967156.html
**http://kickass.to/lynda-bootstrap-3-advanced-web-development-2013-eng-t8167587.html
**http://kickass.to/lynda-css-advanced-typographic-techniques-t7928210.html
**http://kickass.to/lynda-html5-projects-interactive-charts-2013-eng-t8167670.html
**http://kickass.to/vtc-html5-css3-responsive-web-design-course-t7922533.html
*http://kickass.to/10gen-m101js-mongodb-for-node-js-developers-2013-eng-t8165205.html
*http://kickass.to/cbt-nuggets-amazon-web-services-aws-foundations-t7839734.html
#! /usr/bin/perl
# USAGE: yapc-vlc [-d|--dump] ROOM
# where ROOM is L, V, 313, or 325
# add a -d or -dump there to dump the stream to a file
use 5.10.0;
use strict;
use warnings;
use IPC::Cmd qw[can_run];
#!/usr/bin/env perl
package Thingy;
use Moo;
use Types::Standard qw(Str Int HashRef ArrayRef Dict Tuple Optional);
has payload => (
is => 'rw',
isa => ArrayRef[
Dict[
#!/usr/bin/env perl
package Thingy;
use Moo;
use Types::Standard qw(Str Int HashRef ArrayRef Dict Tuple Optional);
has payload => (
is => 'rw',
isa => ArrayRef[
Dict[
# -*- coding: utf-8 -*-
from datetime import datetime
import sublime_plugin
class TimestampCommand(sublime_plugin.EventListener):
"""Expand `isoD`, `now`, `datetime`, `utcnow`, `utcdatetime`,
`date` and `time`
"""
[
{
"class": "sidebar_container",
"layer0.tint": [60, 60, 60],
"layer0.opacity": 1.0,
"layer0.draw_center": false,
"layer0.inner_margin": [0, 0, 1, 0],
"content_margin": [0, 0, 1, 0]
},
{
use strict;
use warnings;
use IO::Async::Channel;
use IO::Async::Loop;
use IO::Async::Routine;
my $loop = IO::Async::Loop->new();
{
@TristinDavis
TristinDavis / TestMojoCookies
Created December 2, 2012 21:07 — forked from spiros/TestMojoCookies
Test::Mojo methods for cookie checking
=head2 has_cookie
Returns 1 if cookie is found irrespective of value.
$rv = $t->has_cookie( $name, $url );
=cut
sub has_cookie{
my $self = shift;