Skip to content

Instantly share code, notes, and snippets.

View ninjapanzer's full-sized avatar
🌋
Back to the FOSS

Paul Scarrone ninjapanzer

🌋
Back to the FOSS
View GitHub Profile
@ninjapanzer
ninjapanzer / sorbet_generics.rb
Created March 23, 2023 06:11
Sorbet Generics
module MyModule
class HandlerInterface
extend T::Helpers
extend T::Sig
abstract!
sig { abstract.params(input: T::Struct).returns(T::Struct) }
def success_handler(input); end
end
[Auth Release (DEV)/auth-release] 💬 ::debug::Found Invalid Tag: [object Object].
[Auth Release (DEV)/auth-release] 💬 ::debug::Found Invalid Tag: [object Object].
[Auth Release (DEV)/auth-release] 💬 ::debug::Found Invalid Tag: [object Object].
[Auth Release (DEV)/auth-release] 💬 ::debug::Found Invalid Tag: [object Object].
[Auth Release (DEV)/auth-release] 💬 ::debug::Found Invalid Tag: [object Object].
[Auth Release (DEV)/auth-release] 💬 ::debug::Found Invalid Tag: [object Object].
[Auth Release (DEV)/auth-release] 💬 ::debug::Found Invalid Tag: [object Object].
[Auth Release (DEV)/auth-release] 💬 ::debug::Found Invalid Tag: [object Object].
[Auth Release (DEV)/auth-release] 💬 ::debug::Found Invalid Tag: [object Object].
[Auth Release (DEV)/auth-release] 💬 ::debug::Found Invalid Tag: [object Object].
#!/bin/bash
ARRAY=(
"phalcon:cphalcon"
"phalcon:zephir"
"phalcon:phalcon-devtools"
"phalcon:incubator"
"phalcon:docs-app"
)
@ninjapanzer
ninjapanzer / grouce-webpack-all-orgs-all-repos.bash
Created September 1, 2017 16:43 — forked from TheLarkInn/grouce-webpack-all-orgs-all-repos.bash
This bash script creates a gource video. Requires gource and libav (can install with brew).
#!/bin/bash
ARRAY=(
"webpack:webpack"
"webpack:example-app"
"webpack:enhanced-require"
"webpack:webpack-dev-middleware"
"webpack:enhanced-resolve"
"webpack:template"
"webpack:webpack-dev-server"
@ninjapanzer
ninjapanzer / keybase.md
Created August 10, 2017 23:19
keybase.md

Keybase proof

I hereby claim:

  • I am ninjapanzer on github.
  • I am paulscoder (https://keybase.io/paulscoder) on keybase.
  • I have a public key ASAKcQ2MqhPC4Ms7oWDXKI5XuvUd7u1f-wThNqw1XR8vTQo

To claim this, I am signing this object:

@ninjapanzer
ninjapanzer / app\assets\js\ApplicationManifest.php
Last active June 20, 2017 12:02
Phalcon Registering Namespace
<?php
namespace App\Assets\JS;
class ApplicationManifest
{
protected $assets;
public function __construct($assets)
{
$assets->collection('fullcalendarCSS')
@ninjapanzer
ninjapanzer / ModelEventHookTrait.php
Last active April 11, 2017 23:10
Laravel ModelEventHookTrait
<?php namespace App;
trait ModelEventHookTrait
{
protected static function createdHook()
{
return function ($model_instance) {
if (method_exists(__CLASS__, 'createdHandler')) {
self::createdHandler($model_instance);
}
@ninjapanzer
ninjapanzer / Savvyshots.haml
Created March 14, 2017 00:10
savvyshots logo
.logo
%a{:href => "/"}
%h1.headline Savvy Shots
.tagline &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Photography
@ninjapanzer
ninjapanzer / sync_config_branch.sh
Created December 26, 2016 21:07
Will provide interactive overwrite of diff between two branches
#!/usr/bin/env bash
CONFIGBRANCH=add_config_files
CURRENTBRANCH=`git symbolic-ref --short -q HEAD`
TMPPATH=tmp/config
rm -r $TMPPATH
NAMES="`git diff --name-only $CURRENTBRANCH $CONFIGBRANCH`"
@ninjapanzer
ninjapanzer / thing.php
Last active November 17, 2016 04:18
static method usage
public class Butt{
private $string = '';
public static function ha($some_string)
{
$instance = new self($some_string);
return $instance->addHa();
}
public function __construct($some_string)