Skip to content

Instantly share code, notes, and snippets.

View wallyqs's full-sized avatar
🌎

Waldemar Quevedo wallyqs

🌎
  • Synadia Communications, Inc.
  • San Francisco
  • X @wallyqs
View GitHub Profile
¿Qué es ésyo?
@wallyqs
wallyqs / nats_sinatra.rb
Created February 4, 2012 17:34
Sample Fibers+EventMachine usage with NATS
require 'thin'
require 'sinatra/base'
require 'nats/client'
require 'fiber'
require 'json'
class App < Sinatra::Base
def initialize
@nats = NATS.start(:uri => "nats://localhost:4222")
@wallyqs
wallyqs / gist:3464946
Created August 25, 2012 12:34
Simple request from emacs
(let* ((url-request-method "POST")
(url-request-extra-headers '(("Content-Type" . "application/json")))
(url-request-data
(encode-coding-string (concat "{"
"\"content\": \"* HELLO WORLD\""
"}"
) 'utf-8)
)
) ;end of let varlist
(url-retrieve "http://127.0.0.1:9393/api/text.json"
* DONE When including another file lines
Should say "Note it will end with nothing other than a list item"
#+INCLUDE: "./spec/html_examples/only-list.org" :lines "2-3"
* DONE When including another file lines with bad options
In this case it will include up to the second line.
@wallyqs
wallyqs / Hello.org
Last active December 25, 2015 15:09

Example with line breaks

The following should be rendered

module TestWith
  attr_reader :counter, :key
  
  def initialize(key)
    transition(key)
  end
@wallyqs
wallyqs / convert.rb
Created December 8, 2013 13:11
Org mode converting plugin for Jekyll that disables Liquid tags and YAML, relying instead of Org mode features only
require 'org-ruby'
module Jekyll
class OrgConverter < Converter
safe true
priority :low
def matches(ext)
ext =~ /org/i
@wallyqs
wallyqs / abroute.js
Last active January 3, 2016 16:09
Checking out Google Maps v3 API
function initialize() {
var omotesandoLatLng = new google.maps.LatLng(35.66508, 139.71248); // Omotesando
var mapOptions = {
center: omotesandoLatLng,
zoom: 15,
styles: [
{
stylers: [

Support for :exports options from code blocks

According to the Org mode docs, it is possible to customize whether the code block will be exported or not.

About the #+RESULTS: block

Using Org Babel features, it is possible to set :results output to a code block and render the results within a #+RESULTS: code block:

@wallyqs
wallyqs / org-tests-issue-61.org
Last active August 29, 2015 13:57
org tests
  • Outside a code block, everything is escaped

(kbd \U+FFE2C-c . C\U+FFE2)

@kbd{C-c . C}

<kbd>C-c . C</kbd>)

  • Default way, kbd tags would be escaped within a code block
@wallyqs
wallyqs / a-sample.org
Last active August 29, 2015 13:57
Current status of org-converge tool

Setting up Fluentd example

Introduction

The following will setup and configure fluentd on a node using the org-converge tool.

It can be installed via Rubygems: