Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View mekegi's full-sized avatar

Arsen Abdusalamov mekegi

View GitHub Profile
<!-- live preview https://jsfiddle.net/duburlan/16vstjxo/2/ -->
<section class="sharing-btns post-share">
<a href="https://www.facebook.com/dialog/share?app_id={{ .Site.Params.facebook_admin }}&amp;display=popup&amp;href={{ .Permalink }}&redirect_uri={{ .Permalink }}"
target="_blank"
title="Поделиться через Facebook"
data-social="Facebook"
class="like__widget swidget_facebook"
></a>
<a href="https://twitter.com/share?url={{ .Permalink }}&amp;text={{ .Title }}&amp;hashtags=some,ololo"
@mekegi
mekegi / MenuPhingTask.php
Created April 17, 2015 11:42
whiptail menu for phing
<?php
/**
* usage:
* example 1
<taskdef name="menu" classname="MenuPhingTask" />
<menu title="select enviropment" choices="dev,staging,hotfix,live" />
<property name="build.env" value="${menu.result}" override="true" />
*
* example 2
/usr/bin/php /ssd/native/RussianPost.php
0 at [1, 1]
1 at [1, 5]
2 at [1, 9]
3 at [1, 13]
4 at [1, 17]
5 at [1, 21]
6 at [1, 25]
7 at [1, 29]
8 at [1, 33]
<?php
/**
* @since 08.08.14 12:35
* @author Arsen Abdusalamov duburlan@gmail.com
*/
class RussianPost {
protected $symbol = [
0 => [[1, 1, 1],
/*****************
* bossFight.js *
*****************
*
* NO FARTHER, DR. EVAL!!!!
* YOU WILL NOT GET OUT OF HERE ALIVE!!!!
* IT'S TIME YOU SEE MY TRUE FORM!!!!
* FACE MY ROBOT WRATH!!!!!
*/
/**********************
* superDrEvalBros.js *
**********************
*
* You're still here?! Well, Dr. Eval, let's see
* how well you can operate with one less dimension.
*
* Give up now. Unless you have a magic mushroom
* up your sleeve, it's all over.
*/
/***************
* pointers.js *
***************
*
* You! How are you still alive?
*
* Well, no matter. Good luck getting through this
* maze of rooms - you'll never see me or the Algorithm again!
*/
/*************
* lasers.js *
*************
*
* Time to unleash the killer lasers! Each laser will kill you
* unless you have the appropriate color. Too bad you can't
* see which color corresponds to which laser!
*/
function getRandomInt(min, max) {
/*
* robotNav.js
*
* The green key is located in a slightly more
* complicated room. You'll need to get the robot
* past these obstacles.
*/
function startLevel(map) {
// Hint: you can press R or 5 to "rest" and not move the
/*************
* ambush.js *
*************
*
* Oh. Oh, I see. This wasn't quite part of the plan.
*
* Looks like they won't let you take the Algorithm
* without a fight. You'll need to carefully weave your
* way through the guard drones.
*