Skip to content

Instantly share code, notes, and snippets.

View itsbalamurali's full-sized avatar
🎯
Focusing

Balamurali Pandranki itsbalamurali

🎯
Focusing
View GitHub Profile
@itsbalamurali
itsbalamurali / func.php
Created June 26, 2014 16:52
usercake funcs
<?php
//Functions that do not interact with DB
//------------------------------------------------------------------------------
//Retrieve a list of all .php files in models/languages
function getLanguageFiles()
{
$directory = "config/languages/";
$languages = glob($directory . "*.php");
//print each file name
<?php /* Template Name: Homepage */ ?>
<?php get_header(); ?>
<?php $canon_options_slider = get_option('canon_options_slider'); ?>
<?php $canon_options_hp = get_option('canon_options_hp'); ?>
<!-- SLIDER MASTHEAD -->
@itsbalamurali
itsbalamurali / 4sqr-cat.json
Created June 25, 2014 04:01
foursquare categories
{
"meta": {
"code": 200
},
"notifications": [
{
"type": "notificationTray",
"item": {
"unreadCount": 0
}

Root

api.tiles.mapbox.com/v1/

Albums

api.tiles.mapbox.com/v1/albums.json
api.tiles.mapbox.com/v1/albums.jsonp
@itsbalamurali
itsbalamurali / 0_reuse_code.js
Created April 22, 2014 19:48
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@itsbalamurali
itsbalamurali / game data.sql
Last active August 29, 2015 13:59
Mochi game data
This file has been truncated, but you can view the full file.
--
-- MySQL 5.5.35
-- Mon, 14 Apr 2014 14:42:45 +0000
--
CREATE TABLE `games` (
`id` int(11) not null auto_increment,
`uuid` varchar(200) not null,
`created` datetime not null,
`name` varchar(300) not null,
@itsbalamurali
itsbalamurali / dataimport.php
Created April 14, 2014 14:30
Game Metadata Import Script
<?php
$con=mysqli_connect("localhost","root","yourass1994","games");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
// Change character set to utf8
@itsbalamurali
itsbalamurali / mochi-grabber.php
Created April 14, 2014 11:21
MochGame Grabber
<?php
set_time_limit(0);
//for($i = 0; $i < 82000; $i += 1000) {
$arr = array("Dress-Up","Customize","Other","Customize","Education","Rhythm","Puzzles","Dress-Up","Action","Dress-Up","Fighting","Other","Adventure","Dress-Up","Education","Other","Puzzles","Sports","Strategy","Customize","Dress-Up","Education","Puzzles","Action","Puzzles","Dress-Up","Puzzles","Dress-Up","Puzzles","Dress-Up","Jigsaw","Other","Puzzles","Action","Adventure","Shooting","Jigsaw","Other","Puzzles","Jigsaw","Jigsaw","Other","Puzzles","Other","Puzzles","Dress-Up","Other","Puzzles","Puzzles","Board Game","Other","Puzzles","Dress-Up","Puzzles","Dress-Up","Action","Other","Puzzles","Other","Puzzles","Other","Strategy","Other","Puzzles","Customize","Dress-Up","Board Game","Strategy","Action","Adventure","Strategy","Education","Dress-Up","Action","Adventure","Other","Strategy","Action","Adventure","Other","Dress-Up","Customize","Other","Adventure","Puzzles","Action","Adventure","Fighting","Shooting","Education","Adventure","Other","Puzzle
/**
* Chat CSS
*
* @author Michael <[email protected]>
* @author Patrick <[email protected]>
* @copyright 2011 Amiado Group AG, All rights reserved.
* @copyright 2012, 2013 Patrick Stadler & Michael Weibel. All rights reserved.
*/
html, body {