Skip to content

Instantly share code, notes, and snippets.

View agoraclx's full-sized avatar

Agus Wisnu agoraclx

View GitHub Profile
@agoraclx
agoraclx / javascript.json
Created January 27, 2021 19:51 — forked from marktellez/javascript.json
Devmentor Live ReactJS VS Code User Snippets
{
// Place your snippets for javascript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
@agoraclx
agoraclx / gist:572d42c48eedfafbe38f6a6c4dd11b64
Created February 10, 2020 09:50 — forked from Mikodes/gist:be9b9ce42e46c3d4ccb6
All Media queries for resolutions
/* (320x480) iPhone (Original, 3G, 3GS) */
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
/* insert styles here */
}
/* (320x480) Smartphone, Portrait */
@media only screen and (device-width: 320px) and (orientation: portrait) {
/* insert styles here */
}
// Clean wp_head from junk
add_action('after_setup_theme', 'start_cleanup');
function start_cleanup() {
// Initialize the cleanup
add_action('init', 'cleanup_head');
}
// WordPress cleanup function
function cleanup_head() {
remove_action('wp_head', 'rsd_link'); // EditURI link
@agoraclx
agoraclx / wpa-clean-header.php
Created October 20, 2018 06:26 — forked from Auke1810/wpa-clean-header.php
create a clean wordpress header and remove unnecessary clutter.
<?php
/*
Plugin Name: wordpress assist clean header
Plugin URI: http://www.wordpressassist.nl/
Description: Remove shortlink hook
Version: 1.0
Author: AukeJomm
Author URI: http://www.aukejongbloed.nl
*/
@agoraclx
agoraclx / git.css
Created December 18, 2017 12:41 — forked from neilgee/git.css
Git Command Line Reference - Notes and reminders on Git set up and commands
/*
* Set up your Git configuration
*/
git config --global user.email "you@yourdomain.com"
git config --global user.name "Your Name"
git config --global core.editor "nano"
@agoraclx
agoraclx / gist:4bf7aea332a2c1e9d4365e07cdee82d4
Created December 14, 2017 11:21
How to clone a specific branch in git
git clone -b <branch> <remote_repo>