This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
class Facebook_accounts_model extends Model | |
{ | |
var $id; | |
var $user_id; | |
var $facebook_id; | |
var $p_username; | |
var $p_password; | |
function __construct() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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 | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved | |
filetype off " required! | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
" let Vundle manage Vundle | |
" required! | |
Bundle 'gmarik/vundle' |
OlderNewer