Skip to content

Instantly share code, notes, and snippets.

View gumacahin's full-sized avatar

Marco Enrico gumacahin

  • Philippines
View GitHub Profile
@gumacahin
gumacahin / gist:d10e36f79810764595c4911415b6d321
Created July 21, 2022 03:56
US States value/lable pairs for drop downs
const states = [
{ value: "AL", label: "Alabama"},
{ value: "AK", label: "Alaska"},
{ value: "AS", label: "American Samoa"},
{ value: "AZ", label: "Arizona"},
{ value: "AR", label: "Arkansas"},
{ value: "CA", label: "California"},
{ value: "CO", label: "Colorado"},
{ value: "CT", label: "Connecticut"},
{ value: "DE", label: "Delaware"},
<!-- wp:stackable/accordion {"uniqueId":"29908f0","blockBorderType":"solid","blockBorderColor":"var(\u002d\u002dstk-global-color-72714, #81909d)","blockBorderWidth":{"top":0,"right":0,"bottom":1,"left":0},"blockMargin":{"bottom":""},"blockPadding":{"top":"","right":"","bottom":24,"left":""},"effectAnimationOut":{},"effectAnimationIn":{},"customAttributes":[],"displayCondition":{}} -->
<details class="wp-block-stackable-accordion stk-block-accordion stk-inner-blocks stk-block-content stk-block stk-29908f0" data-block-id="29908f0"><style>.stk-29908f0{border-style:solid !important;border-color:var(--stk-global-color-72714,#81909d) !important;border-top-width:0px !important;border-right-width:0px !important;border-bottom-width:1px !important;border-left-width:0px !important}.stk-29908f0{padding-bottom:24px !important}</style><!-- wp:stackable/column {"uniqueId":"ad2f587","htmlTag":"summary","templateLock":"insert","className":"stk\u002d\u002dcontainer-small stk-block-accordion__heading"} -->
<summary class="wp-bl
<!DOCTYPE html>
<html lang="en" id="facebook" class="no_js">
<head><meta charset="utf-8" /><meta name="referrer" content="origin-when-crossorigin" id="meta_referrer" /><link rel="preload" href="https://static.xx.fbcdn.net/rsrc.php/v3iAbk4/yX/l/en_US/HXBpjHkwoSJ.js?_nc_x=sx9jp1JNSsB" as="script" crossorigin="anonymous" /><link rel="preload" href="https://static.xx.fbcdn.net/rsrc.php/v3idxF4/y1/l/en_US/CG39CLsKoVB.js?_nc_x=sx9jp1JNSsB" as="script" crossorigin="anonymous" /><link rel="preload" href="https://static.xx.fbcdn.net/rsrc.php/v3/yU/l/0,cross/t80ZcvYsgs8.css?_nc_x=sx9jp1JNSsB" as="style" crossorigin="anonymous" /><link rel="preload" href="https://static.xx.fbcdn.net/rsrc.php/v3/y-/r/wwGDihd_gWN.js?_nc_x=sx9jp1JNSsB" as="script" crossorigin="anonymous" /><link rel="preload" href="https://static.xx.fbcdn.net/rsrc.php/v3/y8/l/0,cross/dNN7jPM3MD1.css?_nc_x=sx9jp1JNSsB" as="style" crossorigin="anonymous" /><link rel="preload" href="https://static.xx.fbcdn.net/rsrc.php/v3/yi/l/0,cross/P8NOgidjcn0.css?_nc_x=s
@gumacahin
gumacahin / gist:5eae710ac53d2345b322
Created July 8, 2015 03:27
Minecraft Asset Extraction
#
# This is the ruby script I used the organize the Minecraft assets in a
# human friendly format for my final project in MMS 172
#
require "json"
require "fileutils"
source = "#{Dir.home}/Library/Application Support/minecraft/assets"
destination = File.dirname(__FILE__)
Processor Information:
Vendor: GenuineIntel
CPU Family: 0x6
CPU Model: 0x3a
CPU Stepping: 0x9
CPU Type: 0x0
Speed: 3901 Mhz
8 logical processors
4 physical processors
HyperThreading: Supported
Running Steam on ubuntu 12.04 64-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(1401381906_client)
Installing breakpad exception handler for appid(steam)/version(1401381906_client)
Installing breakpad exception handler for appid(steam)/version(1401381906_client)
[0619/213144:WARNING:proxy_service.cc(958)] PAC support disabled because there is no system implementation
Installing breakpad exception handler for appid(steam)/version(1401381906_client)
Installing breakpad exception handler for appid(steam)/version(1401381906_client)
[HTTP Remote Control] HTTP server listening on port 52208.
Installing breakpad exception handler for appid(steam)/version(1401381906_client)
Processor Information:
Vendor: GenuineIntel
CPU Family: 0x6
CPU Model: 0x3a
CPU Stepping: 0x9
CPU Type: 0x0
Speed: 3901 Mhz
8 logical processors
4 physical processors
HyperThreading: Supported
Running Steam on ubuntu 12.04 64-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(1401381906_client)
Installing breakpad exception handler for appid(steam)/version(1401381906_client)
Installing breakpad exception handler for appid(steam)/version(1401381906_client)
[0619/212001:WARNING:proxy_service.cc(958)] PAC support disabled because there is no system implementation
Installing breakpad exception handler for appid(steam)/version(1401381906_client)
Installing breakpad exception handler for appid(steam)/version(1401381906_client)
[HTTP Remote Control] HTTP server listening on port 38702.
Installing breakpad exception handler for appid(steam)/version(1401381906_client)
@gumacahin
gumacahin / gist:7705414
Created November 29, 2013 13:02
System information.
Processor Information:
Vendor: GenuineIntel
CPU Family: 0x6
CPU Model: 0x3a
CPU Stepping: 0x9
CPU Type: 0x0
Speed: 3901 Mhz
8 logical processors
4 physical processors
HyperThreading: Supported
<?php
// car controller
class Car_CarController extends Core_Controller_Action_Standard
{
public function init()
{
}
public function editAction()