Sunday, June 3, 2012

[C#] String Replacer

          Hello, Reader ^^! Back again with source code. This time is String Replacer which is made using C# programming language. This shows how to do a string replace. Mainly, you can use (String object).Replace to replace the string. In this one, I also added save and load feature so it easier to read very long string. Okay, that's all I can say. Thank you for reading ^^!





Download/View Source Code
Dropbox
Dropbox (Repository)
GitHub
GitHub (Repository)







[Ruby] String Replacer

          Hello, Reader ^^! Back again with source code. This time is String Replacer which is made using Ruby programming language. This shows how to do a string replace. Mainly, you can use gsub to replace the string. In this one, I also added save and load feature so it easier to read very long string. Okay, that's all I can say. Thank you for reading ^^!



Download/View Source Code
Dropbox
Dropbox (Repository)
GitHub
GitHub (Repository)







Friday, April 27, 2012

[PHP] If-Then-Else Syntax

          Hello, Reader ^^! Back again with source code. This time is a basic syntax If-Then-Else in PHP programming language. This source code is to show how to do If-Then-Else statement in PHP language. Here's the template:


if <condition> {
       <statement if true> 
} else {
       <statement if false>
}


Okay, that's all I can say. Thank you for reading ^^!

Download/View Source Code
Dropbox
Dropbox (Repository)
GitHub
GitHub (Repository)







[PHP] If-Then Syntax

          Hello, Reader ^^! Back again with source code. This time is a basic syntax If-Then in PHP programming language. This source code is to show how to do If-Then statement in PHP language. Here's the template:


if <condition> {
       <statement if true> 
}


Okay, that's all I can say. Thank you for reading ^^!

Download/View Source Code
Dropbox
Dropbox (Repository)
GitHub
GitHub (Repository)







[Ruby] Random Choice With Hash Table

          Hello, Reader ^^! Back again with source code. This time is Random Choice With Hash Table which is made using Ruby programming language. This shows how to do a random number and use hash table combined into choosing output of hash table by randomize the choice. The input of the left side of the hast table must be integer type. Other still work, but you need to hash it before randomizing hashing it. Okay, that's all I can say. Thank you for reading ^^!


Download/View Source Code
- Dropbox
- Dropbox (Repository)
- GitHub
GitHub (Repository)







[Javascript] [Crafty] Draw Image

          Hello, Reader ^^! Back again with source code. This time is Draw Image which is written in Java script programming language and Crafty extension. This shows how to draw image in Crafty screen. You need Image and 2D object in the Crafty object for image and positioning. You also need linking with an image in the folder you want. Okay, that's all I can say. Thank you for reading ^^!






Download/View Source Code
Dropbox
Dropbox (Repository)
GitHub
GitHub (Repository) 







[Javascript] [Crafty] Text Example

          Hello, Reader ^^! Back again with source code. This time is Text Example which is written in Java script programming language and Crafty extension. This shows how to write text inside Crafty screen. You need to include 2D, Text, and DOM Crafty object first. Then you set the position and the text which want to be written. Okay, that's all I can say. Thank you for reading ^^!






Download/View Source Code
Dropbox
Dropbox (Repository)
GitHub
GitHub (Repository)