The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
<!doctype html> | |
<html> | |
<head> | |
<title>Videojs 7</title> | |
<meta charset="UTF-8"> | |
<link href="https://unpkg.com/video.js/dist/video-js.min.css" rel="stylesheet"> | |
</head> | |
<body style="margin-top:50px;"> | |
<div id="importantdiv"/> |
# Vim Cheatsheet | |
>Disclaimer: This cheatsheet is summarized from personal experience and other online tutorials. It should not be considered as an official advice. | |
## Global | |
```bash | |
:help keyword # open help for keyword | |
:o file # open file | |
:saveas file # save file as | |
:close # close current pane |
#!/usr/bin/bash | |
which ansible >/dev/null 2>&1 | |
if [ $? -ne 0 ]; | |
then | |
echo "Installing Ansible..." | |
sleep 5 | |
pushd . | |
cd ~ | |
pacman -S libyaml-devel python2 tar libffi libffi-devel gcc pkg-config make openssl-devel openssh libcrypt-devel --noconfirm --needed | |
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py |
// Demonstration video can be found at: https://youtu.be/roAerKVfq-Y | |
// StopEC2Instance | |
const AWS = require('aws-sdk'); | |
exports.handler = (event, context, callback) => { | |
const ec2 = new AWS.EC2({ region: event.instanceRegion }); | |
ec2.stopInstances({ InstanceIds: [event.instanceId] }).promise() |
// profiling of HighResolutionTimer implementation | |
// https://gist.github.com/DraTeots/436019368d32007284f8a12f1ba0f545 | |
using System; | |
using System.Diagnostics; | |
using System.Globalization; | |
using System.IO; | |
using System.Text; | |
using System.Threading; |
autopy - simple, cross-platform GUI automation toolkit. MIT - https://github.com/msanders/autopy/
sudo su
apt-get update && apt-get install -y libvirt-dev ruby-all-dev apparmor-utils
curl -O -L https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.5_x86_64.deb
dpkg -i vagrant_1.6.5_x86_64.deb
aa-complain /usr/lib/libvirt/virt-aa-helper # workaround
exit
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
<?xml version="1.0" encoding="utf-8"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | |
<xsl:output method="html" indent="yes" /> | |
<xsl:template match="/"> | |
<html> | |
<body> | |
<h1>Statistics</h1> | |
<p>Total codebase size: <xsl:value-of select="//CodebaseCost"/></p> | |
<p>Code to analyze: <xsl:value-of select="//TotalDuplicatesCost"/></p> | |
<p>Total size of duplicated fragments: <xsl:value-of select="//CodebaseCost" /></p> |