Skip to content

Instantly share code, notes, and snippets.

@yusufsyaifudin
yusufsyaifudin / tugas ai.py
Last active December 17, 2015 23:38
dump code buat Tugas Artificial Intelligence
from Tkinter import *
import Queue
class Application(Frame):
""" A GUI Application"""
def __init__(self, master):
""" Initialize the Frame """
Frame.__init__(self, master)
@yusufsyaifudin
yusufsyaifudin / facebook_login.php
Last active December 14, 2015 13:58
Facebook login (dari docs facebook)
<?php
$app_id = "YOUR-APP-ID";
$app_secret = "YOUR-APP-SECRET-ID";
$my_url = "YOUR-CALLBACK-URL";
//$my_url = "http://yusyaif.com/facebook";
$code = $_REQUEST["code"];
session_start();
if(empty($code)) {
@yusufsyaifudin
yusufsyaifudin / reservestring.java
Created November 26, 2012 14:43
Membalikkan karakter pada sebuah string
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package reversestring;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
//STACK DINAMIS (DENGAN LINKED LIST)
#include <stdio.h>
#include <malloc.h>
#include <string.h>
typedef struct{
char nim[10];
char nama[50];
float nilai;
}nilaiMatKul;