Skip to content

Instantly share code, notes, and snippets.

View tiposaurio's full-sized avatar

Guido Calcina Tipo tiposaurio

  • systems<3 @cacatiti
  • Puno-Peru
View GitHub Profile
@tiposaurio
tiposaurio / .htaccess
Created December 2, 2021 00:34 — forked from ShiponKarmakar/.htaccess
Most Useful and Helpful .htaccess Code
#stop directory browsing
Options All -Indexes
# SSL Https active Force non-www
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
@tiposaurio
tiposaurio / rxjs_operators_by_example.md
Created February 19, 2018 22:51 — forked from btroncone/rxjs_operators_by_example.md
RxJS 5 Operators By Example
@tiposaurio
tiposaurio / ImageController.java
Created August 10, 2017 15:13 — forked from kjunine/ImageController.java
Image Download with Spring MVC
package image;
import java.io.IOException;
import java.io.InputStream;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.io.IOUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.core.io.Resource;
@tiposaurio
tiposaurio / ajax.js
Created June 30, 2017 16:37 — forked from franz-josef-kaiser/ajax.js
AJAX in WordPress. Class based example.
( function( $, plugin ) {
"use strict";
// Working with promises to bubble event later than core.
$.when( someObjectWithEvents ).done( function() {
console.log( 'AJAX request done.' );
} )
.then( function() {
setTimeout( function() {
console.log( 'AJAX requests resolved.' );
var results = [];
$('#save').click(function(e) {
e.preventDefault();
var url = "http://md5.jsontest.com/?text=" + $('#basic').val();
$.getJSON(url,
function(data) {
addToList(data.md5);
});
});
@tiposaurio
tiposaurio / bs3-login-form.html
Created July 12, 2016 13:40 — forked from bMinaise/bs3-login-form.html
Bootstrap 3 - Login Form Example From: http://bootsnipp.com
<div class="container">
<div class="row">
<div class="col-sm-6 col-md-4 col-md-offset-4">
<h1 class="text-center login-title">Sign in to continue to Bootsnipp</h1>
<div class="account-wall">
<img class="profile-img" src="https://lh5.googleusercontent.com/-b0-k99FZlyE/AAAAAAAAAAI/AAAAAAAAAAA/eu7opA4byxI/photo.jpg?sz=120"
alt="">
<form class="form-signin">
<input type="text" class="form-control" placeholder="Email" required autofocus>
<input type="password" class="form-control" placeholder="Password" required>
div#testdiv
{
height:500px;
width:500px;
position: relative;
}
.fuente{
font-family: 'Chewy', cursive;
margin-left: 50px;
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>
//html de invocacion
<button type="button" class="btn btn-default" ng-click="login()">
<i class="fa fa-fw fa-sign-in"></i> Log in
</button>
<ng-form name="formPadre">
<div ng-repeat="obj1 in lista1">
<ng-form name="formObj1">
<input type="text" name="obj1" ng-model="obj1.attr" >
</ng-form>
</div>
<div ng-repeat="obj2 in lista2">
<ng-form name="formObj2">
<input type="text" name="obj2" ng-model="obj2.attr" >
</ng-form>