Skip to content

Instantly share code, notes, and snippets.

View rodrigonehring's full-sized avatar
🔋

Rodrigo Eduardo Nehring rodrigonehring

🔋
  • joinville - brazil
View GitHub Profile
@lastday154
lastday154 / csv.js
Created June 6, 2018 02:14
busboy parse multi-part form lambda
'use strict';
const csv = require('csvtojson');
const stringToRow = (csvStr) => new Promise((resolve, reject) => {
csv({
noheader: true,
output: 'csv'
})
.fromString(csvStr)
@alekseykulikov
alekseykulikov / index.md
Last active October 12, 2024 17:02
Principles we use to write CSS for modern browsers

Recently CSS has got a lot of negativity. But I would like to defend it and show, that with good naming convention CSS works pretty well.

My 3 developers team has just developed React.js application with 7668 lines of CSS (and just 2 !important). During one year of development we had 0 issues with CSS. No refactoring typos, no style leaks, no performance problems, possibly, it is the most stable part of our application.

Here are main principles we use to write CSS for modern (IE11+) browsers:

@paulccarey
paulccarey / cap_select_git_branch.rb
Created October 27, 2010 11:07
capistrano select git branch
set :branch do
branches=`git branch -r | sed "1 d"`.split
branches.map { | b | b.gsub!("origin/","") }
puts "What branch would you like to deploy from?"
branches.each_index do | i |
puts((i+1).to_s + ": " + branches[i])
end