Skip to content

Instantly share code, notes, and snippets.

Eduardo Gonzalo Espinoza Carreon edubecks

  • arequipa, peru
Block or report user

Report or block edubecks

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View pg2mysql.py
#! /usr/bin/env python
import os
import psycopg2
import MySQLdb
PG = {
'name' : 'moodle_rvt_sociales',
'user' : 'diegueus9',
'pass' : 'fuseki',
'host' : 'localhost',
@edubecks
edubecks / JavaScript.xml
Created Sep 9, 2013
intellij idea javascript live templates put the file in ~/Library/Preferences/IntelliJIdea12/templates/ using some of the templates in https://gist.github.com/ngryman/4760153
View JavaScript.xml
<?xml version="1.0" encoding="UTF-8"?>
<templateSet group="JavaScript">
<template name="iter" value="for each (var $VAR$ in $ARRAY$) {&#10; $END$&#10;}" description="Iterate (for each..in) - JavaScript 1.6+" toReformat="true" toShortenFQNames="true">
<variable name="ARRAY" expression="jsArrayVariable()" defaultValue="&quot;array &quot;" alwaysStopAt="true" />
<variable name="VAR" expression="jsSuggestVariableName()" defaultValue="&quot;o&quot;" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
You can’t perform that action at this time.