I hereby claim:
- I am johnkpaul on github.
- I am johnkpaul (https://keybase.io/johnkpaul) on keybase.
- I have a public key ASCQXaLzmpRi68-yrWO6Xj4-PdEOmQzXrG1sIlB75AIn4Ao
To claim this, I am signing this object:
function getComputedStyleCssText(element){ | |
var cssObject = window.getComputedStyle(element), | |
prop, | |
cssText, | |
cssAccumulator = []; | |
if(cssObject.cssText != ""){ | |
return cssObject.cssText; | |
} |
I hereby claim:
To claim this, I am signing this object:
def test_method | |
puts 'test' | |
end | |
l = -> { puts 'lambda' } | |
# Why does this print true?? | |
puts l.private_methods.include? :test_method |
This is a list of Ember components that can hopefully inspire your own solution to handle some really common cases. Please let me know of more.
fun! BeautifyAndRefresh() | |
set noconfirm | |
!grunt jsbeautifier | |
bufdo e! | |
set confirm | |
endfun | |
nmap <leader>b call BeautifyAndRefresh() |
node -e 'process.stdin.pipe(require("fs").createWriteStream(process.argv[1]))' FILENAME |
I want to know if I can achieve one particular goal with any particular module loader. Let me tell you a story.
I work on a large client side JavaScript application for a company with a fremium business model. Let's call it Freely. Freely's free experience is composed of modules A, B and C in the application. Once the user hands over their credit card, they enter the paid experience, which is composed of modules B-Z.
Each of modules A-Z is roughly the same size, so the free experience requires roughly 1/9th of the entire codebase in order to function correctly. I don't want the client to need to download all of the modules becuase only 1/100th of all users will actually end up paying. (The conversion rate is another issue, but at Freely, we're more focused on other things).
12:49 guesswho: oh shit | |
12:49 guesswho: it's there | |
12:49 guesswho: lol | |
12:49 guesswho: wow | |
12:50 johnkpaul: guesswho: it's working? | |
12:50 guesswho: yeah that's total insanity | |
12:50 johnkpaul: awesome, congratulations | |
12:50 pbor has left IRC (Ping timeout: 260 seconds) | |
12:50 guesswho: so simple but so long for me to do :( | |
12:50 tallest_red has left IRC (Ping timeout: 256 seconds) |
➜ /tmp wget http://www.jquery.com | |
--2013-01-24 11:50:09-- http://www.jquery.com/ | |
Resolving www.jquery.com... 70.32.120.34 | |
Connecting to www.jquery.com|70.32.120.34|:80... connected. | |
HTTP request sent, awaiting response... 301 Moved Permanently | |
Location: http://jquery.com/ [following] | |
--2013-01-24 11:50:09-- http://jquery.com/ | |
Resolving jquery.com... 70.32.120.34 | |
Reusing existing connection to www.jquery.com:80. | |
HTTP request sent, awaiting response... 200 OK |
//in your application, rather than using window.location to get the current url | |
App.getLocation = function(){ | |
return window.location.protocol + '//' + window.location.host | |
+ '/' + Backbone.history.options.root + Backbone.history.getFragment() | |
} |