Skip to content

Instantly share code, notes, and snippets.

Avatar

Ralf Crisostomo ralphcrisostomo

  • Goodstuff
  • Australia
View GitHub Profile
@ralphcrisostomo
ralphcrisostomo / timezone.json
Created Jun 30, 2014
timezone gmt list json
View timezone.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"
View singapore_postals.json
{
"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 Feb 19, 2017
Embed Meta Tags to a 360 image
View embed-meta-tags-360-image.md

#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 Dec 18, 2016
Added featured_image property
View post.php
<?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.
View 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 Sep 10, 2016
Copy and rename videos from a directory
View copy_rename_videos.sh
# #!/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"
View KALI_VMWARE_SETUP.md
@ralphcrisostomo
ralphcrisostomo / google-material-shadow.sass
Created Jul 3, 2016
Google Material Design Shadow SASS
View google-material-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