Skip to content

Instantly share code, notes, and snippets.

View cypressyi's full-sized avatar

Cypressyi cypressyi

  • Taiwan
View GitHub Profile
//wrong
// function testAPI(callback) {
// console.log('Welcome! Fetching your information.... ');
// FB.api('/me', function(response) {
// console.log('Successful login for: ' + response.name + "/" + response.gender);
// // document.cookie = "username =" + response.name;
// // document.cookie = "gender =" + response.gender;
// // document.location.href = "testing.html?name=" + response.name + "?gender=" + response.gender;
// localStorage.setItem("name", response.name);
// localStorage.setItem("gender", response.gender);
<!--
_ _ _
| |_ _ (_) _ __ __ _ _ __ | |
| _ | | | | '__| /___\ | \ / | /___\ |_|
|_| |_| |_| |_| \ __ ||\\//|| \ __ (_)
_ _ _ _____
| |_ _ (_) _ __ ___ _ _ __ | | | _ |
| _ | | | | '__| //_\\ | \ / | /___\ |_| | |_| |
<?php
echo "hello world";
//this is comment
/*this is comment
for many lines*/
$mycounter = 1;
$mystring = "Hello";
$myarray = array("one","two","three");
echo $mycounter;