Skip to content

Instantly share code, notes, and snippets.

Toni Homedes i Saun thomedes

Block or report user

Report or block thomedes

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@thomedes
thomedes / Windows-UTC-Time.reg
Created Jul 28, 2013
Windows 7 hack to have BIOS clock (RTC) in UTC. Useful for dual-booting Windows / Linux. Don't give me any credit for it. I just googled for the solution and pasted it here for my own convenience.
View Windows-UTC-Time.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=dword:00000001
@thomedes
thomedes / is_assoc_array.php
Last active Dec 19, 2015
php: Check if an array is associative or plain
View is_assoc_array.php
<? php
function is_assoc_array($a) {
return (is_array($a)
&& (array_keys($a) !== range(0, count($a) - 1)));
}
function is_plain_array($a) {
return is_array($a) && !is_assoc_array($a);
}
You can’t perform that action at this time.