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 / timezone.json
Created June 30, 2014 06:59
timezone gmt list json
[
[
"International Date Line West",
"GMT-11:00",
"(GMT-11:00) International Date Line West"
],
[
"Midway Island",
"GMT-11:00",
"(GMT-11:00) Midway Island"
{
"postals" : [
{
"id" : "01",
"district" : "01",
"sectors" : ["01","02","03","04","05"],
"locations" : ["Raffles Place", "Cecil", "Marina", "People’s Park"]
},
{
"id" : "02",
@ralphcrisostomo
ralphcrisostomo / embed-meta-tags-360-image.md
Last active February 19, 2017 00:54
Embed Meta Tags to a 360 image

#Embed Meta Tags to a 360 image

exiftool -FullPanoWidthPixels=6000 -FullPanoHeightPixels=3000 -CroppedAreaLeftPixels=0 -CroppedAreaTopPixels=958 -CroppedAreaImageWidthPixels=6000 -CroppedAreaImageHeightPixels=1083 -ProjectionType=cylindrical image.jpg
exiftool -Make="RICOH" -Model="RICOH THETA S" image.jpg
@ralphcrisostomo
ralphcrisostomo / post.php
Last active December 18, 2016 02:00
Added featured_image property
<?php
// @reference: http://wordpress.org/plugins/json-api/
// @from json-api/models/post.php
class JSON_API_Post {
// Note:
// JSON_API_Post objects must be instantiated within The Loop.
@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 / copy_rename_videos.sh
Created September 10, 2016 07:08
Copy and rename videos from a directory
# #!/bin/bash
#
# Copy and Rename Videos
# Created by : Ralph Crisostomo - 2016/09/10
#
# ./copy_rename_videos.sh /source/dir /destination/dir
#
SOURCE_DIR="$1"
VIDEO_DIR="$2"
@ralphcrisostomo
ralphcrisostomo / google-material-shadow.sass
Created July 3, 2016 15:42
Google Material Design Shadow SASS
//
// Google Material Design Shadow
// Ref: http://stackoverflow.com/questions/30533055/calculating-shadow-values-for-all-material-design-elevations
//
=shadow($dp)
@if $dp == 0
box-shadow : none
@else
$ambientY : $dp