This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FloatingPointRep { | |
public static void main(String[] args) throws Exception { | |
Scanner sc = new Scanner(System.in); | |
System.out.print("Enter you float (eg. 135.00, -50.65): "); | |
float _f1 = sc.nextFloat(); | |
String _f1Bin = Integer.toBinaryString(((Float) _f1).hashCode()); | |
System.out.printf("The value of _f1 is %f\n", _f1); | |
System.out.printf("The bin representation of _f1 is %s\n\n", padding(_f1Bin)); | |
//System.in.read(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
namespace ConsoleApplication | |
{ | |
class Program | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import RPi.GPIO as gpio | |
pin_st = 7 | |
pin_nd = 11 | |
gpio.setmode(gpio.BOARD) | |
gpio.setup(pin_st, gpio.OUT) | |
gpio.setup(pin_nd, gpio.OUT) | |
while 1: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "opencv2/imgproc/imgproc.hpp" | |
#include "opencv2/highgui/highgui.hpp" | |
#include <stdio.h> | |
#include <iostream> | |
using namespace cv; | |
using namespace std; | |
int main(void){ | |
VideoCapture cap(0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.math.BigDecimal; | |
import java.math.BigInteger; | |
/** | |
* author (JS) Earthchie http://www.earthchie.com/ | |
* modify (Java) Falook http://www.falook.in.th/ | |
* license WTFPL v.2 - http://www.wtfpl.net/ | |
* | |
* Copyright (c) 2014, Earthchie (earthchie@gmail.com) | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.List; | |
/** | |
* | |
* @author FALOOK | |
*/ | |
public class Content { | |
private String id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SetSelfSlot 1 | |
SetMainSlot 1 | |
SetBrdType 0 24 -slot 0 | |
SetWinSockOffset 0 | |
#Mac Address ของ Switch ให้ใส่เลข 2 ชุดลงไป | |
SetMac 03 00 | |
SetMemorySize 196 | |
#ชื่อของ Switch จะแสดงบน title bar ของ Simulator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 1. List full details of all properties. */ | |
SELECT * | |
FROM PROPERTYFORRENT; | |
/* 2. List full details of all properties that are only house type. */ | |
SELECT * | |
FROM PROPERTYFORRENT | |
WHERE UPPER(TYPE) = 'HOUSE'; | |
/* 3. List the client number, first name, last name and telephone number of all clients whose preferred property type are Flat. */ | |
SELECT CLIENTNO, FNAME, LNAME, TELNO | |
FROM CLIENT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/system/bin/sh | |
#mount sd card, partion formatted as ext2, to /sd-ext if already wipe and format | |
mount -o rw /dev/block/mmcblk1p1 /sd-ext | |
BB="logwrapper busybox"; | |
# Areeb - make mount point | |
if [ ! -d /sd-ext ]; | |
then | |
$BB mount -o rw,remount / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package model; | |
import com.google.gson.Gson; | |
import com.google.gson.GsonBuilder; | |
/** | |
* Created by FALOOK on 12/21/2014. | |
*/ | |
public class ResponseMessage { |
OlderNewer