Skip to content

Instantly share code, notes, and snippets.

#! /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 September 9, 2013 17:07
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
<?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" />