Skip to content

Instantly share code, notes, and snippets.

View eimkasp's full-sized avatar
🍀
Building...

Eimantas eimkasp

🍀
Building...
View GitHub Profile
@eimkasp
eimkasp / gist:f32039881fb3c997efb5
Last active August 29, 2015 14:03
Appache httpd.conf example scriball
<VirtualHost *:80>
ServerName local.scriball.com
DocumentRoot /web/Scriball-FrontEnd/scriball/public
SetEnv APPLICATION_ENV dev2
RewriteEngine on
<Directory /web/Scriball-FrontEnd/scriball/public>
Options Indexes IncludesNOEXEC FollowSymLinks -MultiViews
AllowOverride All
Order allow,deny
@eimkasp
eimkasp / new_gist_file
Created September 4, 2013 14:53
C++ get line example with few words
getline(fd, pav, ','); fd >> ws;
cout << pav << endl;
getline(fd, degalai, ',');
fd >> sąnaudos;
A[i].Dėti(pav, degalai, sąnaudos);
@eimkasp
eimkasp / createJS start file
Created June 21, 2013 06:04
CreateJS boilerplate
function init() {
hover = false;
angle = 0;
canvas = document.getElementById("mainStage");
stage = new createjs.Stage(canvas);
createjs.Ticker.setFPS(30);
createjs.Ticker.addEventListener("tick", tick);
stage.enableMouseOver(10);
planet1.addEventListener("mouseover", manageMouseOver);
planet1.addEventListener("mouseout", manageMouseOut);
fpsLabel = new createjs.Text("-- fps", "bold 18px Arial", "#000000");
stage.addChild(fpsLabel);
fpsLabel.x = 10;
fpsLabel.y = 20;
stage.addChild(fpsLabel);
function tick(event) {
fpsLabel.text = Math.round(createjs.Ticker.getMeasuredFPS()) + " fps";
}
$(document).ready(function(){
$('.more_products').click(function(){
$('.flipper:nth-child(3)').slideToggle();
$('.flipper:nth-child(4)').slideToggle();
$('.more_products').css("top", "70%");
});
});
add_theme_support('menus');
add_theme_support('post-thumbnails');
add_action('init', 'register_my_menus');
function register_my_menus() {
register_nav_menus(
array(
'primary-menu' => __('Viršutinis meniu'),
'secondary-menu' => __('Kategoriju meniu')
// 'secondary-menu' => __( 'Pagrindinis meniu' ),