Skip to content

Instantly share code, notes, and snippets.

@Skoua
Skoua / gist:e8fc13fae728aac74bfcad1c2e552193
Created Apr 24, 2020 — forked from apphp-snippets/gist:2759490
Send Mail using mail function in PHP
View gist:e8fc13fae728aac74bfcad1c2e552193
<?php
/* Source: http://www.apphp.com/index.php?snippet=php-get-remote-ip-address */
$to = 'myfriend@gmail.com';
$subject = 'Test Email';
$body = 'Body of your message here. You can use HTML tags also, e.g. <br><b>Bold</b>';
$headers = 'From: John Smith'."\r\n";
$headers .= 'Reply-To: from@email.me'."\r\n";
$headers .= 'Return-Path: from@email.me'."\r\n";
$headers .= 'X-Mailer: PHP5'."\n";
$headers .= 'MIME-Version: 1.0'."\n";
@Skoua
Skoua / gist:f5601547f2bb2892f99b6c8c0fe2d265
Created Feb 18, 2020
International phone numbers prefix in <select>
View gist:f5601547f2bb2892f99b6c8c0fe2d265
<select name="numero-prefixe" id="side-widget-phone-prefix">
<option value="+93">🇦🇫 +93</option>
<option value="+358">🇦🇽 +358</option>
<option value="+355">🇦🇱 +355</option>
<option value="+213">🇩🇿 +213</option>
<option value="+1684">🇦🇸 +1684</option>
<option value="+376">🇦🇩 +376</option>
<option value="+244">🇦🇴 +244</option>
<option value="+1264">🇦🇮 +1264</option>
<option value="+672">🇦🇶 +672</option>
View gist:8905934
#bottomband{
position:relative;
width: 100%;
padding: 2em 0;
font-size: .8em;
background: $marron_gris;
footer {
display: table;
width: 1000px;
View gist:8905921
#bottomband{
min-width:1000px;
position:relative;
background:$marron_gris;
font-size: 12px;
height:90px;
footer{
width:1000px;
@Skoua
Skoua / gist:5927652
Last active Jul 29, 2016
Add route to an Apple Map using Google Maps Directions API in Titanium (Alloy).
View gist:5927652
// setup geolocation purpose and accuracy
Ti.Geolocation.accuracy = Ti.Geolocation.ACCURACY_BEST;
Ti.Geolocation.purpose = L('geo-purpose');
// setup map and poi's annotation
var latitude = 48.847684,
longitude = 2.35165;
var annotation = Titanium.Map.createAnnotation({
animate: true,
View gist:5895944
Jun 30 18:53:22 iPad-de-Arthur Université2[9505] <Warning>: [DEBUG] Reading stylesheet from: /var/mobile/Applications/488A802C-53CE-44D1-9235-530E3C4450E4/Université2.app/stylesheet.plist
Jun 30 18:53:22 iPad-de-Arthur kernel[0] <Debug>: launchd[9505] Builtin profile: container (sandbox)
Jun 30 18:53:22 iPad-de-Arthur kernel[0] <Debug>: launchd[9505] Container: /private/var/mobile/Applications/488A802C-53CE-44D1-9235-530E3C4450E4 (sandbox)
Jun 30 18:53:23 iPad-de-Arthur Université2[9505] <Warning>: [INFO] Université2/1.0 (3.1.1.GA.f7592c1)
Jun 30 18:53:23 iPad-de-Arthur Université2[9505] <Warning>: [DEBUG] Analytics is enabled = YES
Jun 30 18:53:23 iPad-de-Arthur Université2[9505] <Warning>: [DEBUG] Loading: /var/mobile/Applications/488A802C-53CE-44D1-9235-530E3C4450E4/Université2.app/app.js, Resource: app_js
Jun 30 18:53:23 iPad-de-Arthur Université2[9505] <Warning>: [DEBUG] Application booted in 68.507016 ms
Jun 30 18:53:23 iPad-de-Arthur backboardd[27] <Warning>: CoreAnimation: updat
View gist:2315117
<room3>
<content>&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;h2&gt;&lt;span class="\&amp;quot;\\&amp;quot;\\\\&amp;quot;\\\\\\\\&amp;quot;\\\\\\\\\\\\\\\\&amp;quot;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\&amp;quot;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\&amp;quot;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\&amp;quot;hps\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\&amp;quot;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\&amp;quot;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\&amp;quot;\\\\\\\\\\\\\\\\&amp;quot;\\\\\\\\&amp;quot;\\\\&amp;quot;\\&amp;quot;\&amp;quot;" style="color: #bc7877;"&gt;Platine Hotel Deluxe Rooms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span class="\&amp;quot;\\&amp;quot;\\\\&amp;quot;\\\\\\\\&amp;quot;\\\\\\\\\\\\\\\\&amp;quot;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\&amp;quot;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\