Skip to content

Instantly share code, notes, and snippets.

@zigi74
zigi74 / host-react-app-on-apache-server.md
Created August 10, 2021 07:54 — forked from ywwwtseng/host-react-app-on-apache-server.md
Host react application on Apache server

Host react application on Apache server

Step 1 : Create your app

$ npm install -g create-react-app 
$ create-react-app my-app

Step 2 : Build it for production

@zigi74
zigi74 / vanilla-js-cheatsheet.md
Created July 17, 2017 06:59 — forked from thegitfather/vanilla-js-cheatsheet.md
Vanilla JavaScript Quick Reference / Cheatsheet
@zigi74
zigi74 / food-example-plugin.php
Created March 10, 2017 11:49 — forked from carlodaniele/food-example-plugin.php
An example plugin for WPMU DEV readers
<?php
/**
* @package Food_example_plugin
* @version 1.0
*/
/*
Plugin Name: Food example plugin
Plugin URI: http://wordpress.org/extend/plugins/#
Description: This is an example plugin for WPMU DEV readers
Author: Carlo Daniele
@zigi74
zigi74 / jquery.cookie.js
Created May 25, 2016 20:55 — forked from ryanneufeld/jquery.cookie.js
jquery.cookie.js
@zigi74
zigi74 / .block
Last active March 24, 2016 16:15 — forked from mbostock/.block
Save SVG as PNG
license: gpl-3.0
@zigi74
zigi74 / gist:293f9b6f4e1a1382d445
Created October 14, 2015 18:25 — forked from billerickson/gist:1325304
List Posts tagged 'thesis-tip'
<?php
/**
* List Posts tagged 'thesis-tip'
*
*/
function be_display_thesis_tip() {
$args = array(
'tag' => 'thesis-tip',
'posts_per_page' => '-1',
@zigi74
zigi74 / bootstrap-em.less
Last active August 29, 2015 14:27 — forked from jasny/bootstrap-em.less
Use em or rem font-size in Bootstrap 3
/**
* Use em or rem font-size in Bootstrap 3
*/
@font-size-root: 14px;
@font-unit: 0rem; // Pick em or rem here
// Convert all variables to em
(function() {
if ("-ms-user-select" in document.documentElement.style && navigator.userAgent.match(/IEMobile\/10\.0/)) {
var msViewportStyle = document.createElement("style");
msViewportStyle.appendChild(
document.createTextNode("@-ms-viewport{width:auto!important}")
);
document.getElementsByTagName("head")[0].appendChild(msViewportStyle);
}
})();