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 / responsive.scss
Last active December 14, 2015 00:59
Responsive SCSS
/* #Media Queries
================================================== */
/* Smaller than standard 960 (devices and browsers) */
@media only screen and (max-width: 959px) {}
/* Tablet Portrait size to standard 960 (devices and browsers) */
@media only screen and (min-width: 768px) and (max-width: 959px) {}
/* All Mobile Sizes (devices and browser) */
@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>
function git_prompt_info() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo "$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_PREFIX$(current_branch)$ZSH_THEME_GIT_PROMPT_SUFFIX"
}
function get_pwd() {
print -D $PWD
}
function battery_charge() {
@ralphcrisostomo
ralphcrisostomo / sass.flow.scss
Created February 26, 2013 02:55
My SASS Best Practice
# Variables
$BLUE : blue ;
# Mixins
# Non-Semantic CSS
%color-blue {
color : $BLUE
@ralphcrisostomo
ralphcrisostomo / Windows XP.vmc
Created March 15, 2013 02:29
Windows XP VHD .vmc configuration for expiration date problem
<?xml version="1.0" encoding="UTF-16"?>
<!-- Microsoft Virtual Machine Options and Settings -->
<preferences>
<version type="string">2.0</version>
<event_logging>
<preference_change>
<enabled type="boolean">false</enabled>
</preference_change>
</event_logging>
<hardware>
[user]
name = Ralf Crisostomo
email = rrecrisostomo@gmail.com
[credential]
helper = osxkeychain
[core]
quotepath = false
excerpt : ( string, total ) ->
string = string.substring(total)
string += "..."
string
# TO USE:
# window.app.helpers.browserDetect.initialize()
# window.app.helpers.browserDetect.browser == "Safari"
# window.app.helpers.browserDetect.version == 2
"use strict";
window.app = window.app or {}
window.app.helpers = window.app.helpers or {}
.wrapper {
background-image: url("../img/bg.jpg");
background-repeat: no-repeat;
background-position: center center;
@include background-size(cover);
}
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {