Skip to content

Instantly share code, notes, and snippets.

View jesusoterogomez's full-sized avatar
🚤
shipping

Jesús Otero jesusoterogomez

🚤
shipping
View GitHub Profile
<style>
* {
box-sizing: border-box;
}
.application {
background: #131313;
color: #FFF;
font-family: monospace;
font-size: 11pt;
@jesusoterogomez
jesusoterogomez / .eslintrc
Last active November 5, 2015 09:53
ESLint Rules for ES6 Environments
//
// ESLint Rules for ES6
// Based on Airbnb's Style Guide - https://github.com/airbnb/javascript
//
// requires 'eslint' npm package
//
{
"env": {
"browser": true,
@jesusoterogomez
jesusoterogomez / .eslintrc
Last active November 5, 2015 09:52
ESLint Rules for ES6 + React.js
//
// ESLint Rules
// Based on Airbnb's Style Guide - https://github.com/airbnb/javascript
//
// with added ES6 and JSX Rules for React.js
//
// requires 'eslint' and 'eslint-plugin-react' npm packages
//
{
@jesusoterogomez
jesusoterogomez / hyphenate.css
Created October 9, 2015 07:49
CSS Cross Browser Solution for Word Wrapping in Fluid Width Containers
/* Support: Internet Explorer 8+, Firefox 6+, iOS 4.2, Safari 5.1+ and Chrome 13+. */
/* Needed for old IE support, but words are broken up letter-by-letter */
-ms-word-break: break-all;
word-break: break-all;
/* Non standard for webkit */
word-break: break-word;
/* Modern CSS3 Hyphenation with locale support */
@jesusoterogomez
jesusoterogomez / percentagewidth.scss
Created August 18, 2015 08:31
Equal percentage width elements in one row using SASS
/*
Counts elements and applies percentage width to
fit them in one row.
##################################################
# i.e: 4 elements = 25% width; #
# note: Many elements create long CSS output #
##################################################
*/
@jesusoterogomez
jesusoterogomez / index.html
Last active August 29, 2015 14:16
Atomic Switch
<input class="atomic switch" type="checkbox" name="atomic" checked>
@jesusoterogomez
jesusoterogomez / Category to Radio.php
Last active August 29, 2015 14:13
Transforms Categories Checkboxes Selection into Radio Buttons in Wordpress.
<?php
# paste into functions.php in theme
add_action( 'admin_footer', 'categoryRadioButton' );
function categoryRadioButton(){
echo '<script type="text/javascript">';
echo 'jQuery("#categorychecklist input, #categorychecklist-pop input, .cat-checklist input")';
echo '.each(function(){this.type="radio"});</script>';
}
?>