Skip to content

Instantly share code, notes, and snippets.

View agrublev's full-sized avatar
💭
Always moving forward

Angel Grablev agrublev

💭
Always moving forward
View GitHub Profile
@agrublev
agrublev / dabblet.css
Created February 17, 2012 00:06
ZEBRAS
/**
* ZEBRAS
*/
body {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height:100%;
}
.test {}
@agrublev
agrublev / dabblet.css
Created March 10, 2012 21:35
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height:100%;
body {background: #f0f0f0; text-shadow:0px 1px 0px #fff;}
ul {width:250px;}
ul li {display:table;}
ul li a {display:table-cell; background:url(http://images.fzilla.com/images/bullet.png) no-repeat;}
.area {
width: 300px;
height: 300px;
background: url(../images/abe-bg.png) no-repeat;
position: relative;
border:5px solid #000;
}
.bubble {
ul {width:150px; list-style:none; margin:0px; padding:0px; }
ul li {width:150px; height:64px; position:relative; border:1px solid #000; margin:0px; padding:0px;}
ul li div { top:0px; left:0px; bottom:0px;position; absolute; display:table;}
ul li div a {display:table-cell; vertical-align:middle;}
ul li div a span { display:block; float:left; width:64px; height:64px; background:url(http://images.fzilla.com/images/bullet.png) no-repeat;}
@agrublev
agrublev / promise.js
Created July 11, 2013 23:57
AngularJS using $q promises with $resource before Version 1.2 of Angular comes out
var errors = [];
var returnData = [];
angular.forEach(array,function(val,ind){
var tmpDef = $q.defer();
errors.push(tmpDef.promise);
some$resource.save({someId: val.id},'',function(data){
// success resolve promise with data returned
tmpDef.resolve('success');
returnData.push(data);
},function(data){
@agrublev
agrublev / example.js
Created July 13, 2013 22:22
Difference between for(i for data) and forEach(
if(!fc.empty(data.groups) && !fc.empty(data.projects_users)) {
var projects_users_count = data.projects_users.length;
for(var i in data.groups) {
if(!fc.empty(data.groups[i].projects)) {
for(var j in data.groups[i].projects) {
if(!fc.empty(data.groups[i].projects[j].applications)) {
for(var k in data.groups[i].projects[j].applications) {
if(fc.empty(data.groups[i].projects[j].applications[k].users)) {
data.groups[i].projects[j].applications[k].users = [];
}
@agrublev
agrublev / gist:9787230
Last active August 29, 2015 13:57
Calling out ProofHub on their dirty tactics of acquiring customers by creating fake accounts all over the web.
Sad day when companies are willing to go this low to capture 100-200 customers...
I initialy thought this was just 1 or two fake accounts... who cares. Then i spent
5 minutes and found dozens of fake accounts (honestly don't want to spend more time
as it's ridiculous already). ProofHub I hope you are ashamed of these tactics.
As a person who has built a company like yours from the ground up I am truly disgraced
with your decision to play this game. For this reason I find it necessary to expose you
and your scam.
Here is a list of accounts i've found all completely obviously fake:
@agrublev
agrublev / usingCrossroads.html
Created January 24, 2017 10:54
How to use crossroads.js with history.js
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
body {background:black;color:white;}
</style>
<script src="jquery.js"></script>
<script src="signal.js"></script>
@agrublev
agrublev / .bash_profile
Last active April 19, 2017 14:46 — forked from natelandau/.bash_profile
Mac OSX Bash Profile Linux
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management