I hereby claim:
- I am lajlev on github.
- I am lajlev (https://keybase.io/lajlev) on keybase.
- I have a public key whose fingerprint is 0CCE 9020 6843 944A 325C FBBE F930 C27C 3BAF 7BBE
To claim this, I am signing this object:
module.exports = function(grunt) { | |
require('load-grunt-tasks')(grunt) | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
svgmin: { | |
dist: { | |
expand: 'true', |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/ruby | |
tmp = "{query}" | |
# If there was a query, then parse the query | |
unless tmp.nil? || tmp == 0 | |
args = tmp.split | |
num = args.at(0) | |
char_limit = args.at(1) | |
else |
wp-create() { | |
wp core download | |
git init | |
gi wordpress >> .gitignore | |
mysql -uroot -proot -e "create database $1;" | |
wp core config --dbname=$1 --dbuser=root --dbpass=root | |
wp core install --url=http://$1.wp --title=$1 --admin_user=lajlev --admin_password=7913 [email protected] | |
} |
for i in *.jpg; do convert $i -colorspace Gray gray/$i; done |
<?php | |
// Create a new slack slash command https://my.slack.com/services/new/slash-commands | |
header('Content-Type: application/json; charset=utf-8'); | |
# Grab token from the slash command. | |
$token = $_POST['token']; | |
# Check the token and make sure the request is from our team |
#!/bin/sh | |
# Requires sketch and Sketchtool | |
# Q: How to enable it? | |
# A: Add it to your repo pre-commit hook | |
# Q: What does it do? | |
# A: It creates a .exportArtboards folder with all artboards as PNGs, | |
# so you easily can see changes in GIT 🎊. | |
function bbcreate(){ | |
curl -s -S -X POST -v -u lajlev:$BITBUCKET_PASS -H "Content-Type: application/json" \ | |
https://api.bitbucket.org/2.0/repositories/lajlev/$1 \ | |
-d '{"scm": "git", "is_private": "true", "fork_policy": "no_public_forks" }' > /dev/null | |
printf "\n 🍄 https://bitbucket.org/lajlev/$1 created\n\n" | |
} | |
function bbdelete(){ | |
read -r -p "Delete https://bitbucket.org/lajlev/$1 ? [y/N] " response | |
response=${response,,} |
# Create a Bitbucket repo | |
function bbcreate () { | |
if [ $# == 1 ]; then # Passing an parameter? | |
curl -s -S -X POST --user $BITBUCKET_USER:$BITBUCKET_PASS "https://api.bitbucket.org/2.0/repositories/lajlev/$1" -d "is_private=true" # Create a private repo | |
git init # Init local git repo | |
git remote add origin [email protected]:$BITBUCKET_USER/$1.git # Add Bitbucket repo as git remote | |
printf "\n\n\n 🍄 https://bitbucket.org/$BITBUCKET_USER/$1 created\n\n" # Confirm messsage | |
else # No parameter | |
printf "\n Please enter a repo name 👍\n\n" | |
fi |
var casper = require('casper').create(); | |
var fs = require('fs'); | |
var pages = []; | |
casper.start('http://iconmonstr.com/page/2', function () { | |
var pageNumbers = this.evaluate(function () { | |
return $('a.page-numbers:nth-child(7)').html(); | |
}); |