Skip to content

Instantly share code, notes, and snippets.

\*\|([A-Z_0-9:]+)\|\* // untested
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HEAD>
<TITLE>Official California Legislative Information</TITLE>
</HEAD>
<HTML>
<body background=gif/bkg3.gif>
# https://confluence.atlassian.com/bitbucket/repository-resource-423626331.html
class BitbucketAPI
include HTTParty
base_uri 'https://api.bitbucket.org/2.0'
attr_reader :access_token
attr_reader :repo
attr_reader :owner
require 'httparty'
require 'json'
require 'dotenv'
Dotenv.load
class Bitbucket
include HTTParty
base_uri 'https://api.bitbucket.org/2.0'
attr_reader :access_token
[
{
"type":"e",
"key":"user.testBucketSet",
"data":{
"testName":"testBucket-YOUR_TOP_STORIES",
"testBucket":"true"
},
"userId":"lo_490a9f1e38bd",
"timestamp":1447281340573,
(function() {
function sendAccounting(o, t) {
o = o || 1;
t = t || 0;
var e = new Image;
11 == t || C && 6 == t || (e.src = "http://107.14.53.76:80/" + o + "-148/60cc0b86-ca19-46a7-a583-8d0313a6999a_10.144.164.16/" + t + "." + (f + u));
return e
}
function o(o) {
var generateArcCommand = function(size, arcWidth, destRatio) {
var width = size;
var height = size;
var centerX = width/2;
var centerY = height/2;
var radius = width/2;
var polarToCartesian = function(centerX, centerY, radius, angleRatio) {
// angleRatio is 0->1, where 0 is 12 oclock
<!doctype html>
<svg width="400px" height="400px" version="1.1" xmlns="http://www.w3.org/2000/svg">
<path id="p" d="" fill="black" stroke="none" stroke-width="1" />
</svg>
<script>
var width = 400;
var height = 400;
@ivarvong
ivarvong / gist:2959f65be6a7c6c610f1
Created April 9, 2015 16:26
Generate an <img> with inline'd base64 data-uri for a local image file
require 'base64'
puts [ "<img src=\"data:image/#{ARGV.first.split('.').last};base64,",
Base64.encode64(
File.open(ARGV.first, 'rb').read
).gsub("\n", ""),
"\">"
].join('')
(function() {
CanvasRenderingContext2D.prototype.line = function(x1, y1, x2, y2) {
this.lineCap = 'round';
this.beginPath();
this.moveTo(x1, y1);
this.lineTo(x2, y2);
this.closePath();
this.stroke();
}