Skip to content

Instantly share code, notes, and snippets.

View bykalim's full-sized avatar
🎯
Focusing

bykalim bykalim

🎯
Focusing
View GitHub Profile
@bykalim
bykalim / Helloworld.c
Created April 12, 2017 07:09
Hello Gist
#include <stdio.h>
int main(){
printf("Hello GithubGist");
return 0;
}
@bykalim
bykalim / Temperature Converter V1.c
Last active April 21, 2017 13:24
CA Programming Lab2 Extra: at RUPP
/*
*
* Written by By Kalim
* 21/Apr/2017
*
*/
#include <stdio.h>
#include <string.h>
int main(int argc, char const *argv[]) {
@bykalim
bykalim / The Quadratic Formula V1.c
Created April 22, 2017 15:39
CA Programming Lab1: at RUPP
// កម្មវិធីដោះស្រាយ​ សមីការដឺក្រេទី​២.c
// written by By Kalim
#include <stdio.h>
#include <math.h>
int main(){
float Delta=0;
@bykalim
bykalim / Decimalconverter.c
Created April 28, 2017 01:15 — forked from putheakhem/Decimalconverter.c
This Program allow user to convert an integer in decimal value into base 2, 8, 16
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
long decimalToBinary( long integerInDecimal);
long decimalToOctal( long integerInDecimal);
void decimalToHexadecimal( long integerInDecimal);
int main() {
long integerInDecimal;
char option = 'y';
@bykalim
bykalim / Decimal and Hexadecimal converter V1.c
Created April 30, 2017 14:06
CA Programming Lab3: at RUPP
// Written 25/4/2017
// By Kalim
// V1
#include <stdio.h>
int Hex = 0;
int Dec = 0;
void H2D(){
printf("+---------------------------------+\n");
printf("| Hexdecimal to Decimal |\n");
@bykalim
bykalim / MapsActivity.java
Created July 16, 2018 05:28
Need help: How to enable "current location" button and get "Latitude and Longitude" in Google Map. Thank you.
package project.example.maptest
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import com.google.android.gms.maps.CameraUpdateFactory
import com.google.android.gms.maps.GoogleMap
import com.google.android.gms.maps.OnMapReadyCallback
import com.google.android.gms.maps.SupportMapFragment
import com.google.android.gms.maps.model.LatLng
# Name: Kalim BY
# Class: Python Programming class
from random import randint, random
from turtle import *
TOTAL = 100
MAX = 20
START = 0
END = 9
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <Adafruit_Sensor.h>
#include <DHT.h>
#include <DHT_U.h>
#include <stdio.h>
#include <stdlib.h>
#define DHTTYPE DHT11 // DHT 11
#define TILT_SENSOR_PIN 10 // SD3
from tkinter import *
from tkinter import messagebox
class Chb:
def __init__(self,root):
label1 = Label(root, text="Model")
label1.pack(anchor=W)
frame1 = Frame(root,relief=GROOVE, borderwidth=2)
frame1.pack(anchor=W,expand=YES, fill=BOTH)