Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jglemza on github.
  • I am jglemza (https://keybase.io/jglemza) on keybase.
  • I have a public key ASCcQYdfLAI8kFmw6woDxZNu5eTJyHHaxvr4HxCtj3W8Awo

To claim this, I am signing this object:

@jglemza
jglemza / HaasaLittle.py
Created December 22, 2019 20:34 — forked from unaiur/HaasaLittle.py
Simpler and faster version of Haaska AWS Lambda in https://github.com/mike-grant/haaska
#!/usr/bin/env python3.7
# coding: utf-8
# Copyright (c) 2019 Unai Uribarri <unaiur@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
@jglemza
jglemza / gist:1317147
Created October 26, 2011 17:53
CakePHP XSS Wrappers
function echo_h ($html) {
echo htmlspecialchars($html);
}
function echo_html ($html) {
$h = new HtmlHelper;
echo $h->clean($html);
}
@jglemza
jglemza / cake_component_code_completion.php
Created August 25, 2011 17:38 — forked from junichi11/cake_component_code_completion.php
CakePHP Component Code Completion
<?php
/**
* CakePHP Component & Model Code Completion
* @author junichi11
*
* /path/to/yourproject/nbproject/cake_component_code_completion.php
*
* ==============================================
* CakePHP Core Components
* ==============================================
@jglemza
jglemza / cake_helper_code_completion.php
Created August 25, 2011 17:13 — forked from junichi11/cake_helper_code_completion.php
CakePHP Helper Code Completion
<?php
/**
* CakePHP Helper Code Completion
* @author junichi11
*
* install NetBeans 7.0 && cakephp-netbeans plugin
* http://netbeans.org
* https://github.com/evilbloodydemon/cakephp-netbeans/tree/autocomplete
* /path/to/yourproject/nbproject/cake_helper_code_completion.php
*