Skip to content

Instantly share code, notes, and snippets.

@nicolasegp
nicolasegp / delay.js
Created March 21, 2016 17:20
Solución para la función delay de jquery
$('#item').text('Error!!').css('background-color','#f67').delay(2000).queue(function() {
$('#item').text('Descargar mp3').css('background-color','#49e');
});
@echo off
X:\usr\sap\PER\DVEBMGS00\exe\sapcontrol.exe -user Administrator PASS -nr 00 -function StartSystem ALL
{
"Print Arrays": {
"prefix": "_pre",
"body": "echo '<pre>'.print_r($${1:var}, true).'</pre>';",
"scope": {
"mode": ["PHP"]
},
"description": "Debug para imprimir Arrays en PHP"
}
}
@nicolasegp
nicolasegp / SolManKeyGen.vbs
Last active September 26, 2016 16:34
Solution Manager Key Generator :: SCN Thread https://scn.sap.com/thread/3399626
'''''''''''''''''''''''''''''''''''''''''''''''
' Solution Manager Key Generator '
' Guardar como SolManKeyGen.vbs y ejecutar '
'SCN Thread https://scn.sap.com/thread/3399626'
'''''''''''''''''''''''''''''''''''''''''''''''
'-------------------------------------------------------
Dim SIDs, SNs, SERVs, msg, ENDs, KEYs
msg="System ID (3 chr.)"
127.0.0.1 adclick.g.doublecklick.net
127.0.0.1 googleads.g.doubleclick.net
127.0.0.1 http://www.googleadservices.com
127.0.0.1 pubads.g.doubleclick.net
127.0.0.1 securepubads.g.doubleclick.net
127.0.0.1 pagead2.googlesyndication.com
# 127.0.0.1 spclient.wg.spotify.com
# 127.0.0.1 audio2.spotify.com
@nicolasegp
nicolasegp / event.class.php
Last active May 28, 2023 22:06
[PHP] Eventos y Disparadores
<?php
/**
*
* Eventos y Disparadores
* @author Nicolás Giacaman <[email protected]>
* @url http://nicolasg.cf
* @fork https://gist.github.com/im4aLL/548c11c56dbc7267a2fe96bda6ed348b
*
*/
<?php
/**
* https://www.php-fig.org | PSR-1 , PSR-4
*/
spl_autoload_register(function ($Class) {
$Class = ltrim($Class, '\\');
$_P = explode('\\', $Class);
$_P[] = str_replace('_', DIRECTORY_SEPARATOR, array_pop($_P));
$Class = implode(DIRECTORY_SEPARATOR, $_P).'.php';
@nicolasegp
nicolasegp / App.php
Last active May 7, 2018 01:39
PHP Array dot access data
<?php
class App {
const SP = '.';
const SP_REGEXP = '/[^\w.]/'; // if use " / " change to '/[^\w\/]/'
protected static $Data = [];
public static function set($Path, $Value = null) {
$Path = self::clean_path($Path);
@nicolasegp
nicolasegp / youtube.sh
Created November 22, 2018 21:55
Youtube MPV
#!/bin/bash
# zenity for GTK
# qarma for QT
Pack="qarma"
Url=$($Pack --title "Youtube" --entry --text "Url YouTube")
OP=$($Pack --title "Youtube" --list --text "Select Option" --column "#" --column "Desc." "1" "Only Audio" "2" "Video 480p" "3" "Video 720p" "4" "Video 1080p")
case $OP in
@nicolasegp
nicolasegp / deepin-qt.md
Last active January 29, 2019 12:53
Editar temas de aplicaciones QT en Deepin (Comentarios en https://youtu.be/r3jjOtXJ6FM)

Editar archivo .profile

  1. En la terminal: (Cambiar "nicolas" por tu usuario)
nano /home/nicolas/.profile
  1. Agregar
export QT_STYLE_OVERRIDE=gtk