Skip to content

Instantly share code, notes, and snippets.

Avatar

Arsen Abdusalamov mekegi

  • Avito
  • Moscow
View GitHub Profile
View social.html
<!-- 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 Apr 17, 2015
whiptail menu for phing
View MenuPhingTask.php
<?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
View result
/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]
View RussianPost.php
<?php
/**
* @since 08.08.14 12:35
* @author Arsen Abdusalamov duburlan@gmail.com
*/
class RussianPost {
protected $symbol = [
0 => [[1, 1, 1],
View untrusted-lvl20-solution.js
/*****************
* 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!!!!!
*/
View untrusted-lvl18-solution.js
/**********************
* 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.
*/
View untrusted-lvl17-solution.js
/***************
* 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!
*/
View untrusted-lvl16-solution.js
/*************
* 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) {
View untrusted-lvl12-solution.js
/*
* 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
View untrusted-lvl10-solution.js
/*************
* 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.
*
You can’t perform that action at this time.