Put flip
somewhere in your $PATH
and chmod a+x
it.
Copy fuck
into ~/.bashrc
.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
ActivityTweet | |
generic_activity_highlights | |
generic_activity_momentsbreaking | |
RankedOrganicTweet | |
suggest_activity | |
suggest_activity_feed | |
suggest_activity_highlights | |
suggest_activity_tweet |
# Hello, and welcome to makefile basics. | |
# | |
# You will learn why `make` is so great, and why, despite its "weird" syntax, | |
# it is actually a highly expressive, efficient, and powerful way to build | |
# programs. | |
# | |
# Once you're done here, go to | |
# http://www.gnu.org/software/make/manual/make.html | |
# to learn SOOOO much more. |
// Problem. | |
// | |
// I wanted for this.store.find("account") in AccountRoute's model hook to hit /account instead of /accounts so I ended up | |
// creating App.AccountAdapter where I subclass App.ApplicationAdapter and override pathForType. | |
// See https://github.com/emberjs/data/blob/v1.0.0-beta.6/packages/activemodel-adapter/lib/system/active_model_adapter.js#L65 | |
// | |
// Note: In my app I'm using DS.ActiveModelAdapter. | |
// | |
// <3 https://github.com/robyurkowski for help. |
// The API accepts the page parameter and returns the pagination info in meta | |
{ | |
"messages": [ ... ], | |
"meta": { | |
"pagination": { | |
"total_pages": 3, | |
"current_page": 1, | |
"total_count": 55 | |
} |
# So, this is pretty horrible. If we just encode using btoa, any UTF-8 chars cause an error. | |
# If we use either of the workarounds on MDN[1], the £ sign is encoded wrong. I suspect | |
# Excel totally sucking at encodings is the reason why. So, the workaround is, to use | |
# the MDN workaround on chars with values > 255, and allow chars 0-255 to be encoded | |
# as is with btoa. Note that if you use either of the workarounds on MDN, chars | |
# 128-255 will be encoded as UTF-8, which includeds the £ sign. This will cause excel | |
# to choke on these chars. Excel will still choke on chars > 255, but at least the £ | |
# sign works now... | |
# [1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Base64_encoding_and_decoding |
App.accountId = 'asdf'; | |
App.RESTAdapter = DS.RESTAdapter.extend({ | |
// Scope all ajax calls. | |
ajax: function(url, type, hash) { | |
if (Ember.isEmpty(hash)) hash = {}; | |
if (Ember.isEmpty(hash.data)) hash.data = {}; | |
hash.data.account_id = App.accountId; | |
this._super(url, type, hash); | |
} |
--colour | |
-I app |
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.
# Namespace for classes and modules that handle serving documentation over HTTP # @since 0.6.0