Skip to content

Instantly share code, notes, and snippets.

@knxroot
knxroot / websql_basico
Created Nov 11, 2012
HTML5:websql ejemplo básico
View websql_basico
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Web SQL</title>
<script type="text/javascript">
function almacenar()
{
var db=openDatabase('Mibbdd','1.0','mi base de datos', 2*1024*1024);
db.transaction(function(tx)
@knxroot
knxroot / laravelUseless.flt
Created Oct 23, 2014
A WinMerge filter for compare 2 Laravel proyects
View laravelUseless.flt
## This is a directory/file filter for WinMerge
## This filter is a helper for compare 2 laravel proyects in Windows
name: Exclude Laravel useless
desc: Exclude additional data from Laravel Proyects
## This is an inclusive (loose) filter
## (it lets through everything not specified)
def: include
## Filters for filenames begin with f:
@knxroot
knxroot / BIPCatalogUtil.cmd
Created Mar 14, 2018 — forked from Dnefedkin/BIPCatalogUtil.cmd
Runs BI Publisher Catalog Utility on Windows OS
View BIPCatalogUtil.cmd
@ECHO OFF
setLocal EnableDelayedExpansion
@REM *************************************************************************
@REM Purpose: Runs BI Publisher Catalog Utility on Windows OS
@REM Author: Dmitry Nefedkin (Dmitry.Nefedkin@oracle.com)
@REM Description: script is based on BIPCatalogUtil.sh
@REM found in $MW_HOME\Oracle_BI1\clients\bipublisher\ of Oracle BI EE 11.1.1.6 installation
@REM Last changed: Oct, 25, 2012 18:00
@REM Version: 0.1
@REM *************************************************************************
@knxroot
knxroot / BIPCatalogUtil.cmd
Created Mar 14, 2018 — forked from Dnefedkin/BIPCatalogUtil.cmd
Runs BI Publisher Catalog Utility on Windows OS
View BIPCatalogUtil.cmd
@ECHO OFF
setLocal EnableDelayedExpansion
@REM *************************************************************************
@REM Purpose: Runs BI Publisher Catalog Utility on Windows OS
@REM Author: Dmitry Nefedkin (Dmitry.Nefedkin@oracle.com)
@REM Description: script is based on BIPCatalogUtil.sh
@REM found in $MW_HOME\Oracle_BI1\clients\bipublisher\ of Oracle BI EE 11.1.1.6 installation
@REM Last changed: Oct, 25, 2012 18:00
@REM Version: 0.1
@REM *************************************************************************
@knxroot
knxroot / gist:faa0e3b2d763feee1348af45ab2473ad
Created Jul 28, 2016 — forked from buhrmi/gist:1344659
Sublime Text 2 Git Annotation Colors - fix background for foreground
View gist:faa0e3b2d763feee1348af45ab2473ad
<!-- ====================================
Colors for git annotation
====================================== -->
<dict>
<key>name</key>
<string>Git Modified Line</string>
<key>scope</key>
<string>git.changes.x</string>
<key>settings</key>
<dict>
View force_unicode.py
def force_unicode(string, codecs=['utf8', 'cp1252']):
""" Force use unicode when you don't know correct codec of the string """
for i in codecs:
try:
return unicode(string, i)
except:
pass
@knxroot
knxroot / translate.sh
Created Nov 11, 2012
google translate from bash
View translate.sh
help='translate <text> [[<source language>] <target language>]
if target missing, use DEFAULT_TARGET_LANG
if source missing, use auto'
# adjust to taste
DEFAULT_TARGET_LANG=en
if [[ $1 = -h || $1 = --help ]]
then
echo "$help"
@knxroot
knxroot / gist:4056325
Created Nov 11, 2012
HTML5:svg ejemplo básico
View gist:4056325
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>SVG</title>
</head>
<body>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<rect x="100" y="100" width="200" height="100" style="stroke:#FF0000; fill:#FF0000;"/>
<polygon points="100,100 150,50 200,100 250,50 300,100" style="stroke:#FF0000; fill:#FF0000;" />
@knxroot
knxroot / gist:4056369
Created Nov 11, 2012
recursos_paraalumnos_desarrolloweb
View gist:4056369
@knxroot
knxroot / gist:4056328
Created Nov 11, 2012
HTML5:canvas ejemplo básico
View gist:4056328
<!DOCTYPE html>
<html lang="en">
<head>
<title>Prueba Canvas</title>
<script type="text/javascript">
function dibujar()
{
var canvas=document.getElementById('miCanvas');
var ctx=canvas.getContext('2d');
ctx.fillRect(100,100,200,50);
You can’t perform that action at this time.