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 / 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 / Savvyshots.haml
Created March 14, 2017 00:10
savvyshots logo
.logo
%a{:href => "/"}
%h1.headline Savvy Shots
.tagline                             Photography
@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 / 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 / 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 / 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"
#!/bin/bash
ARRAY=(
"phalcon:cphalcon"
"phalcon:zephir"
"phalcon:phalcon-devtools"
"phalcon:incubator"
"phalcon:docs-app"
)
[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].
@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
#!/bin/bash -e
if [ -d "./.test/bats" ]; then
echo "Deleting folder $FOLDER"
rm -rf "./.test/bats/"
fi