Skip to content

Instantly share code, notes, and snippets.

View ralphcrisostomo's full-sized avatar

Ralf Crisostomo ralphcrisostomo

  • Goodstuff
  • Australia
View GitHub Profile
@ralphcrisostomo
ralphcrisostomo / auto.reload.html
Created February 21, 2013 06:06
Auto Reload Page
<!DOCTYPE html>
<html>
<head>
<title>Auto Reload</title>
<meta http-equiv="refresh" content="15">
</head>
<body>
</body>
</html>
@ralphcrisostomo
ralphcrisostomo / httpd.conf
Last active November 20, 2022 08:12
Create an alias directory in XAMPP
# Create an alias directory in XAMPP
# Ref: http://www.mauriciomunera.com/?p=127
# Ref: https://gist.github.com/ralphcrisostomo/4974674/
# Open the file /Applications/xampp/etc/httpd.conf in a text editor.
# Add these lines to the end of the files. (change the name of the alias for the web application that suits better for you)
<IfModule alias_module>
#
# Redirect: Allows you to tell clients about documents that used to
# exist in your server's namespace, but do not anymore. The client
# will make a new request for the document at its new location.
@ralphcrisostomo
ralphcrisostomo / .zshrc
Last active December 13, 2015 20:38
My .zshrc file
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
# ZSH_THEME="robbyrussell"
ZSH_THEME="doubleend"
@ralphcrisostomo
ralphcrisostomo / initial.setup.mac.workflow.md
Last active December 13, 2015 20:38
My Initial Setup for Mac Workflow
@ralphcrisostomo
ralphcrisostomo / path
Created November 28, 2012 04:39
PATH
# --------------
# PATH
# --------------
export LC_CTYPE="en_US.UTF-8"
PATH=/usr/bin:/bin:/usr/sbin:/sbin
export PATH
# add custom, local installations to PATH
PATH=/usr/local/bin:/usr/local/sbin:"$PATH"
@ralphcrisostomo
ralphcrisostomo / xampp_proxy_server_config
Created November 8, 2012 02:37
XAMPP Proxy Server Config
1. Open /Applications/XAMPP/etc/httpd.conf
2. Enable the following Modules by removing the # at the front of the line.
- LoadModule rewrite_module modules/mod_rewrite.so
- LoadModule proxy_module modules/mod_proxy.so
- LoadModule proxy_http_module modules/mod_proxy_http.so
3. Copy and Paste below to the bottom of httpd.conf
# Implements a proxy/gateway for Apache.
@ralphcrisostomo
ralphcrisostomo / stretchToFit.scss
Created August 23, 2012 03:14
stretch to fit on window size
.div {margin:10px; position:absolute; top:0; left:0; right:0; bottom:0}
@ralphcrisostomo
ralphcrisostomo / center-element.scss
Created August 17, 2012 10:46
Center an element absolutely and relatively
/**
author: Ralph Crisostomo
*/
@mixin center-element($width, $height) {
width:$width;
height:$height;
position: absolute;
top: 50%;
left: 50%;
@ralphcrisostomo
ralphcrisostomo / flexbox_layout.html
Created August 17, 2012 09:19
The classic 3 column layout. Notice the navigation appearing first, also note that the background colour extends to the full height of all boxes.
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>flexbox example - 3 column layout</title>
<meta name="author" content="Gwilym Johnston">
<link rel="stylesheet" href="base.css" type="text/css" media="screen">
<style type="text/css">
.flexbox {
@ralphcrisostomo
ralphcrisostomo / insetTopShadowOnly.scss
Created August 17, 2012 06:59
Inset, Top Shadow Only
// Inset, Top Shadow Only
@include box-shadow(inset 0 1px 1px -1px black);