Skip to content

Instantly share code, notes, and snippets.

View razzius's full-sized avatar
🍉

Razzi Abuissa razzius

🍉
View GitHub Profile
@razzius
razzius / gulpfile.js
Last active August 29, 2015 14:01
gulp plumber
var gulp = require('gulp');
var sass = require('gulp-sass');
var browserify = require('gulp-browserify');
var livereload = require('gulp-livereload');
var plumber = require('gulp-plumber');
var tinylr = require('tiny-lr')();
var port = 35729;
gulp.task('watch', function() {
#!/bin/bash
echo "preparing package for RT-Xen"
#installing dependencies
sudo apt-get update
sudo apt-get install -y aptitude
sudo aptitude install -y emacs libaio-dev ssh git bcc bin86 gawk bridge-utils iproute libcurl3 libcurl4-openssl-dev bzip2 module-init-tools transfig tgif texinfo texlive-latex-base texlive-latex-recommended texlive-fonts-extra texlive-fonts-recommended pciutils-dev mercurial make gcc libc6-dev zlib1g-dev python python-dev python-twisted libncurses5-dev patch libsdl-dev iasl libbz2-dev e2fslibs-dev git-core uuid-dev ocaml ocaml-findlib libx11-dev bison flex xz-utils libyajl-dev gettext gcc-multilib libglib2.0-dev libpixman-1-dev libvirt-bin python-pexpect sshpass subversion nfs-kernel-server iperf
# The git repo

Keybase proof

I hereby claim:

  • I am razzius on github.
  • I am razzzzi (https://keybase.io/razzzzi) on keybase.
  • I have a public key whose fingerprint is FC8A C8D2 C118 8F7A 89CB 079D 5B08 873B 22CA 9AAB

To claim this, I am signing this object:

def truncate_amounts_based_on_maximum(amounts, maximum):
"""Take from amounts until maximum is reached, possibly truncating the final amount.
>>> truncate_amounts_based_on_maximum([10, 10], 15)
[10, 5]
>>> truncate_amounts_based_on_maximum([100], 0)
[]
>>> truncate_amounts_based_on_maximum([1,1,1], 1)
[1]
"""
[settings]
known_django=django
line_length=99
multi_line_output=3
sections=FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
[style]
dedent_closing_brackets = true
column_limit = 90
coalesce_brackets = true
<!DOCTYPE html>
<html>
<head>
<title>DESTINY LUONG</title>
</head>
<body>
<h1>DESTINY LUONG:
<br>
COMPUTER PRODIGY</h1>
<ul>
<!DOCTYPE html>
<html>
<head>
<title>DESTINY LUONG</title>
</head>
<body>
<h1>DESTINY LUONG:
<br>
COMPUTER PRODIGY</h1>
<ul>
<!DOCTYPE html>
<html>
<head>
<title>DESTINY LUONG</title>
</head>
<body>
<h1>DESTINY LUONG:
<br>
COMPUTER PRODIGY</h1>
<ul>