This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Drop all non-system stored procs */ | |
DECLARE @name VARCHAR(128) | |
DECLARE @SQL VARCHAR(254) | |
SELECT @name = (SELECT TOP 1 [name] FROM sysobjects WHERE [type] = 'P' AND category = 0 ORDER BY [name]) | |
WHILE @name is not null | |
BEGIN | |
SELECT @SQL = 'DROP PROCEDURE [dbo].[' + RTRIM(@name) +']' | |
EXEC (@SQL) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def clientes = clientes.findAll { unCliente -> unCliente.getNombre().contains(clienteElegido) } | |
def entradasDelCliente = [] | |
for(cliente in clientes){ | |
for (entrada in cliente.entradas){ | |
entradasDelCliente.addAll(entrada) | |
} | |
} | |
entradasDelCliente |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Api | |
doRequest: (options) => | |
$.ajax(options).fail @showNotification | |
showNotification: (jqXHR) => | |
message = "#{ jqXHR.statusText }." | |
window.currentBoard().showNotification | |
template: message | |
container: '' | |
clazz: 'danger' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Script based on http://newtriks.com/2013/06/11/automating-angularjs-with-yeoman-grunt-and-bower/ | |
# Install dependencies (Yeoman, Grunt, Bower). See http://yeoman.io/ | |
sudo npm install -g yo grunt-cli bower karma generator-angular | |
# Create project structure using yo | |
mkdir angularjs-grunt-example && cd $_ | |
yo angular | |
# Install nodejs dependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configure terminator to run as default terminal (e.g. CTRL + ALT + T) | |
gconftool --type string --set /desktop/gnome/applications/terminal/exec terminator | |
# Configure terminator to launch when "Open in terminal" is clicked using Nautilus | |
gsettings set org.gnome.desktop.default-applications.terminal exec-arg "-x" | |
gsettings set org.gnome.desktop.default-applications.terminal exec /usr/bin/terminator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Perro { | |
def nombre | |
def edad | |
def getSaludo() { | |
"Hola soy ${nombre}!" | |
} | |
def setEdad(nuevaEdad) { | |
if (nuevaEdad > 100) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static IEnumerable<Type> GetConcreteSubtypes(this Type anInterface) | |
{ | |
var types = anInterface.Assembly.GetTypes(); | |
return types.Where(type => (type.IsSubclassOf(anInterface) || type.GetInterfaces().Contains(anInterface)) && !type.IsAbstract); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void AgregarMovimiento(string codigo, string detalle, string numComprobante, DateTime fecha, string tipoMovimiento, string deposito, string subdeposito, string destino, decimal cantidad) | |
{ | |
if (numComprobante == "") | |
{ | |
MessageBox.Show("Ingrese un número de comprobante.", "Falta ingresar comprobante", | |
MessageBoxButtons.OK, MessageBoxIcon.Error); | |
numeroComprobanteTextBox.Focus(); | |
} | |
else if ((tipoMovimiento == "Transferencia") && (deposito == destino)) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Section "InputClass" | |
Identifier "np900x4c clickpad" | |
MatchIsTouchpad "on" | |
Driver "synaptics" | |
# Enable the clickpad and set click actions | |
Option "ClickPad" "1" | |
Option "ClickFinger1" "1" | |
Option "ClickFinger2" "3" | |
Option "ClickFinger3" "2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param( | |
[string]$subscription, | |
[string]$service, | |
[string]$storageAccount, | |
[string]$slot, | |
[string]$package, | |
[string]$configuration, | |
[string]$publishSettingsPath | |
) |