Skip to content

Instantly share code, notes, and snippets.

View brianly's full-sized avatar
🦙
Don't get much time to hack right now due to 👶

Brian Lyttle brianly

🦙
Don't get much time to hack right now due to 👶
View GitHub Profile

Saturday (May 21st)

Leave for Croatia

Sunday

Arrive in Split (noon)

Monday

Saturday (May 21st)

Leave for Croatia

Sunday

Arrive in Split SPU (noon)

Split (recover)

Saturday (May 21st)

Leave for Croatia

Sunday

Arrive in Split SPU (noon)

Get to Dubrovnik (how? 4.5hr bus)

@brianly
brianly / groups.html
Created January 28, 2017 03:56
Examples of Yammer group operations.
<!DOCTYPE html>
<html>
<head>
<script src="//ajax.aspnetcdn.com/ajax/jQuery/jquery-1.12.4.min.js"></script>
<script type="text/javascript" data-app-id="INSERT-CLIENT-ID [yammer.com/client_applications]" src="https://assets.yammer.com/assets/platform_js_sdk.js"></script>
</head>
<body>
<script>
function displayAuthResult(authResult) {
@brianly
brianly / ogbuttons.html
Created January 26, 2017 02:11
Sample code illustrating how to use the Yammer Open Graph buttons to post to the activity stream. These use the objectProperties to post useful information with the object.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Open Graph Buttons</title>
</head>
<body>
<script type="text/javascript" src="https://c64.assets-yammer.com/assets/platform_embed.js"></script>
<script type="text/javascript" src="https://c64.assets-yammer.com/assets/platform_social_buttons.min.js"></script>
@brianly
brianly / yamjsauth.html
Last active September 22, 2016 13:54
Snippet showing how to use the setAuthToken() to inject a token that was acquired elsewhere. A server-side token is going to be longer lived than the client-side token acquired in this code.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" data-app-id="MzowvhzkPdHy6LGqXaDBAg" src="https://c64.assets-yammer.com/assets/platform_js_sdk.js"></script>
<script type="text/javascript">
$(document).ready(function () {

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@brianly
brianly / init.lua
Created July 15, 2016 13:35 — forked from ojkelly/init.lua
My hammerspoon config
local usbWatcher = nil
-- This is our usbWatcher function
-- lock when yubikey is removed
function usbDeviceCallback(data)
-- this line will let you know the name of each usb device you connect, useful for the string match below
hs.notify.show("USB", "You just connected", data["productName"])
-- Replace "Yubikey" with the name of the usb device you want to use.
if string.match(data["productName"], "Yubikey") then
if (data["eventType"] == "added") then
@brianly
brianly / install-iis.ps1
Created March 20, 2016 21:15
PowerShell to install more IIS features than normally required. Pare this down for a production environment.
Install-WindowsFeature Web-Server
Install-WindowsFeature Web-Default-Doc
Install-WindowsFeature Web-Dir-Browsing
Install-WindowsFeature Web-Http-Errors
Install-WindowsFeature Web-Static-Content
Install-WindowsFeature Web-Http-Redirect
Install-WindowsFeature Web-Http-Logging
Install-WindowsFeature Web-Custom-Logging
Install-WindowsFeature Web-Log-Libraries
Install-WindowsFeature Web-Request-Monitor
@brianly
brianly / requirements.txt
Created February 18, 2016 03:17 — forked from alanhamlett/requirements.txt
WakaTime's requirements.txt Python dependencies
-e git://github.com/kennethreitz/inbox.py.git@551b4f44b144564504c687cebdb4c543cb8e9adf#egg=inbox
alembic==0.8.3
amqp==1.4.9
anyjson==0.3.3
boto==2.39.0
braintree==3.20.0
cairosvg==1.0.19
celery==3.1.20