Skip to content

Instantly share code, notes, and snippets.

@cristacheda
cristacheda / atom-packages.txt
Last active November 23, 2018 08:26
List of packages used on Atom
https://atom.io/packages/autocomplete-font-awesome
https://atom.io/packages/autocomplete-font-awesome
https://atom.io/packages/color-picker
https://atom.io/packages/wordpress-autocomplete
https://atom.io/packages/zp-acf-snippets
Fira Mono, Menlo, Consolas, DejaVu Sans Mono, monospace
https://github.com/mozilla/Fira/releases/latest
https://github.com/hbin/top-programming-fonts/raw/master/Menlo-Regular.ttf
@cristacheda
cristacheda / styles.less
Last active June 19, 2018 06:38
CSS for Atom
atom-text-editor {
background-color: rgba(36, 39, 46, 0.99);
}
// Font used in the editor
Fira Mono
<script type="text/javascript">
jQuery(document).ready(function($) {
jQuery('form').submit(function(){
for( key in inc_popups ) {
var item = inc_popups[key];
var data = item.extend.data;
// To close any open popup remove the condition...
if ( data.popup_id == 1729 ) { //use your own popup_id here
item.extend.close_popup();
}
'.pane .editor:not([mini])':
'tab': 'emmet:expand-abbreviation-with-tab'
'.platform-darwin atom-text-editor':
'cmd-shift-L': 'grammar-selector:show'
@cristacheda
cristacheda / price.php
Created February 27, 2017 19:13
woocommerce if product is in category
//Check category
global $post;
$terms = wp_get_post_terms( $post->ID, 'product_cat' );
foreach ( $terms as $term ) $categories[] = $term->slug;
if ( in_array( 'sacouri', $categories ) ) {
echo "<div style='display: none;'>sacouri</div>";
} elseif ( in_array( 'camasi', $categories ) ) {
echo "<div style='display: none;'>camasi</div>";
} elseif ( in_array( 'pantofi', $categories ) ) {
@import 'normalize';
@import 'animations';
@import 'layout';
@import 'helpers';
@import 'font-awesome';
@import 'variables';
body {
font-size: 16px;
line-height: 1.4;
(function($) {
})( jQuery );
.alignleft {
float: left;
margin-right: 20px;
}
.alignright {
float: right;
margin-left: 20px;
}
.aligncenter {
display: block;
.wrapper {
width: 100%;
max-width: 1200px;
margin-left: auto;
margin-right: auto;
}
.col {
width: 100%;
display: flex;
flex-direction: column;
# Configuration for WPDistillery executed by setup.sh
#
# Author: Flurin Dürst
# URL: https://wpdistillery.org
#
# For detailed instructions on this file read the config.yml-documentation at
# https://wpdistillery.org/documentation/config-yml-documentation/
#
# File Version: 1.6.4