This file contains hidden or 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
/** | |
* Using Graph API | |
**/ | |
FB.api('/134478319934542/feed?limit=9999', function(data) { | |
console.log(data.data.length) | |
$('body').html(''); | |
var line; | |
var uid; | |
FB.Array.forEach(data.data, function(resp) { | |
if(resp.likes > 20) { |
This file contains hidden or 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
FB.Array.forEach(album_detail, function(i, v) { console.log(i, v); }); | |
jQuery.each(album_detail, function(i, v) { console.log(i, v) }) |
This file contains hidden or 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 a7add60561ba31e4f18eee5cbf62404cc9ebc18e Mon Sep 17 00:00:00 2001 | |
From: Nat <[email protected]> | |
Date: Sun, 10 Oct 2010 17:44:02 +0700 | |
Subject: [PATCH] Initial django project | |
--- | |
manage.py | 11 +++++++ | |
settings.py | 96 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
urls.py | 16 ++++++++++ | |
3 files changed, 123 insertions(+), 0 deletions(-) |
This file contains hidden or 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
jQuery.post("/facebookapp/tgNotifier/postToPage.php", {a:'aa', b:'bb'}, | |
function(data){ | |
console.log(data); | |
}); |
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
<title>See own Albums with big photos</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> | |
<script src="http://connect.facebook.net/en_US/all.js"></script> | |
<script> | |
$(document).ready(function() { |
This file contains hidden or 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
import org.springframework.beans.factory.InitializingBean | |
import org.zeromq.ZMQ | |
class ParseService implements InitializingBean { | |
def pullSocket | |
def pubSocket | |
def running = true | |
def pollingRate = 200 | |
This file contains hidden or 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 | |
function getHash() { | |
$base=1000000; | |
$result = db_query_range('SELECT max(nid)+1 as nextId from {personal}', 0, 1); | |
$offset= db_fetch_object($result)->nextId; | |
$number=$base+$offset; | |
$out = ""; | |
$codes = "abcdefghjkmnpqrstuvwxyz23456789ABCDEFGHJKMNPQRSTUVWXYZ"; | |
while ($number > 53) { |
This file contains hidden or 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 | |
?> | |
<script type="text/javascript"> | |
function test() { | |
var selected = $("#shortcut-menu-id option:selected"); | |
var output = ""; | |
if(selected.val() != 0){ |
This file contains hidden or 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
/* $Id: style.css,v 1.1.2.9 2009/05/22 08:46:11 jmburnz Exp $ */ | |
/** | |
* @file style.css | |
* | |
* Use this file to override the Genesis core modular styles | |
* (such as the HTML elements in typography.css), module CSS | |
* and other Drupal styles. Anything that doesn't fit logically | |
* into page.css, nodes.css, blocks.css or comments.css can go here. | |
*/ |
This file contains hidden or 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 | |
function genesis_siamensis_preprocess_page(&$vars, $hook) { | |
if(empty($vars['section_class'])) { | |
$section = 'front_page'; | |
$vars['section_class'] = 'class="body front_page '. safe_string('section-'. $section) .'"'; | |
} | |
} | |
?> |
NewerOlder