Skip to content

Instantly share code, notes, and snippets.

View Thanajade's full-sized avatar

Thanajade Dechananthachai Thanajade

View GitHub Profile
public class Fibonacci {
public static void main(String[] args){
int pos = 20;
for(int i = 1; i < pos; i++){
System.out.printf("Fibonacci pos: %d, is %d\n", i, fibonacci(i));
}
}
public static void main(String[] args) {
for (int i = 1; i < 10; i++)
System.out.printf("Factorial value of %d is %d\n", i, factorial(i));
}
public static int factorial(int number){
int result = number;
class Fibonacci{
let value: Int!
init(value : Int){
self.value = value
}
func CalculateFibonacci() -> Int {
[{
"date": "20150601",
"position": 3000000
},
{
"date": "20150602",
"position": 2000000
},
{
"date": "20150603",
{
"one": "Singular sensation",
"two": "Beady little eyes",
"three": "Little birds pitch by my doorstep"
}
{
"20150601": 3000000,
"20150602": 2000000,
"20150603": 1000000
}
Microsoft Word - ~uplawdoc.doc
รัฐธรรมนญูแหง่ราชอาณาจักรไทย1สมเด็จพระปรมินทรมหาภูมพิลอดุลยเดช
สยามินทราธิราช บรมนาถบพิตร
ตราไว้ ณ วันที่ 24 สิงหาคม พุทธศักราช 2550
เป็นปีที่ 62 ในรัชกาลปัจจุบัน
@Thanajade
Thanajade / inject.py
Created February 2, 2017 15:30 — forked from leonjza/inject.py
Wordpress 4.7.0/4.7.1 Unauthenticated Content Injection PoC
# 2017 - @leonjza
#
# Wordpress 4.7.0/4.7.1 Unauthenticated Content Injection PoC
# Full bug description: https://blog.sucuri.net/2017/02/content-injection-vulnerability-wordpress-rest-api.html
# Usage example:
#
# List available posts:
#
# $ python inject.py http://localhost:8070/
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>php bathtext by www.code-father.com</title>
<?
$input_number=1111111.11;
echo $input_number."<br>";
$digit=array('ศูนย์','หนึ่ง','สอง','สาม','สี่','ห้า','หก','เจ็ด','แปด','เก้า','สิบ','สิบเอ็ด');
$digit2=array('','สิบ','ร้อย','พัน','หมื่น','แสน','ล้าน');
$explode_number = explode(".",$input_number);
<?php
/*
http://stackoverflow.com/questions/12448134/social-share-links-with-custom-icons
http://petragregorova.com/articles/social-share-buttons-with-custom-icons
wp_enqueue_style('fontAwesome', '//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.min.css', array(), '4.3.0', 'all');
use in template files:: <?php echo do_shortcode('[social_sharing]') ; ?>
*/