Skip to content

Instantly share code, notes, and snippets.

View Xinecraft's full-sized avatar
🥑
Building MineTrax @ https://minetrax.github.io

Zishan Xinecraft

🥑
Building MineTrax @ https://minetrax.github.io
View GitHub Profile
@Xinecraft
Xinecraft / timezones.php
Created July 9, 2023 07:49 — forked from kulbakin/timezones.php
Array of timezones where keys are PHP timezone names and values are human friendly timezone titles.
<?php
/**
* List of timezones
*/
return array(
'Pacific/Midway' => '(UTC-11:00) Midway',
'Pacific/Niue' => '(UTC-11:00) Niue',
'Pacific/Pago_Pago' => '(UTC-11:00) Pago Pago',
'America/Adak' => '(UTC-10:00) Adak',
'Pacific/Honolulu' => '(UTC-10:00) Honolulu',
# Author: Pieter Noordhuis
# Description: Simple demo to showcase Redis PubSub with EventMachine
#
# Update 7 Oct 2010:
# - This example does *not* appear to work with Chrome >=6.0. Apparently,
# the WebSocket protocol implementation in the cramp gem does not work
# well with Chrome's (newer) WebSocket implementation.
#
# Requirements:
# - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby
@Xinecraft
Xinecraft / GitCommitEmoji.md
Created January 9, 2020 21:54 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@Xinecraft
Xinecraft / models.js
Created November 8, 2019 07:48 — forked from jordanell/models.js
Sequelize paranoid delete cascade
import paranoidDeleteCascade from './helpers/paranoidDeleteCascade';
// Patch the paranoid delete functionality of Sequelize
sequelize.addHook('afterDestroy', paranoidDeleteCascade(db));