Skip to content

Instantly share code, notes, and snippets.

@Klerith
Klerith / .gitconfig
Last active May 31, 2017 22:33 — forked from orj/.gitconfig
GIT: Using p4merge as Git mergetool on Mac OS X.
[merge]
keepBackup = false
tool = custom
[mergetool "custom"]
cmd = /Applications/p4merge.app/Contents/Resources/launchp4merge "$PWD/$BASE" "$PWD/$REMOTE" "$PWD/$LOCAL" "$PWD/$MERGED"
keepTemporaries = false
trustExitCode = false
keepBackup = false
@Klerith
Klerith / Save_Data_From_Angular_Post.php
Last active May 31, 2017 22:37
PHP: save data from angular post
<?php
session_start();
include '../../classes/class.Database.php';
include '../../classes/class.Deduccion.php';
echo $Data;
$Deduccion = new Deduccion();
@Klerith
Klerith / Sublime.Scopes.txt
Last active May 31, 2017 22:38
Sublime: Sublime Text Scopes.txt
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
CoffeeScript: source.coffee
CSS: source.css
D: source.d
@Klerith
Klerith / angular-cli.json
Created March 16, 2018 20:08
Angular-CLI.json demo del archivo
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"project": {
"name": "adminpro"
},
"apps": [
{
"root": "src",
"outDir": "dist",
"assets": [
@Klerith
Klerith / animate.css
Created August 1, 2018 23:38
Animated fadeIn
/* Animaciones */
.animated {
-webkit-animation-duration: 0.4s;
animation-duration: 0.4s;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
}
@-webkit-keyframes fadeIn {
@Klerith
Klerith / agrupaciones.sql
Last active October 15, 2019 20:33
MySQL - Ejercicio de agrupaciones
-- Video de Youtube: https://www.youtube.com/watch?v=aUZ6452xUOQ&feature=youtu.be
use world;
SELECT
*
FROM
city;
@Klerith
Klerith / ionic-variables.scss
Created November 5, 2019 19:53
ionic 5: Dark Theme
// Ionic Variables and Theming. For more info, please see:
// http://ionicframework.com/docs/theming/
/** Ionic CSS Variables **/
:root {
/** primary **/
--ion-color-primary: #3880ff;
--ion-color-primary-rgb: 56, 128, 255;
--ion-color-primary-contrast: #ffffff;
--ion-color-primary-contrast-rgb: 255, 255, 255;
@Klerith
Klerith / lugares.socket.txt
Last active November 20, 2019 02:03
Lugares específicos para el curso de Sockets con Angular
lugares: Lugar[] = [{
id: '1',
nombre: 'Fernando',
lng: -75.75512993582937,
lat: 45.349977429009954,
color: '#dd8fee'
},
{
id: '2',
nombre: 'Amy',
@Klerith
Klerith / websocket.service.ts
Created November 20, 2019 00:12
Servicio de Angular para escuchar y emitir eventos mediante sockets de socket.io
import { Injectable } from '@angular/core';
import { Socket } from 'ngx-socket-io';
@Injectable({
providedIn: 'root'
})
export class WebsocketService {