Skip to content

Instantly share code, notes, and snippets.

View jjulian's full-sized avatar

Jonathan Julian jjulian

  • Ad Hoc LLC
  • MD
  • 18:54 (UTC -04:00)
View GitHub Profile
@jjulian
jjulian / example.erb
Created February 18, 2012 16:44
Running Ruby under Apache like PHP, using cgi - http://stackoverflow.com/a/1901772/231245
<% header "Content-Type" => "text/html" %>
<h1>Let's run some ruby code: <%= rand %></h1>
@jjulian
jjulian / namely-team-browse.js
Last active March 24, 2022 22:05
UserScript - Make navigating namely team trees easier
// ==UserScript==
// @name Namely Team Links
// @version 0.2
// @description Make navigating namely team trees easier - adds a "team" link next to every profile link
// @namespace https://adhocteam.us/
// @author jjulian
// @match https://adhoc.namely.com/*
// @icon https://cdn2.iconfinder.com/data/icons/user-interface-essentials-outline/48/ui-49-1024.png
// @grant none
// ==/UserScript==
#!/usr/bin/env ruby
require 'erb'
source_dir = ARGV[0]
files = Dir.entries(source_dir).map do |fname|
fname =~ /\.png$/ ? fname : nil
end.compact.sort
image_template = '<a href="<%= fname %>"><img src="<%= fname %>" width="300"/></a>'
renderer = ERB.new(image_template)
@jjulian
jjulian / * Android Version & API Level List.md
Last active May 1, 2019 19:15 — forked from yicr/Android Version API Level List.md
* Android Version & API Level List on 2016/08/28

Androidのバージョン表記及びAPI Level

Version Code Name Level Build.VERSION_CODES.
1.0 1 BASE
1.1 2 BASE_1_1
1.5 Cupcake 3 CUPCAKE
1.6 Donut 4 DONUT
2.0 Eclair 5 ECLAIR
2.0.1 6 ECLAIR_0_1
@jjulian
jjulian / Management Resources.md
Last active March 15, 2019 14:27
Good articles on management, added as I find them

What they should stop saying is “can I give you some feedback?” And they should start saying “here’s my reaction.”

https://outline.com/washingtonpost.com/business/2019/02/20/everything-you-know-about-giving-feedback-work-could-be-wrong

Whenever you see one of your people do something that worked for you, that rocked your world just a little, stop for a minute and highlight it. By helping your team member recognize what excellence looks like for her—by saying, “That! Yes, that!“—you’re offering her the chance to gain an insight; you’re highlighting a pattern that is already there within her so that she can recognize it, anchor it, re-create it, and refine it. That is learning.

https://hbr.org/2019/03/the-feedback-fallacy

"The first agenda item is you. Tell me how you’re doing, how you’re feeling,”

@jjulian
jjulian / backbone-carousel.html
Created November 24, 2012 23:19
A simple carousel implemented with a single Backbone view

Keybase proof

I hereby claim:

  • I am jjulian on github.
  • I am jjulian (https://keybase.io/jjulian) on keybase.
  • I have a public key ASCZd7muoSaKj0aNZ6JusSH1O5BFDDpZflFX9hZLIt7OuQo

To claim this, I am signing this object:

topic = [
"Performance Tuning",
"Advanced Rails",
"Learning Ruby",
"Hypermedia APIs",
"Diversity"
]
ruby = %w{MRI jRuby Rubinious Heroku}
@jjulian
jjulian / gist:6b95ef6d15a33293c38a
Created May 6, 2015 03:24
Random draw from meetup page RSVPs
// Go to http://www.meetup.com/charmcityjs/events/221660971/
// Open JS console
// Paste this code
var attendees = $.makeArray($('#rsvp-list li.memberinfo-widget .member-name > a')); var winner = attendees[Math.floor(Math.random()*attendees.length)]; $('body').prepend('<br>').prepend(winner);
// Describe how it works: find all RSVP links, choose one at random using js and array, prepend the html to top of page
// Run it a few times to prove randomness
// Run it one last time to draw a winner
// Open the winner's profile link in a new tab, view full bio and avatar
// Ask them to come formward!
@jjulian
jjulian / backbone-carousel-auto.html
Created November 28, 2012 20:58
A simple auto-advancing carousel implemented with a single Backbone view