Skip to content

Instantly share code, notes, and snippets.

View ertugrulozcan's full-sized avatar

Ahmet Ertuğrul Özcan ertugrulozcan

View GitHub Profile
@ertugrulozcan
ertugrulozcan / GpsManager.java
Last active August 29, 2015 14:22
Drone 112 Android
import android.app.Service;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
public class GpsManager extends Service implements LocationListener
{
private final Context context;
// Cihazda gps acik mi?
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.aero.gpstracker">
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"

Pure CSS Batman minion

As a huge DC fan, i was very happy when my favorite actor Minion was chosen to preform the role of Batman. This is a first look at his costume

A Pen by aladin ben sassi on CodePen.

License.

@ertugrulozcan
ertugrulozcan / test.cs
Last active September 4, 2015 12:35
Cihat_,
try
{
double turkceDogru, turkceYanlis, turkcenet;
if(!Double.TryParse(turkceDogruTextbox.Text, out turkceDogru))
turkceDogru = 0;
if(!Double.TryParse(turkceYanlisTextbox.Text, out turkceYanlis))
turkceYanlis = 0;
@ertugrulozcan
ertugrulozcan / login.aspx
Last active September 15, 2015 13:23
TurcaSoftRehber
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login.aspx.cs" Inherits="TurcaSoftRehber.login" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Turcasoft Rehber</title>
<meta charset="utf-8"/>
<!--jQuery-->
@ertugrulozcan
ertugrulozcan / bootstrapeffect.html
Created September 15, 2015 11:39
bootstrap effect
<div class="container">
<div class="jumbotron">
<h1>My First Bootstrap Page</h1>
<p>Resize this responsive page to see the effect!</p>
</div>
<div class="row">
<div class="col-sm-4">
<h3>Column 1</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris...</p>
@ertugrulozcan
ertugrulozcan / register.html
Created September 15, 2015 13:37
Register
<!-- REGISTRATION FORM -->
<div class="text-center" style="padding:50px 0">
<div class="logo">Kayıt ol</div>
<!-- Main Form -->
<div class="login-form-1">
<form id="register-form" class="text-left">
<div class="login-form-main-message"></div>
<div class="main-login-form">
<div class="login-group">
<div class="form-group">
@ertugrulozcan
ertugrulozcan / User.cs
Created September 15, 2015 13:42
User sınıfı
private string username;
/// <summary>
/// Kullanıcı adı
/// </summary>
public string Username
{
get { return username; }
set { username = value; }
}
<%@ Page Language="C#" EnableEventValidation="false" AutoEventWireup="true" CodeBehind="register.aspx.cs" Inherits="TurcaSoftRehber.register" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Kayıt</title>
<!--jQuery-->
<script src="js/jquery-2.1.4.min.js"></script>