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
$scope.animations.push({
opacity: [0, 1],
ease: 'easeInOutExpo',
duration: 1000,
delay: 500,
animation: [
{
class: ".card-orange",
order: 1,
duration: 1500,
@agrublev
agrublev / app.js
Created September 14, 2017 04:18 — forked from ColCh/app.js
catch errors and send 'em to Crashlytics in React Native
// WARNING: SIDE-EFFECTS. ONLY FOR PROD VERSION
if (!__DEV__) {
require('./utils/log.js');
}
// SIDE-EFFECTS END
//I set to the window event to make sure it stays available. This is handy in many applications that may need to wait.
window.image1 = document.getElementById('img1');
window.image2 = document.getElementById('img2');
window.canv1 = document.getElementById('canv1');
window.canv2 = document.getElementById('canv2');
window.ctx1 = window.canv1.getContext('2d');
window.ctx2 = window.canv2.getContext('2d');
window.imagesLoaded = 0;
//load the images
@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
@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 / 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 / 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 / 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){
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;}
.area {
width: 300px;
height: 300px;
background: url(../images/abe-bg.png) no-repeat;
position: relative;
border:5px solid #000;
}
.bubble {