Skip to content

Instantly share code, notes, and snippets.

@KugiHaito
KugiHaito / hexColor.php
Last active December 14, 2017 21:19
Indenticar e substituir valores hexadecimal para "cor"
<?php
/**
* Trocar valores hexadecimais por cor
* @param string text
* @return string
*
* @author Kugi Haito
*/
function hexColor(string $text) {
@bulfaitelo
bulfaitelo / OneSignal_Bulfaitelo-Project.html
Created June 2, 2017 12:56
OneSignal Configuração PT-br
<!-- OneSignal Push -->
<script async='async' src='https://cdn.onesignal.com/sdks/OneSignalSDK.js'></script>
<script>
var OneSignal = window.OneSignal || [];
OneSignal.push(["init", {
appId: "Aqui entra o OneSignal App ID",
subdomainName: 'bulfaitelo-project',
httpPermissionRequest: {
enable: true,
modalTitle: 'Grato pela assinatura',
@eyecatchup
eyecatchup / get-win7-productkey.vbs
Created August 16, 2014 15:52
VBS Script to get the Windows(R) 7 Product Key from a PC's registry.
' VBS Script to get the Windows(R) 7 Product Key from a PC's registry.
'
' Save the VBScript as "getWin7Key.vbs" somewhere on your Windows7 PC.
' Now, when you double-click the local script file an alertbox pops up
' displaying the product key stored in the machine's Windows registry.
Set WshShell = WScript.CreateObject("WScript.Shell")
KeyPath = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"
MsgBox ExtractKey(WshShell.RegRead(KeyPath))