Skip to content

Instantly share code, notes, and snippets.

View renovatorruler's full-sized avatar

Renovator renovatorruler

View GitHub Profile
<?
class Facebook_accounts_model extends Model
{
var $id;
var $user_id;
var $facebook_id;
var $p_username;
var $p_password;
function __construct()
{
<?php
class Canvas extends Controller {
var $facebook;
var $user;
//API and secret key that you got from your application setup.
var $__fbApiKey = "0d6e273ddc3ec2459a3cab05a39ef393";
var $__fbSecret = "d3aac33fa7f5f42b24c62fb21c7fd972";
function __construct()
{
from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Question(models.Model):
'''
Model to store Question text and the user who added it. References to the contrib.auth's user model
'''
text=models.TextField()
addedBy=models.ForeignKey(User)
function initialize() {
//Initialize GeoCoder JSON object, initialize Google map, and center it to NYC,
window.map = new google.maps.Map2(document.getElementById("map"));
window.map.setCenter(new google.maps.LatLng(40.7561, -73.9870), 13); // set center to NYC
window.map.setUIToDefault();
ui=new GMapUIOptions();
ui.maptypes = {normal:true}
ui.zoom = {};
ui.controls = {largemapcontrol3d:true, maptypecontrol:false};
ui.keyboard = false;
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
<?
public function bandMembersAction()
{
$this->view->layout()->setLayout("minimum");
if(!$this->_has_extended_perm){
$this->_forward("grant-permissions", "facebook", "invite");
}
$this->_band_id="Hello";
$this->view->user_id=$this->_user_id;
We couldn’t find that file to show.
@renovatorruler
renovatorruler / gist:1989888
Created March 6, 2012 23:53
Social Contract
SOCIAL CONTRACT
This social contract is made and entered into this 4th day of July 1776 [but in reality, probably long before the making of the world itself] by and between the party of the first part [also known as "the territorial monopoly on violence commonly referred to as the United States of America"] and the party of the second part [also known as "We the People" or "y'all" or "all you mundanes out there" including all subsequent generations of "We the People"].
WHEREAS the party of the first part is engaged in the business of making the world safe for democracy, being a city on a hill, sending men to the moon, and any and all other things that nation-states may do (whether lawful or unlawful, moral or immoral, thoughtful or reckless, etc.); and
WHEREAS the party of the second part is generally engaged in the business of just trying to make ends meet and provide for their families;
NOW THEREFORE in consideration of the mutual covenants herein contained, and other good and valuable consideration, th
@renovatorruler
renovatorruler / gist:3379715
Created August 17, 2012 15:12
Transcoding-Proxy.liq
#!/usr/local/bin/liquidsoap
def restream(s)
# Input the stream,
url = "http://127.0.0.1:7000/test#{s}.ogg"
input = mksafe(input.http(url))
mp3_url = "/test#{s}.mp3"
# Transcoder : MP3 128 kbps
output.icecast(
@renovatorruler
renovatorruler / .vimrc
Last active December 19, 2015 05:09 — forked from kennbrodhagen/.vimrc
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'