Skip to content

Instantly share code, notes, and snippets.

View oidacra's full-sized avatar
🏠
Working from home

Arcadio Quintero oidacra

🏠
Working from home
View GitHub Profile
@mrgoos
mrgoos / notifications.component.html
Last active March 3, 2022 09:05
Use primeNg GrowlModule globally through a service
<p-growl [value]="msgs"></p-growl>
@misaxi
misaxi / web.config
Created September 28, 2014 10:20
web.config for IIS hosted multi-site WordPress
<!-- http://lauragentry.com/blog/2010/07/30/how-to-create-a-wordpress-3-0-multisite-network-on-a-windows-server-using-sub-directories/ -->
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="WordPress Rule 1" stopProcessing="true">
<match url="^index\.php$" ignoreCase="false" />
<action type="None" />
</rule>
@dwayne
dwayne / 00-ionic-notes.md
Last active October 13, 2022 15:05
My notes on the Ionic Framework.
@calebwoods
calebwoods / nginx.conf
Created May 10, 2014 20:18
Sample Nginx config for deployment of Angular.js app
server { listen 80;
server_name example.com;
access_log /var/log/example.com/nginx.access.log;
error_log /var/log/example.com/nginx.error.log;
root /var/www/apps/example.com/public;
charset utf-8;
location / {
rewrite ^ https://$host$request_uri? permanent;
}
@shabith
shabith / gist:9801530
Last active November 4, 2021 12:51
Regex to extract video ID from Vimeo or Youtube URL
//check for video URL
/* http://lasnv.net/foro/839/Javascript_parsear_URL_de_YouTube */
var video_id_regExp = /^.*((youtu.be\/|vimeo.com\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/,
match = url.match(video_id_regExp),
video_id;
if (match&&match[7]){
//valid
<?php
/**
* $Id$
* @license
*
* @package usuarios
* @subpackage components
* @author Danilo Domínguez P.
* @copyright UTP
*/
@i-scorpion
i-scorpion / README.txt
Created June 18, 2012 12:24
Twitter bootstrap fixed table header using jQuery
Here is a simple jQuery plugin to make a table header fixed on top when window is scrolled.
Using the code from twitter bootstrap documentation page, this code is customized for table header.
Create the table with following layout -
<table class="table-fixed-header">
<thead class="header">
<tr>
<th>Column 1</th>
<th>Column 2</th>
<th>Column 3</th>