Skip to content

Instantly share code, notes, and snippets.

View ariona's full-sized avatar
🏠
Working from home

Rian Ariona ariona

🏠
Working from home
View GitHub Profile
@ariona
ariona / _group-search-result.md
Created April 15, 2016 15:33
Grouping wordpress search result by post types

##Grouping wordpress search result by post types

@ariona
ariona / webpack.config.js
Created April 29, 2016 07:41 — forked from learncodeacademy/webpack.config.js
Sample Basic Webpack Config
var debug = process.env.NODE_ENV !== "production";
var webpack = require('webpack');
module.exports = {
context: __dirname,
devtool: debug ? "inline-sourcemap" : null,
entry: "./js/scripts.js",
output: {
path: __dirname + "/js",
filename: "scripts.min.js"
@ariona
ariona / _readme.md
Created June 14, 2016 02:19
Hiding Screen Reader Text
@ariona
ariona / index.jade
Created August 5, 2016 09:05
xOyPaa
.builder
#elements
.element(data-element-name="logo")
.element-icon
i.fa.fa-adn
.element-name Logo
.element-controls
button.delete-element
i.fa.fa-trash-o
button.options
@ariona
ariona / index.jade
Created September 1, 2016 10:14
PGoPqV
button.fetch Fetch
ul.items
input.purchase-code(type="text")
button.verify Verify purchase code
@ariona
ariona / Preferences.sublime-settings
Last active September 27, 2016 07:28
Exclude node_modules from Sublime search
{
"folder_exclude_patterns": [".svn", ".git", ".hg", "CVS", "node_modules"]
}
@ariona
ariona / fill.css
Created December 5, 2016 09:57
svg text background
.site-hero .intro-block svg .img-layer {
fill: url(#p-img);
}
@ariona
ariona / index.css
Created December 14, 2016 08:32
Customizable svg background image
/* Use this as inline css */
el{
background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="14" viewBox="0 0 29 14" width="29"><path fill="#d1d1d1" d="M9.37727 3.625l5.08154 6.93523L19.54036 3.625"/></svg>') center right repeat-x;
}
@ariona
ariona / style.css
Created January 9, 2017 08:02
Element Flickr CSS Animation
@keyframes link-shudder
{
0% { margin-bottom:0;}
1% { transform: translate(0px,0px); }
2% { transform: translate(-6px,-3px); }
3% { transform: translate(0px,0px); }
10% { filter:blur(0px);}
15% { filter:blur(3px);}
20% { filter:blur(0px);}
27% { transform: translate(0px,0px); }
@ariona
ariona / admin.js
Created March 28, 2017 12:06
autosaving post meta
jQuery('button').on('click', function(){
...
wp.autosave.server.triggerSave();
...
})