Skip to content

Instantly share code, notes, and snippets.

View ekosp's full-sized avatar

Eko Setyo Purnomo ekosp

View GitHub Profile
@ekosp
ekosp / altitude-pro-widget-setup.wie
Created April 16, 2018 08:10 — forked from philipgledhill/altitude-pro-widget-setup.wie
Altitude Pro widget import plugin code
{"front-page-1":{"text-1":{"title":"Front page 1: Small Headline","text":"<h2>Big text at the top <br \/>of the home page<\/h2>\r\n\r\n<a class=\"button\" href=\"#front-page-7\">Jump to bottom<\/a> <a class=\"button clear white\" href=\"#front-page-2\">Next section<\/a>\r\n\r\n<span class=\"small-disclaimer\">The small print at the bottom of Front Page 1 widget area.<\/span>\r\n","filter":true}},"front-page-2":{"text-2":{"title":"","text":"<h4>Front Page 2: small headline<\/h4>\r\n\r\n<h2>Front Page 2 big headline<\/h2>\r\n\r\n<div class=\"bottom-image\"><img class=\"alignnone wp-image-68 size-large\" src=\"http:\/\/localhost\/wordpress2\/wp-content\/uploads\/2015\/10\/layouts-1024x359.png\" alt=\"layouts\" width=\"1024\" height=\"359\" \/><\/div>\r\n","filter":true}},"front-page-3":{"text-3":{"title":"Front Page 3: small headline","text":"<h2>This is the large full width text block in the Front Page 3 widget area. Front Page 3 has a wood effect background and two small icons.<\/h2>","filter":true},"text-4":{
@ekosp
ekosp / Altitude Pro theme set up HTML
Created April 13, 2018 03:08 — forked from philipgledhill/Altitude Pro theme set up HTML
Sample content for Altitude Pro theme set up
<!-- Put this code in a text widget in front-page-1 widget area of Altitude Pro theme. -->
<!-- Put 1 text widget in this widget area. -->
<h4>This headline has a small font size</h4>
<h2>Your Headline <br />goes here</h2>
<a class="button" href="#front-page-7">This text jumps to bottom of home page</a>
<a class="button clear white" href="#front-page-2">This text jumps to section two of the home page</a>
@ekosp
ekosp / fileUpload.php
Created April 7, 2018 05:45
Web Service to upload image-video using android
<?php
// Path to move uploaded files
$target_path = "uploads/";
// array for final json respone
$response = array();
// getting server ip address
$server_ip = gethostbyname(gethostname());
@ekosp
ekosp / eclispe:user.name OS X
Created August 25, 2016 08:24 — forked from alphazero/eclispe:user.name OS X
set user.name (e.g. for @author tag) in eclipse | Mac OS X
# read $EHOME as the path to where eclipse is installed
# edit eclipse.ini
cd $EHOME/eclipse/Eclipse.app/Contents/MacOS/
vim eclipse.ini
# add the following key/value to end of the ini file
# value can be anything including embedded spaces.
-Duser.name=Your Name <your@email.tld>