Skip to content

Instantly share code, notes, and snippets.

View sarcilav's full-sized avatar

Sebastian Arcila Valenzuela sarcilav

View GitHub Profile
curl -v http://quiet-journey-7568.herokuapp.com/registers.json -X POST -H "Content-Type: application/json" -d '{"lng": "-32.323", "lat": "114.133111", "imei": "loa0"}'
* Adding handle: conn: 0x7fe4ab803a00
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7fe4ab803a00) send_pipe: 1, recv_pipe: 0
* About to connect() to quiet-journey-7568.herokuapp.com port 80 (#0)
* Trying 23.23.214.121...
* Connected to quiet-journey-7568.herokuapp.com (23.23.214.121) port 80 (#0)
> POST /registers.json HTTP/1.1
function pulls2 {
bopen=0
while getopts ":o" Option
do
case $Option in
o ) bopen=1 ;;
esac
done
echo $bopen
if [ $bopen -eq 1 ]; then
this.myDataSource.responseSchema = {
fields: ["fila",{key:"dia",parser:"number"}]
};
var formatEvent = function ( el , oRecord , oColumn , oData) {
el.inner.HTML = oData;
oColumn="dia";
YAHOO.util.Dom.addClass(el, "cal-first-uh");
};
var myArray = new Array(288*7);
/*
main.c
Copyright 2009 Sebastian Arcila Valenzuela
*/
#include <gtk/gtk.h>
void
on_window_destroy (GtkObject *object, gpointer user_data)
{
gtk_main_quit();
<?xml version="1.0"?>
<interface>
<object class="GtkUIManager" id="uimanager1">
<child>
<object class="GtkActionGroup" id="actiongroup1">
<child>
<object class="GtkAction" id="menuitem1">
<property name="name">menuitem1</property>
<property name="label" translatable="yes">_Archivo</property>
</object>
#!/bin/bash
if [ $# -eq 1 ]
then
gnome-terminal --working-directory=$1 --tab -t Server --command="script/server" --tab -t Log --command="tail -f log/development.log" --tab -t Consola --command="script/console" --tab --command=bash
else
echo Bad command
echo Usage:
echo " lets-rails <directory>"
fi
#include <vector>
#include <algorithm>
#include <iostream>
using namespace std;
class WordsGame {
public:
int minimumSwaps(vector <string>, string);
};
(defun indent-all()
(interactive)
(mark-whole-buffer)
(indent-region)
)
(defun indent-all()
"indent whole buffer"
(interactive)
(delete-trailing-whitespace)
(indent-region (point-min) (point-max) nil)
(untabify (point-min) (point-max)))(interactive)
(global-set-key [f5] 'indent-all)
(defun indent-all()
"indent whole buffer"
(interactive)
(delete-trailing-whitespace)
(indent-region (point-min) (point-max) nil)
(untabify (point-min) (point-max)))(interactive)
(global-set-key [f5] 'indent-all)