Skip to content

Instantly share code, notes, and snippets.

View 0v3rth3d4wn's full-sized avatar

Ivo Karadzhov 0v3rth3d4wn

View GitHub Profile
@0v3rth3d4wn
0v3rth3d4wn / weather.sh
Created February 16, 2017 08:09 — forked from taylorotwell/weather.sh
Weather CLI
alias weather='curl -s wttr.in | sed -n "1,7p"'
@0v3rth3d4wn
0v3rth3d4wn / wrapper
Created November 28, 2016 11:43
js / jquery wrapper
;(function ( $, window, document, undefined ) {
})( jQuery, window, document );
@0v3rth3d4wn
0v3rth3d4wn / bower.json
Last active June 16, 2016 09:15 — forked from jarrodirwin/storagePolyfill.js
LocalStorage/SessionStorage Polyfill with Safari Private Browsing support.
{
"name": "storagepolyfill",
"version": "0.0.2",
"authors": [
"Ivo Karadzhov <ivo@ralev.com>"
],
"description": "LocalStorage/SessionStorage Polyfill with Safari Private Browsing support.",
"main": [
"./storagePolyfill.js"
],
;(function ( $, window, document, undefined ) {
//url to settings json file
var settingsJSON = '',
settings = {};
$(document).on('click', '.selector', function(event) {
event.preventDefault();
/* Act on the event */
$.getJSON( settingsJSON, function( data ) {
@0v3rth3d4wn
0v3rth3d4wn / composer.json
Last active October 16, 2015 11:36
Enable Editing of the Entry Payment Details
{
"name": "wptailor/gravityforms-edit-entry-payment-details",
"description": "Enable the display of the payment details panel on the entry detail page and allow editing of those details for entries which were not processed by a payment add-on.",
"type": "wordpress-plugin",
"license": "GPL3+",
"authors": [
{
"name": "Ivo Karadzhov",
"email": "ivo@ralev.com"
{
"bold_folder_labels": true,
"color_scheme": "Packages/User/Monokai Soda.tmTheme",
"default_line_ending": "unix",
"detect_slow_plugins": false,
"draw_minimap_border": true,
"ensure_newline_at_eof_on_save": true,
"font_face": "Monaco",
"font_size": 9,
"highlight_line": true,
<?php if( has_post_thumbnail( get_the_id() ) ):?>
<?php echo get_the_post_thumbnail( get_the_id(), 'main-post-thumb', array( 'alt' => get_the_title()) );?>
<?php else:?>
<?php echo'<img src="'.get_stylesheet_directory_uri().'/assets/img/default_post_thumb_main.png" width="170" height="116" alt="'.get_the_title().'">';?>
<?php endif;?>
{
"listings": [
{
"id": 600496,
"listing_id": "14790897",
"latitude": "33.910042",
"longitude": "-118.348839",
"org_id": "carets",
"price": "525000.0",
"beds": 3,
<?=implode( ' / ', array_map( function( $term ) { return '<a href="' . get_term_link( $term, 'category' ) . '">' . get_term( $term, 'category' )->name . '</a>'; } , wp_list_pluck( get_the_terms( $article->ID, 'category' ), 'term_id' ) ));?> /<?php _e( 'by', 'premitheme' );?> <a href="<?=get_author_posts_url( $article->post_author );?>"><?php the_author_meta( 'display_name', $article->post_author ); ?></a>
{
"id": 2,
"listing_id": "08255435",
"agent_id": "X49052",
"status": "P ",
"city": "Los Angeles",
"state": "CA",
"zip": 90006,
"country_code": "US",
"price": "530000.0",