Skip to content

Instantly share code, notes, and snippets.

View eymen-elkum's full-sized avatar
🎯
Focusing

Eymen Elkum eymen-elkum

🎯
Focusing
View GitHub Profile
@geon
geon / app_model.php
Created September 2, 2011 16:51
Get actual integers from MySQL with CakePHP.
<?php
class AppModel extends Model {
function afterFind($results){
if(!isset($results[0])){
// $results is a single object.
$results = $this->realAfterFind($results);
@eymen-elkum
eymen-elkum / style.css
Last active August 29, 2015 14:26
CakePHP Bootstrap UI: style for date and date time inputs selects
/*
date & dateTime inputs styles for cakePHP-BootstrapUI plugin
*/
.list-inline li.year,.list-inline li.month{
min-width: 100px;
}
.list-inline li{
min-width: 75px;
}
.date .list-inline,.datetime .list-inline {
@karthikax
karthikax / dosu.php
Last active December 31, 2022 06:16
PHP Download file to server from URL
<html>
<p style="width: 70%;margin: auto;margin-top: 5%;font-size:larger;text-align:center">
Download a file from any URL</p>
<form method="post" style="width: 70%;margin: auto;margin-top: 10%;">
<input name="url" size="50" placeholder="Source URL" style="width: 100%;height: 10%;font-size: 1.5em;padding:10px" required>
<input name="submit" type="submit" value="Download" style="width: 30%;height: 10%;margin: 5% auto; display: block;">
<p style="width: 70%;margin: auto;margin-top: 10%;font-size:larger;text-align:center">
To <?php echo getcwd(); ?></p>
<p style="width: 70%;margin: auto;font-size: smaller;text-align: center;position: fixed;bottom: 0;background: #fff;">
Powered by: <a href="https://karthikbhat.net/portfolio" target="_blank" style="color:#f60;text-decoration:none;">Karthik</a></p>