Skip to content

Instantly share code, notes, and snippets.

View sandycorzeta's full-sized avatar
🚫
Unknown

Sandy Corzeta sandycorzeta

🚫
Unknown
View GitHub Profile
@sandycorzeta
sandycorzeta / post.md
Last active September 16, 2015 07:10 — forked from kbond/post.md
Ubuntu LAMP Development Environment Setup

Install git:

sudo apt-get install git

Configure Git:

touch ~/.gitignore_global
git config --global core.excludesfile ~/.gitignore_global
git config --global user.name "Your Name"

git config --global user.email "Your Email"

@sandycorzeta
sandycorzeta / preprocessor_fun.h
Last active August 29, 2015 14:27 — forked from aras-p/preprocessor_fun.h
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
/*! Myanimestrap * incrowd.ws/mas * LGPL2 */
$brand-primary: #428bca;
$bg-color: white;
$text-color: #333;
$font-size-base: 14px;
$font-size-h1: ceil($font-size-base * 1.7);
$font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
<?php
/**
Welcome to Cosu!P Statistics Core API Library.
This file save all of configurations that have been set up, for parsing the data to the front end a.k.a Web
**/
//Basic Conf
$uid = '3268516'; // Insert your userid here
$osu_mode = '3'; // Pick the main of your osu mode gameplay. 0 = osu!standard, 1 = Taiko, 2 = Catch The Beat, 3 = osu!Mania.
$osu_api_key = '904a8856dcf8f3b133e230d00f5dbdf81b96765d'; // Input your osu API Key from http://osu.ppy.sh/p/api
@sandycorzeta
sandycorzeta / osu-api-fixed.php
Created March 21, 2014 15:05
osu API JSON value parse
<!doctype html>
<html lang="en">
<head>
<title></title>
</head>
<?php
$get_osu_api = file_get_contents('http://osu.ppy.sh/api/get_user?u=sandycorzeta&k=904a8856dcf8f3b133e230d00f5dbdf81b96765d&m=3');
$json_parse = json_decode($get_osu_api, true);
?>
<body>
@sandycorzeta
sandycorzeta / osu-api.php
Created March 21, 2014 12:28
osu API JSON parse
<!doctype html>
<html lang="en">
<head>
<title></title>
</head>
<?php
$get_osu_api = file_get_contents('http://osu.ppy.sh/api/get_user?u=sandycorzeta&k=904a8856dcf8f3b133e230d00f5dbdf81b96765d&m=3');
$json_parse = json_decode($get_osu_api);
$dump = var_dump($json_parse);
?>