Skip to content

Instantly share code, notes, and snippets.

View moiseshilario's full-sized avatar
✌️

Moisés Hilario Rodrigues moiseshilario

✌️
View GitHub Profile
@liamcurry
liamcurry / gist:2597326
Created May 4, 2012 19:56
Vanilla JS vs jQuery

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@jareware
jareware / SCSS.md
Last active July 1, 2024 09:25
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso

@kevin-smets
kevin-smets / iterm2-solarized.md
Last active July 22, 2024 18:26
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@Joseph-N
Joseph-N / _user.html.erb
Last active April 19, 2019 12:50
Rails - Load more with jQuery and Ajax Code snippets - Tutorial link http://josephndungu.com/tutorials/rails-load-more-results-using-jquery-ajax
<div class="record" data-id="<%= user.id %>">
<p><b>ID: </b> <%= user.id %></p>
<p><b>Name: </b> <%= user.name %></p>
<p><b>Location: </b> <%= user.location %> </p>
<p><%= link_to 'Show', user %> | <%= link_to 'Edit', edit_user_path(user) %> | <%= link_to 'Destroy', user, method: :delete, data: { confirm: 'Are you sure?' } %> </p>
</div>
@fabricionaweb
fabricionaweb / settings.json
Last active July 12, 2021 11:07
VSCode Italic settings for Operator Mono
{
"workbench.colorTheme": "One Dark Pro",
"workbench.tree.renderIndentGuides": "none",
"terminal.integrated.fontSize": 13,
"terminal.integrated.fontFamily": "JetBrains Mono Light",
"terminal.integrated.fontWeightBold": "500",
"terminal.integrated.rightClickBehavior": "paste",
"terminal.external.osxExec": "iTerm2.app",
"terminal.integrated.copyOnSelection": true,
"editor.fontFamily": "JetBrains Mono Light",
@MiguelMachado-dev
MiguelMachado-dev / readme.md
Last active November 28, 2020 02:10
Very quick Eslint configuration for ReactJS - Airbnb standard

Install the packages

yarn add eslint -D

Run yarn eslint --init and set your configuration to use airbnb and create a javascript configuration file.

yarn add prettier eslint-config-prettier eslint-plugin-react-hooks eslint-plugin-prettier babel-eslint eslint-plugin-jsx-a11y -D

To use absolute paths

If you want to use absolute paths just copy the .eslintrc.js below, else, delete the settings object in it.