This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#You've discovered the Shopify Store 'Shopicruit'. Since you're obsessed with lamps and wallets, | |
#you want to buy every single lamp and wallet variant they have to offer. By inspecting the | |
#Javascript calls on the store you discovered that the shop lists products at | |
#http://shopicruit.myshopify.com/products.json. Write a program that calculates how much all | |
#lamps and wallets would cost you. Attach your program (any language) and answer in the cover letter | |
#field below." | |
require 'unirest' | |
require 'bigdecimal' | |
require 'bigdecimal/util' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
show_tab = () -> | |
if location.hash.match(/^#tab-/) | |
$(".nav-tabs a[href=##{location.hash.replace('#tab-', '')}]").tab('show') | |
return | |
show_tab() | |
$(window).on 'popstate', -> | |
show_tab() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set t_Co=256 | |
syntax enable | |
set background=dark | |
set ts=4 | |
set tabstop=4 | |
set sw=4 | |
set et |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HTML: | |
<!-- Soccer Testimonial --> | |
<div class="container-fluid"> | |
<div class="container"> | |
<div class="row row-eq-height" style="min-height: 350px;"> | |
<div class="col-sm-4 testimonial-image"> | |
<img src="wp-content/uploads/2016/01/soccer-coach-image.png" alt="" style="margin: auto; display: block; position: relative; top: 100px; height: 150px; width: 150px; border-radius: 50%;"></img> | |
</div> | |
<div class="col-sm-8 testimonial"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://varvy.com/pagespeed/defer-loading-javascript.html | |
<script type="text/javascript"> | |
function downloadJSAtOnload() { | |
var element = document.createElement("script"); | |
element.src = "defer.js"; | |
document.body.appendChild(element); | |
} | |
if (window.addEventListener) | |
window.addEventListener("load", downloadJSAtOnload, false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
// 1. All configuration goes here | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
concat: { | |
options: { | |
separator: ';' | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to run: | |
# find and replace username with your username | |
adduser username | |
usermod -aG sudo username | |
su - username | |
mkdir ~/.ssh | |
chmod 700 ~/.ssh | |
vim ~/.ssh/authorized_keys | |
chmod 600 ~/.ssh/authorized_keys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install PHP 5.6: | |
sudo yum -y update | |
sudo yum -y install epel-release | |
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
wget https://centos7.iuscommunity.org/ius-release.rpm | |
sudo rpm -Uvh ius-release*.rpm | |
sudo yum -y update | |
sudo yum -y install php56u php56u-opcache php56u-xml php56u-mcrypt php56u-gd php56u-devel php56u-mysql php56u-intl php56u-mbstring php56u-bcmath | |
sudo service httpd restart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get install apache2 mysql-server php pep8 libapache2-mod-php php-mcrypt php-mysql php-curl php-gd php-mbstring php-mcrypt php-xml php-xmlrpc silversearcher-ag xclip htop python3 xvfb python3-pip libxml2 chromium-chromedriver firefox postgresql postgresql-contrib python-psycopg2 libpq-dev npm letsencrypt dos2unix vsftpd mailutils gconf2 gconf-service gconf-service-backend gconf2-common libgconf-2-4 sendmail python3-tk unzip git vim nodejs-legacy flake8 mtpfs libmtp-common mtp-tools libmtp-dev libmtp-runtime libmtp9 ruby ruby-dev libxml2-dev libxslt1-dev python-dev liblzma-dev zlib1g-dev qt5-default android-tools-adb udev mtp-tools kdeconnect postgresql postgresql-contrib php-cli ubuntu-make php-dev gcc make autoconf libc-dev pkg-config kcachegrind sqlite graphicsmagick pvm-dev phantomjs rake libicu-dev imagemagick libmysqlclient-dev composer -y | |
sudo vim /etc/apache2/apache2.conf | |
# add ServerName server_domain_or_IP | |
sudo ufw allow in "Apa |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo npm install gulp gulp-concat gulp-autoprefixer gulp-clean-css gulp-uglify gulp-rename gulp-watch gulp-cssmin gulp-insert gulp-sass laravel-elixir laravel-elixir-vue laravel-elixir-vue webpack node-sass laravel-elixir-webpack-official --global |
OlderNewer