This file contains 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
/* test/fixtures/fixtures_dishes.js */ | |
module.exports = [ | |
{ | |
"_id" : "000000000000000000001100", | |
"updatedAt" : "2016-03-21T23:14:53.548Z", | |
"createdAt" : "2016-03-21T23:14:53.548Z", | |
"name" : "Uthapizza", | |
"image" : "images/pizza.png", |
This file contains 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
#!/usr/bin/perl -w | |
# | |
# This script was developed by Robin Barker (Robin.Barker@npl.co.uk), | |
# from Larry Wall's original script eg/rename from the perl source. | |
# | |
# This script is free software; you can redistribute it and/or modify it | |
# under the same terms as Perl itself. | |
# | |
# Larry(?)'s RCS header: | |
# RCSfile: rename,v Revision: 4.1 Date: 92/08/07 17:20:30 |
This file contains 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
# 0. Your file name | |
FNAME=some.file | |
# 1. Somehow sanitize the file content | |
# Remove \r (from Windows end-of-lines), | |
# Replace tabs by \t | |
# Replace " by \" | |
# Replace EOL by \n | |
CONTENT=$(sed -e 's/\r//' -e's/\t/\\t/g' -e 's/"/\\"/g' "${FNAME}" | awk '{ printf($0 "\\n") }') |
This file contains 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
//--------------------------------------------------------------// | |
// Header | |
// | |
// Lightworks effects have to have a _LwksEffectInfo block | |
// which defines basic information about the effect (ie. name | |
// and category). EffectGroup must be "GenericPixelShader". | |
//--------------------------------------------------------------// | |
int _LwksEffectInfo | |
< | |
string EffectGroup = "GenericPixelShader"; |
This file contains 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
//--------------------------------------------------------------// | |
// MoreBlend.fx | |
// | |
// Copyright (c) Sylvain Leroux. All Rights Reserved | |
//--------------------------------------------------------------// | |
int _LwksEffectInfo | |
< | |
string EffectGroup = "GenericPixelShader"; | |
string Description = "Fixed Blend"; |
This file contains 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
#!/bin/bash | |
function usage() { | |
echo Usage: $0 dir1 ...dirN [+GLOB] >&2 | |
} | |
function fail() { | |
echo $1 >&2 | |
usage |
This file contains 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
#!/bin/bash | |
COLOR="#59838c" | |
for f in FRAME-*.png; do convert \( -size 1920x1080 xc:black \) \( $f -alpha Off -level 10%,100% -negate \) -compose CopyOpacity -composite ${f/FRAME/ALPHA}; done | |
for f in ALPHA-*.png; do convert \( -size 1920x1080 xc:"$COLOR" \) \( $f \) -compose Over -composite ${f/ALPHA/OVER}; done |
This file contains 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
#!/bin/bash | |
echo '1 2 3' > sample.data | |
cut -d' ' -f1,3 sample.data | read X Z | |
echo $((X+Z)) |
This file contains 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
#!/usr/bin/env python | |
# svglinkify.py - Add hyperlinks to PDFs generated by Inkscape | |
# Copyright (C) 2015 Mansour Behabadi <mansour@oxplot.com> | |
# | |
# This script comes with no warranty whatsoever. Use at your own risk. | |
# If you decide to distribute verbatim or modified versions of this | |
# code, you must retain this copyright notice. | |
# | |
# Usage: svglinkify.py <svg-file> <inkscape-gen-pdf> <linkified-pdf> | |
# Requires: |
This file contains 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
#!/bin/bash | |
set -e | |
shopt -s expand_aliases | |
alias make='make -j9' | |
sudo apt-get update | |
sudo apt-get install -y \ | |
libblas-dev libgsl-dev python-cairo-dev \ | |
libgtk2.0-dev libgtkmm-2.4-dev libcairomm-1.0-dev libcairo2-dev \ |