Skip to content

Instantly share code, notes, and snippets.

View sarcilav's full-sized avatar

Sebastian Arcila Valenzuela sarcilav

View GitHub Profile
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)
#!/usr/bin/python
import urllib2
import os
import sys
url = str(sys.argv[1])
htmlfile = "en.html"
urlread = lambda url: urllib2.urlopen(url).read()
s_parameters = "<td class=\"statText\">Parameters:</td>\n"
s_returns = "<td class=\"statText\">Returns:</td>\n"
s_previous = "<td class=\"statText\">"
#!/usr/bin/python
import urllib2
import os
import sys
if len(sys.argv) != 2:
print "Usage: " + sys.argv[0] + " url_of_base_dir"
sys.exit(1)
url = str(sys.argv[1])