Skip to content

Instantly share code, notes, and snippets.

View xanido's full-sized avatar
🔥

Tim Anido xanido

🔥
View GitHub Profile
#!/usr/bin/env bash
# https://gist.github.com/xanido/2a160880bf66fcd257a385f9cb118d12
# what's happening?
# 1) first, curl the hover api searching for the first arg ($1)
# 2) pipe to `jq`, extract the results, discarding anything that isn't an exact keyword match and format as TSV
# 3) pipe TSV output of jq into a pretty table using `columns`. Use tab as the input delimiter
# 4) pipe the nice table to `sort` an sort by price, which when split by the separator ($) is the second key (2), (n)numeric sort, in (r)everse
curl \

Keybase proof

I hereby claim:

  • I am xanido on github.
  • I am xanido (https://keybase.io/xanido) on keybase.
  • I have a public key ASBnhbBPa_RhlMi8mer1sl_fTxJwtXdOEQSYrx64ynyVdwo

To claim this, I am signing this object:

@xanido
xanido / dabblet.css
Created August 9, 2013 02:01
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
body {
background: #eaeaea;
-webkit-font-smoothing: antialiased;
}
* {
box-sizing: border-box;
@xanido
xanido / dabblet.css
Created July 8, 2013 05:28
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
body {
background: #eaeaea;
-webkit-font-smoothing: antialiased;
}
* {
box-sizing: border-box;
@xanido
xanido / dabblet.css
Created July 8, 2013 04:49
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
body {
background: #eaeaea;
-webkit-font-smoothing: antialiased;
}
* {
box-sizing: border-box;
@xanido
xanido / dabblet.css
Created July 4, 2013 04:26
Menulog buttons
/**
* Menulog buttons
*/
body {
padding: 20px;
background: #ffffff;
min-height: 100%;
-webkit-font-smoothing: antialiased;
}
@xanido
xanido / fix_path_export_order-tim.patch
Created May 20, 2012 01:10
Drupal node_export path export order patch
diff --git node_export.module node_export.module
index 8fc4321..8a10baa 100755
--- node_export.module
+++ node_export.module
@@ -375,13 +375,13 @@ function node_export_prepare_node(&$original_node) {
$node->taxonomy = $new_taxonomy;
}
+ // Fix menu array
+ $node->menu = node_export_get_menu($original_node);
@xanido
xanido / README.markdown
Created April 11, 2012 07:20 — forked from Yavari/README.markdown
Bootstrap's Typeahead plugin extended (allowing for AJAX functionality) among other things

This is a fork of Bootstrap Typeahead that adds minimal but powerful extensions.

For example, process typeahead list asynchronously and return objects

  # This example does an AJAX lookup and is in CoffeeScript
  $('.typeahead').typeahead(
    # source can be a function
    source: (typeahead, query) ->
      # this function receives the typeahead object and the query string
@xanido
xanido / TableHelper.php
Created April 9, 2012 06:30
Symfony2 Console Table Helper
<?php
namespace Xanido\Console\Helper;
use Symfony\Component\Console\Helper\Helper as AbstractHelper;
use Symfony\Component\Console\Output\OutputInterface;
/**
* Text Table Helper
* @author Timothy Anido <xanido@gmail.com>