Skip to content

Instantly share code, notes, and snippets.

View arbales's full-sized avatar

Austin Bales arbales

View GitHub Profile

First, I appreciate that the team isn't resting on its laurels and is willing to take risks and do redesigns, please keep going! More iteration!

  1. I prefer the menubar design found in the last version of Quip sheets
  2. The new conversation view is header to read without bubbles
  3. The Share CTA in the conversation view is too bright / distracting
  4. The (x) floating button to hide the conversation view isn't salient enough and the button to restore it is buried in the Application menu.
@arbales
arbales / gist:8203385
Created December 31, 2013 23:43
Illustrates downloading a file in MacRuby. — From a question on StackOverflow about the corruption of downloaded files in MacRuby.
def download_request(url, filePath:path, progressIndicator:progressBar)
file = File.open(path, "w+")
begin
Net::HTTP.get_response URI.parse(url) do |response|
if response['Location']!=nil
puts 'Direct to: ' + response['Location']
return download_request(response['Location'], filePath:path, progressIndicator:progressBar)
end
render: function(){
var tm = window.ReactTemplates[this.templateName];
if (typeof tm === 'function') {
return tm.apply(this, arguments);
} else {
// however errors work in React
}
}
<form class="commentForm" onSubmit={this.handleSubmit}>
<input type="text" placeholder="Your name" ref="author" />
<input
type="text"
placeholder="Say something..."
ref="text"
/>
</form>
# Take a MM:SS.MS formatted string and return an integer of MS
def timestring_to_ms(string)
a=[1, 1000, 60000]*2
string.split(/[:\.]/).map{|time| time.to_i*a.pop}.inject(&:+)
end
@arbales
arbales / application.hbs
Created May 9, 2013 02:43
Actions specified inside the {{render}} helper appear not to reach their specified controller.
{{#render "header"}}
<header class="header-main">
<!--
* Dropping the debugger here has this.controller properly
set (<Ab.HeaderController:emberXXX>).
* this.view is null, although render.js#L57 correctly finds the object named 'view:header'
* Calling this.controller.toggleMode() from the debugger works as expected.
-->

SAN FRANCISCO, Ca. — "Salesforce brings Santa's list to the cloud"

Salesforce.com (CRM) today announced a joint venture with the Coca Cola Corporation (KO), the owners of Santa's life spirit, called GiftForce.com.

Salesforce.com CEO and co-founder Marc Benioff spoke at a press event held in Rejkavik, "We're extremely excited to work with a true leader in building customer relationships – Santa Klaüs and the North Pole Division at Coke."

"DemandForce will change the way Santa runs his workshop," said Sqent Forest, Executive Director of Elf Operations at Coke's North Pole Division. "Until Salesforce.com, we've relied on legacy IT systems from as far back at 1800 to manage the world's largest distributed gift registry"

Forest noted that North Pole has thousands of gift service representatives, responsible for opening each letter received by the Coke subsidiary, and said that "Salesforce.com will literally change the game in social holiday Santa gift requests… we're ready to be reborn cloud."

@import "object/*.png"
@import "actions/*.png"
@include all-object-sprites
@include all-actions-sprites
/*
A mixin to create sprited icons that respond to
:hover, :active, and .active with a different image.
Meant to be paired with icons generated in the images-neue folder.
@arbales
arbales / gist:3361800
Created August 15, 2012 17:32
Tag-based Styling

At Do, we've been working hard to improve the quality and maintainability of our CSS. Our Rails (3.2.6) backend is up-to-date, well-standardized and fully tested, and we want to bring that to our front-end as well.

One issue we've discussed recently is tag-based styles. One of our developers wrote…

we have avoided tag based rules because of performance, browsers read the rules right to left so if you end the rule with a tag, the browser has to start from a larger set of things before it narrows down the rule.

The reality is that our stylesheets contain quite a number of tag-based rules – and worse than any performance issue we've experienced is the litany of overrides tag-based styles can necessitate down the line.

@arbales
arbales / mountain-lion-brew-setup.markdown
Created August 8, 2012 23:24 — forked from myobie/mountain-lion-brew-setup.markdown
Get Mountain Lion and Homebrew to Be Happy

Get Mountain Lion and Homebrew to Be Happy

1) Install XCode 4.4 into /Applications

Get it from the App Store.

2) Install Command Line Tools

In XCode's Preferences > Downloads you can install command line tools.