Skip to content

Instantly share code, notes, and snippets.

View anak10thn's full-sized avatar
🌴
Maaf gak di rumah

Ibnu Yahya (Eka) anak10thn

🌴
Maaf gak di rumah
View GitHub Profile
@anak10thn
anak10thn / strlen.c
Last active December 9, 2015 20:48
strlen() C
#include <stdio.h>
/* Ibnu yahya */
int strlen(char x[]){
int lenght = (sizeof(x) / sizeof(x[0]))-1;
printf("%d",lenght);
return lenght;
@anak10thn
anak10thn / gist:4383672
Created December 26, 2012 22:36
Themes Tumblr anak10thn.tumblr.com
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- __ __ __
.---.-.-----.--| |.--.--.| |_| |.----. .----.-----.--------.
| _ | | _ || | || _| || _|_| __| _ | |
|___._|__|__|_____||___ ||____|__||__||__|____|_____|__|__|__|
|_____| -->
<html xmlns="http://www.w3.org/1999/xhtml">
@anak10thn
anak10thn / tsubmit.Jquery.js
Last active December 10, 2015 08:38
tsubmit
/*
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2012 Ibnu Yahya <[email protected]>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
@anak10thn
anak10thn / localstorage.html
Last active September 28, 2021 10:15
web storage html5 with jquery
<!doctype html>
<html>
<head>
<title></title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(function(){
if(!$('.ta').val()){
var localStorage = window.localStorage.getItem('value');
$('.ta').val(localStorage);
@anak10thn
anak10thn / vimrc
Created January 15, 2013 20:12
vim config
"""""""""""""""""""" PLUGINS
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'matchit.zip'
Bundle 'The-NERD-Commenter'
Bundle 'The-NERD-tree'
<?php
class zip_protect{
private $pass,$out,$input;
function __construct($p,$i,$o){
$this->pass = hash('sha512',$p);
$this->out = $o;
$this->input = $i;
header("Content-type: application/octet-stream");
header("Content-disposition: attachment; filename=$this->out");
#!/bin/bash
awk -F ',' '{ if($1 != NULL){printf("INSERT INTO Testing (Date,User,Usage) VALUES('%s', '%s', %d);\n", $1, $2, $3); }}' mysql.csv >mysql.sql
@anak10thn
anak10thn / index.html
Created February 18, 2013 12:22
Sysinfo use IGNSDK API
<!DOCTYPE html>
<html>
<head>
<script src="qrc:///js/jquery.js"></script>
<script src="qrc:///js/bootstrap.js"></script>
<script src="qrc:///js/bootstrap-reponsive.js"></script>
<link href="qrc:///css/bootstrap.css" rel="stylesheet">
<meta charset=utf-8 />
<title>System Info</title>
<script>
@anak10thn
anak10thn / index.html
Created February 20, 2013 08:33
transparent widget ignsdk
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>IGNSDK Transparent</title>
</head>
<body style="background:transparent;background-color:rgba(255,255,255,0.5)">
<center><h1>Widget Transparent</h1></center>
</body>
</html>
/*anak10thn.web.id license WTFPL*/
#include <stdio.h>
#include <gtk/gtk.h>
#include <webkit/webkit.h>
#include <seed.h>
#include <JavaScriptCore/JavaScript.h>
SeedEngine *engine;
static GdkPixbuf *create_pixbuf(const gchar * filename)
{