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
rem myspotlight.bat | |
rem Test on Windows 10 | |
rem This batch file can be saved in temporary folder. | |
rem === 1 : Copy section === | |
mkdir %userprofile%\desktop\myspotlight | |
cd %localappdata%\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets | |
copy *.* %userprofile%\desktop\myspotlight | |
cd %userprofile%\desktop\myspotlight | |
rem === 2 : Delete small size section === | |
FOR %%F IN (*.*) DO ( IF %%~zF LSS 100000 del %%F ) |
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 <stdio.h> // for printf | |
#include <string.h> // for str..() | |
void main() { | |
int i=1, t1=0,t2=0,sum=0; | |
char s1[20]="petty",s2[20]="tiffies"; | |
while(i<3) { | |
if(strcmp(s2,s1)>0) | |
strcat(s2,s1); | |
else if(strcmp(s1,s2)<0) | |
strcpy(s1,s2); |
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
<?php | |
ini_set('max_execution_time', 86400); // 86400 = 60 * 60 * 24 seconds = 24 Hours | |
/* | |
Script_name : mysqlworking.php | |
Source_code : http://www.thaiall.com/perlphpasp/source.pl?9116 | |
Version 5.2560-08-19 | |
########################### | |
Update Description | |
- เพิ่มลักษณะข้อมูลเป็น ตัวอักษรภาษาไทย และภาษาอังกฤษ เมื่อ insert 1000 ผ่าน การแปลงตัวอักษรด้วย iconv(); | |
- เพิ่มการควบคุมตัวอักษรพิเศษ เปิดปิดการป้องกัน SQL Injection ผ่านตัวแปร $protect_sql_injection |
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
<? | |
# memmysql version 1.6a with mysql | |
# ปรับปรุง : 2549-05-14 (แก้ไขเรื่องรหัส admin) | |
# this program use table:mem in database:test | |
# ถ้าเข้า ?action=admin ครั้งแรกด้วยรหัสผ่านที่ถูกต้อง จะสร้างตารางอัตโนมัติ | |
####################################### | |
# SQL for duplicate checking | |
# select name,surname, count(name) as c from mem group by name,surname order by c desc; | |
####################################### | |
# Sample Website |
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 com.thaiall.www.layoutofnotification; | |
import android.os.Bundle; | |
import android.support.design.widget.FloatingActionButton; | |
import android.support.design.widget.Snackbar; | |
import android.support.v7.app.AppCompatActivity; | |
import android.support.v7.widget.Toolbar; | |
import android.support.v7.widget.Toolbar.LayoutParams; | |
import android.view.Menu; | |
import android.view.MenuItem; |
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
<?xml version="1.0" encoding="utf-8"?> | |
<android.support.design.widget.CoordinatorLayout 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="com.thaiall.www.layoutofnotification.MainActivity"> | |
<android.support.design.widget.AppBarLayout | |
android:layout_width="match_parent" |
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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout 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" | |
android:orientation="vertical" | |
app:layout_behavior="@string/appbar_scrolling_view_behavior" | |
tools:context="com.thaiall.www.layoutofnotification.MainActivity" | |
tools:showIn="@layout/activity_main"> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical"> | |
<ScrollView | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content"> |
NewerOlder