Skip to content

Instantly share code, notes, and snippets.

View DomathID's full-sized avatar
:shipit:
I may be slow to respond.

Bang Domath ID DomathID

:shipit:
I may be slow to respond.
View GitHub Profile
@craiem
craiem / google-image-search.php
Created March 24, 2013 01:11 — forked from susanBuck/google-image-search.php
php -> Google image Search
<?php
# This grabs the keyword off the url -- index.php?keyword=Clouds
$keyword = $_GET['keyword'];
# Only do this if we've already passed in a keyword (i.e. it's not blank)
if($keyword != "") {
# Load the data from Google via cURL
$curl_handle = curl_init();
curl_setopt($curl_handle,CURLOPT_URL,"http://ajax.googleapis.com/ajax/services/search/images?v=1.0&imgsz=xlarge&q=".urlencode($keyword));
@DomathID
DomathID / uptime.gs
Last active January 10, 2021 19:31
Uptime Robot Alternative Using Google App Script
function trigger() {
var url = [
"my project",
"my project
];
for(var x = 0; x<url.length; x++){
var uri = url[x];
try{
UrlFetchApp.fetch(uri);