Skip to content

Instantly share code, notes, and snippets.

View ahmeturganci's full-sized avatar
👨‍🚀
Mayday Mayday Houston

Ahmet ahmeturganci

👨‍🚀
Mayday Mayday Houston
View GitHub Profile
https://www.ssaurel.com/blog/creating-a-lock-screen-device-app-for-android/
@ahmeturganci
ahmeturganci / activity_main.xml
Created October 4, 2019 08:27
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<Button
package com.example.webview;
import android.annotation.SuppressLint;
import android.app.ActionBar;
import android.app.admin.DevicePolicyManager;
import android.content.ComponentName;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Color;
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="ZXing for JS">
<title>ZXing - Camera Demo</title>
function isMobileDevice() {
return (typeof window.orientation !== "undefined") || (navigator.userAgent.indexOf('IEMobile') !== -1);
};
function vowelsAndConsonants(s) {
var ww = ["a", "e", "i", "o",];
var len = s.length;
var newArray = [len];
for (var i = 0; i <= len; i++) {
if (ww[i] == s[i]) {
newArray[0, s[i]]
}
debugger;
@ahmeturganci
ahmeturganci / code-partial.js
Created April 19, 2019 15:37
ract-native-router-flux- page onExit/onEnter State clear
static onEnter = () => {
Actions.refresh({
date: new Date()
});
};
static onExit = () => {
};
componentWillReceiveProps(t) {
var self = this;
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
</head>
<body>
<div id="div1" style="height: 1000px; width 100px">
DBCC CHECKIDENT ('TestTable', RESEED, 0)
GO
^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4,6}$
valid values
(123) 456-7890
(123)456-7890
123-456-7890
123.456.7890
1234567890
+31636363634
075-63546725