This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"url": "http://validationhell.com", | |
"messages": [{ | |
"type": "info", | |
"message": "The Content-Type was “text/html”. Using the HTML parser." | |
}, { | |
"type": "info", | |
"message": "Using the schema for HTML5 + SVG 1.1 + MathML 3.0 + RDFa Lite 1.1." | |
}, { | |
"type": "error", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Defines a namespace for my application | |
MyApplication = {} | |
# A way to pass a callback both to jQuery's "ready" and turbolinks' "page:load" events | |
MyApplication.onDocumentReady = (callback) -> | |
$(document).ready(callback) | |
$(document).on('page:load', callback) | |
# Defines a function to load the SumoMe script | |
MyApplication.load_sumome_script = (data_sumo_site_id) -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AdminUser < ActiveRecord::Base | |
def after_sign_in_path | |
"/backend" | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function init_olark(c) {var f=window,d=document,l=f.location.protocol=="https:"?"https:":"http:",z=c.name,r="load";var nt=function(){ | |
f[z]=function(){ | |
(a.s=a.s||[]).push(arguments)};var a=f[z]._={ | |
},q=c.methods.length;while(q--){(function(n){f[z][n]=function(){ | |
f[z]("call",n,arguments)}})(c.methods[q])}a.l=c.loader;a.i=nt;a.p={ | |
0:+new Date};a.P=function(u){ | |
a.p[u]=new Date-a.p[0]};function s(){ | |
a.P(r);f[z](r)}f.addEventListener?f.addEventListener(r,s,false):f.attachEvent("on"+r,s);var ld=function(){function p(hd){ | |
hd="head";return["<",hd,"></",hd,"><",i,' onl' + 'oad="var d=',g,";d.getElementsByTagName('head')[0].",j,"(d.",h,"('script')).",k,"='",l,"//",a.l,"'",'"',"></",i,">"].join("")}var i="body",m=d[i];if(!m){ | |
return setTimeout(ld,100)}a.P(1);var j="appendChild",h="createElement",k="src",n=d[h]("div"),v=n[j](d[h](z)),b=d[h]("iframe"),g="document",e="domain",o;n.style.display="none";m.insertBefore(n,m.firstChild).id=z;b.frameBorder="0";b.id=z+"-loader";if(/MSIE[ ]+6/.test(navigator.userAgent)){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// fixes closing on click on https://gist.github.com/ctalkington/4093995 | |
// and hides all modals before opening a new one so they don't pile up | |
// leanModal v1.1 by Ray Stone - http://finelysliced.com.au | |
// Dual licensed under the MIT and GPL | |
(function($){ | |
$.fn.extend({ | |
leanModal: function(options) { | |
var defaults = { | |
top: 100, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
****************************************************************** | |
URL: https://github.com/ | |
TITLE: GitHub · Build software better, together. | |
KEYWORDS: | |
DESCRIPTION: Build software better, together. | |
****************************************************************** | |
****************************************************************** | |
URL: https://delicious.com/ | |
TITLE: Delicious |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello Xxxxx, | |
Thanks for the offer, but I have to reject it. | |
Although I know about building web scrapers, I think that automated recruitment is an increasing problem nowadays. My inbox gets spammed weekly by recruiters who got my contact details but didn't take the time to know a bit more about me before sending the email. | |
I don't feel that building such a tool would make the world a better place, or at least, it could make it a bit worse for me. | |
Regards, | |
Jaime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://www.digitalocean.com/community/articles/how-to-set-up-nginx-load-balancing | |
upstream firstbackend { | |
server 111.111.111.111 max_fails=3 fail_timeout=30s; | |
server 222.222.222.222 max_fails=3 fail_timeout=30s; | |
server 333.333.333.333 max_fails=3 fail_timeout=30s; | |
server 444.444.444.444 max_fails=3 fail_timeout=30s; | |
server 555.555.555.555 max_fails=3 fail_timeout=30s; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The following is a list of places where you can find job offers as a Rails developer: | |
https://twitter.com/currofile | |
https://twitter.com/domestikaempleo #spain only | |
http://www.workingwithrails.com/ | |
https://weworkremotely.com/jobs/search?term=rails | |
https://jobs.github.com/ | |
http://trabajosrails.com/ # spain only | |
http://www.indeed.com/q-Ruby-On-Rails-Developer-jobs.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# BEGIN custom prompt | |
show_git_branch() { | |
_branch="$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')" | |
test -n "$_branch" && echo -e " $_branch" | |
} | |
# prompt with ruby version | |
show_ruby_version() | |
{ | |
echo "$(ruby -e 'print RUBY_VERSION')" |