Skip to content

Instantly share code, notes, and snippets.

View javifelices's full-sized avatar

Javi Felices javifelices

View GitHub Profile
@willurd
willurd / web-servers.md
Last active April 28, 2025 14:34
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@nucliweb
nucliweb / Curso-DevTools.md
Last active April 8, 2021 03:46
Desarrollo Frontend con Developer Tools
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
@nucliweb
nucliweb / Styleguides.md
Created December 17, 2015 18:50
Styleguides

Tipos de Guias de estilo

  • Content & editorial style guides
  • Branding & identity style guides
  • Development style guides & coding standards
  • Human Interface Guidelines
  • Frontend style guides

Content & editorial style guides

@nucliweb
nucliweb / CSS-Tools.md
Last active June 24, 2024 17:11
CSS Tools
@AmrEldib
AmrEldib / git.lua
Created February 29, 2016 05:33
Customize Windows Cmder Prompt
---
-- Find out current branch
-- @return {false|git branch name}
---
function get_git_branch()
for line in io.popen("git branch 2>nul"):lines() do
local m = line:match("%* (.+)$")
if m then
return m
end
@javivelasco
javivelasco / reactive-2016.md
Last active January 10, 2023 19:45
Proposal for lightning talk at Reactive Conf 2016

Please star ⭐️ the gist to help! This is a proposal for a ⚡️ talk at Reactive Conference.

Styling Components in React Toolbox 2

I wrote react-toolbox and presented it almost a year ago in lighning talk at Reactive Conf 2015 in Bratislava. At first it was just a proof of concept of a component library styled with CSS Modules and SASS. Now the project has grown quite a bit, and during this year there has been tons of changes and lessons learned.

Theming and customization is one of the most difficult and interesting problems to solve. For the first version we needed a custom Webpack loader to generate themes and doing simple style overrides was very painful. Today I'm working on a new playground that will allow you try CSS Modules live, and to create React Toolbox themes on the f

@acanza
acanza / woo-archive-custom-cart-button-text.php
Created June 21, 2016 15:37
Avisa si un producto ya está en el carro
/**
* Cambia el texto del botón añadir al carro en la página del producto
*/
add_filter('woocommerce_product_single_add_to_cart_text', 'woo_custom_cart_button_text');
function woo_custom_cart_button_text() {
global $woocommerce;
foreach($woocommerce->cart->get_cart() as $cart_item_key => $values ) {
$_product = $values['data'];
if( get_the_ID() == $_product->id ) {
return __('Ya está en el carro - ¿Añadir otro?', 'woocommerce');
@ManzDev
ManzDev / settings.json
Last active July 31, 2024 18:57
VSCode (settings.json)
{
/* Terminal WSL */
"terminal.integrated.fontFamily": "'VictorMono Nerd Font', 'Victor Mono', 'Inconsolata for Powerline', 'Envy Code R', Consolas, Monospace",
"terminal.integrated.copyOnSelection": true,
"terminal.integrated.gpuAcceleration": "on",
"terminal.integrated.letterSpacing": 0,
"terminal.integrated.cursorBlinking": true,
"terminal.integrated.cursorStyle": "block",
"terminal.integrated.fontWeight": "400",
"terminal.integrated.fontWeightBold": "600",
HIRE Me For Your Project Support :)
Telegram: https://t.me/LinuxGun
#!/bin/bash
# Completely Remove Apache Ubuntu
service apache2 stop
apt purge apache2
apt remove apache2.*
apt autoremove
whereis apache2