Skip to content

Instantly share code, notes, and snippets.

View Acen's full-sized avatar
💸

Zac Acen

💸
  • Auckland, New Zealand
View GitHub Profile

Keybase proof

I hereby claim:

  • I am Acen on github.
  • I am tuft (https://keybase.io/tuft) on keybase.
  • I have a public key whose fingerprint is 311E F764 488F 2CED C1BE 45D4 A054 9BFE CFDC 76A1

To claim this, I am signing this object:

@Acen
Acen / hideFilter.css
Created September 20, 2016 21:00
Hide filter on screens below 768px in width.
@media only screen and (max-width: 768px){
#product-filter-activate{
display:none!important;
}
}
@Acen
Acen / CategoryMatcher.php
Created January 16, 2017 05:27
Convergence Codi -> BigCommerce with Laravel
<?php
namespace App\Core;
use \Exception;
use Carbon\Carbon;
use League\Csv\Reader;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Storage;
@Acen
Acen / codescheme.xml
Last active October 12, 2017 03:52
PHP Code Scheme (PHPStorm)
<code_scheme name="Default">
<PHPCodeStyleSettings>
<option name="ALIGN_KEY_VALUE_PAIRS" value="true" />
<option name="ALIGN_ASSIGNMENTS" value="true" />
<option name="PHPDOC_BLANK_LINE_BEFORE_TAGS" value="true" />
<option name="LOWER_CASE_BOOLEAN_CONST" value="true" />
<option name="LOWER_CASE_NULL_CONST" value="true" />
<option name="ELSE_IF_STYLE" value="COMBINE" />
<option name="VARIABLE_NAMING_STYLE" value="CAMEL_CASE" />
<option name="BLANK_LINE_BEFORE_RETURN_STATEMENT" value="true" />
@Acen
Acen / migration1.php
Created January 25, 2018 21:07
Migration things
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTokensTable extends Migration
{
/**
* Run the migrations.
@Acen
Acen / example_ga.blade.php
Last active July 1, 2018 15:27
Example Google Analytics Dimensions
Sending this data on every page view:
<script type="text/javascript">
ga('set', 'company_id', '{{ $company['company_id'] }}');
ga('set', 'monthly_spend', '{{ $company['monthly_spend'] }}');
ga('set', 'plan_name', '{{ $company['plan_name'] }}');
ga('set', 'renewal_date', '{{ $company['renewal_date'] }}');
ga('send', 'pageview');
</script>
OnRegistration:
-- Acen's buff/attack macro.
--[[
Key Selection
VK Key list: https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx
]]--
-- Activation/Deactivation
Key_Activate = 0xC0 -- ` (~)
-- Skills
Key_Skill1 = 0x10 -- SHIFT
@Acen
Acen / loopy.py
Last active August 1, 2018 21:35
Loopy
from os import getcwd
from sys import path
from typing import Union
from threading import Timer
################################
###### CHANGEABLE OPTIONS ######
################################
# None yet fam.
@Acen
Acen / Contract Killer 3.md
Created February 22, 2019 02:28 — forked from tony-caffe/Contract Killer 3.md
The latest version of Bytes Unlimted ‘killer contract’ for web professionals

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Revised by Bytes Unlimited : June 14th 2017

@Acen
Acen / gist:03d9b54b2d114a63fa603bb5a3182a24
Created August 30, 2020 23:25 — forked from sofar/gist:41d1e70893f16d457ff1
init.lua - dump lua global table with table element size estimate
minetest.register_chatcommand("dump", {
params = "",
description = "Dump all objects in the global table",
func = function()
print("_G has "..#_G.." elements")
for k,v in pairs(_G) do
if k~="_G" then
if type(v)=="string" or type(v)=="number" then
print("G["..k.."]="..v)
elseif type(v)=="table" then