1. Click to expand!
Peek-a-boo!
2. Click to expand!
- One
- Two
- But also
Peek-a-boo!
// 1. go to https://{YOUR_SLACK_DOMAIN}.slack.com/stats#members | |
// 2. open the browser console | |
// 3. enter this (note: it might warn you that pasting code is bad): | |
$.post(`/api/team.stats.listUsers?_x_id=${boot_data.version_uid.slice(0,8)}-${Math.round(performance.now()*100)/100}`, { | |
count: 50, | |
sort_prefix: 'chats_sent', | |
sort_dir: 'desc', | |
date_range: '30d', | |
set_active: true, | |
token: boot_data.api_token, |
(function() { | |
// inspired by Eli Grey's shim @ http://eligrey.com/blog/post/textcontent-in-ie8 | |
// heavily modified to better match the spec: | |
// http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#Node3-textContent | |
if (Object.defineProperty && Object.getOwnPropertyDescriptor && | |
Object.getOwnPropertyDescriptor(Element.prototype, 'textContent') && | |
!Object.getOwnPropertyDescriptor(Element.prototype, 'textContent').get) { | |
// NOTE: Neither of these "drop-in" patterns would work: | |
// Object.defineProperty(..., ..., descriptor); // nope! |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=Edge"> | |
<script type="text/javascript"> | |
var log; | |
if ('console' in window && 'log' in window.console) { | |
log = function (x){ console.log(x); }; | |
} else { |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=Edge"> | |
<script type="text/javascript"> | |
function test() { | |
try { | |
var e = document.createElement('div'); | |
e.innerHTML = ' '; |
# Steps to export Vesuvius from LP to GH. | |
# Replace [username] and ~/path/to/vesuvius with the appropriate values. | |
# NOTE: This is NOT a script, but a series of commands you should run by hand. | |
# Also, much of this was found on http://flexion.org/posts/2012-10-migrating-bzr-to-git.html . | |
# get the tools | |
sudo apt-get update | |
sudo apt-get install bzr-fastimport # adds fast-export to bzr if you don't already have it | |
sudo apt-get upgrade git # make sure git is the most current! |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="X-UA-Compatible" content="IE=Edge" /> | |
<meta charset="utf-8" /> | |
<title>title</title> | |
</head> | |
<body> | |
<div id="foo" style="outline:none;">Test</div> | |
<script language="javascript" type="text/javascript"> |
data:text/html, <html> | |
<!-- | |
modified from http://pastebin.com/4z8tttuA | |
answer to http://stackoverflow.com/questions/15582152/turns-browser-into-notepad-but-cant-save-html-contenteditable | |
--> | |
<style type="text/css"> | |
body{overflow:hidden;} | |
#iframe{display:none;} | |
#div{position:absolute;top:0px;left:0px;width:100%;height:10000px;} | |
#saveButton{z-index:2;position:absolute;top:0px;right:0px;} |
// ... | |
@Signature(parameters=Array("post_type", "subdomain", "group", "title", "body", "author")) | |
def create_post(post_type: String, subdomain: String, group: String, title:String = null, body:String, author:String) = wrap { | |
// not sure if this is efficient, but you get the idea | |
val CreatePost = post_type match { | |
case "short_post" => CreateShortPost(GroupRef(subdomain, group), body, UserRef(author)) | |
case "long_post" => CreateLongPost(GroupRef(subdomain, group), title, body, UserRef(author)) | |
// ... case else invalid | |
} |