Skip to content

Instantly share code, notes, and snippets.

View skounis's full-sized avatar

Stavros Kounis skounis

View GitHub Profile
@skounis
skounis / dabblet.css
Created December 23, 2011 00:24
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(25deg, #f00, blue);
min-height:100%;
@skounis
skounis / php.ini
Created May 26, 2012 09:51
Drupal dev with debugging - php.ini
xdebug.remote_autostart = "On"
xdebug.remote_enable = "On"
@skounis
skounis / phpinfo.php
Created May 26, 2012 10:00
Drupal dev with debugging - phpinfo.php
<?php phpinfo() ?>
@skounis
skounis / hello.php
Created May 26, 2012 10:00
Drupal dev with debugging - hello.php
<?php
$name = "Smith";
echo "Hello " . name;
?>
@skounis
skounis / evmi-proram.html
Created July 20, 2012 12:58
evmi program page markup
<a href="#">Show All Programs</a>
<div id="mt-page-main">
<img class="mt-image" src="http://lorempixel.com/628/240/people/" alt="EVMP® Earned Value Management Professional® Certification and Training">
<ul class="mt-buttons">
<li id="mt-tab-1" class="selected">Intoduction & Objectives</li>
<li id="mt-tab-2">Requirements</li>
<li id="mt-tab-3">Outline, Curriculum & PDUs</li>
<li id="mt-tab-4">Who Should Apply</li>
<li id="mt-tab-5">Participant Mix</li>
<li id="mt-tab-6">Testimonials</li>
@skounis
skounis / phpinfo.php
Created September 6, 2012 17:01
PHP Info
<?php
phpinfo();
?>
<div class="content-slider-item image-main">
<a class="fancybox"
href="{large-image.jpg}">
<img src="{thumbnail-image.jpg">
</a>
</div>
@skounis
skounis / center.js
Created June 5, 2013 13:57
jQuery - Center a DIV - very short
$('#myDiv').css({top:'50%',left:'50%',margin:'-'+($('#myDiv').height() / 2)+'px 0 0 -'+($('#myDiv').width() / 2)+'px'});
@skounis
skounis / resize.sh
Created November 29, 2013 19:04
batch resize. mac os. terminal
for file in ./*.jpg
do
echo $file
width=`sips --getProperty pixelWidth "$file" | sed -E "s/.*pixelWidth: ([0-9]+)/\1/g" | tail -1`
if [[ $width -gt 1024 ]]; then
echo "$file - width $width"
sips --resampleWidth 1024 "$file"
fi
done
var Cloud = require('ti.cloud');
//FirstView Component Constructor
function FirstView() {
//create object instance, a parasitic subclass of Observable
var self = Ti.UI.createView({
backgroundColor: '#232323'
});
// Create a Button.