Skip to content

Instantly share code, notes, and snippets.

View flexgrip's full-sized avatar

Raymond Aguilar flexgrip

View GitHub Profile
<ul class="lb-my-images unstyled">
<li class="default-image">
<a href="#" class="img-choose-btn">
<img src="https://d723-leadbox-redesign-dot-leadpage-test.appspot.com/static/lp702/img/leadbox-image-placeholder.png">
</a>
</li>
<li class="my-images"><a href="#" class="image-choose-btn"><img alt="Image" src="https://lh4.ggpht.com/QccS17iRxed2xgpap17IeP3qx8DshmBH-OrdGcFqxJjfprMWo6oPDk1l3KaXw3PkGCBS26QEh-PItlbqQYLLcG1t=s100"></a></li>
@flexgrip
flexgrip / functions.js
Created August 18, 2014 19:43
LeadPages Template fade-in box and facebook comments syntax
// Add this placeholder to functions.js so it can hold
// the leadpages_input_data variable.
var leadpages_input_data = {};
elif request == 'registration-status':
rid = self.request.POST.get('reg_id')
reg = Registration.get_by_id(int(rid))
if not reg:
body = {'status': 'error', 'message': 'Registration failed!'}
if reg.status == 'finished':
account = reg.account.get()
plan_type = 'standard'
if account.is_pro:
plan_type = 'pro'
$(document).ready(function() {
var e = new Array;
e[0] = "bastards";
e[1] = "fakes";
e[2] = "mongrels";
e[3] = "phonies";
e[4] = "shams";
e[5] = "sharks";
e[6] = "swindlers";
e[7] = "jerks";
@flexgrip
flexgrip / svn-example.svg
Created June 4, 2015 17:11
What XML looks like in an SVG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@flexgrip
flexgrip / vimeo.php
Created May 9, 2012 21:34
Grab and display videos from vimeo
<?php
/*
****** ******
************* *************
****************** ******************
******************************************
****** @ TODD's VIMEO XML SCRAPER @ ******
********************************************
********************************************
@flexgrip
flexgrip / web.config
Created July 12, 2012 17:52
Wordpress + IIS7.Gay
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appSettings file="" />
<system.webServer>
<rewrite>
<rules>
<rule name="Main Rule" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
@flexgrip
flexgrip / Radio_basis.js
Created September 5, 2012 17:20
Working Ext.ux.Cover
Ext.require('Ext.ux.Cover');
Ext.application({
name: 'Cover',
launch: function(){
var cover = new Ext.ux.Cover({
itemCls: 'my-cover-item',
//These are just for demo purposes.
height: (Ext.os.deviceType !== 'Phone')? 400: undefined,
@flexgrip
flexgrip / gist:3688624
Created September 10, 2012 03:13
pressflow spb
Database Name:
acquiadrupal7178
Database User Name:
ad7user178
Database Password:
z_yIHj-sPO^G
@flexgrip
flexgrip / dwh-polls.js
Created September 21, 2012 17:53
dwh-polls
{
votes: 21,
monitor: false,
success: true,
voters: 2,
start_time: 1348246303.613473,
polls: [
{
nonce: '8ec402a536549c841b8778a7f8ca2a24',
va: 16,