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
# Submitter: andre.laszlo | |
# Maintainer: jooch | |
# Contributors: Florian Dejonckheere <florian@floriandejonckheere.be>, Jooch <jooch (at) gmx (dot) com> | |
pkgname=live-usb-install | |
pkgver=2.5.11 | |
pkgrel=1 | |
pkgdesc="LiveUSB Install - Create bootable usb sticks from a wide range of different Linux distributions" | |
url="http://live.learnfree.eu" | |
license=('GPL') |
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
pre_upgrade() { | |
/usr/bin/find /usr/share/live-usb-install -name \*.pyc -delete | |
} | |
post_remove() { | |
/usr/bin/find /usr/share/live-usb-install -name \*.pyc -delete | |
} |
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
# Maintainer: Artem Bezsmertnyi <artem.bezsmertny@gmail.com> | |
_author=tony | |
pkgname=tmuxp | |
pkgver=1.2.4 | |
pkgrel=1 | |
gitpkgver=v${pkgver} | |
pkgdesc="Manage tmux workspaces from JSON and YAML, pythonic API, shell completion." | |
arch=(any) | |
url="https://github.com/tony/tmuxp" | |
license=('BSD') |
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
console.log(foo); // [Function: foo] | |
foo(); // 'bar' | |
function foo() { | |
console.log('bar'); | |
} | |
console.log(baz); // undefined | |
baz(); // TypeError: baz is not a function | |
var baz = function() { | |
console.log('bar'); |
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
// This version throws a ReferenceError | |
function foo() { | |
console.log(x); | |
} | |
// These versions are equivalent and both log undefined | |
function bar() { | |
console.log(x); | |
var x = 'ZORG'; | |
} | |
function baz() { |
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
the_word = 'bird' | |
def foo(): | |
print(the_word) | |
def baz(): | |
print(the_word) | |
the_word = 'is too long' | |
foo() # 'bird' | |
baz() # UnboundLocalError: local variable 'the_word' referenced before assignment |
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
var baz = 'yes'; | |
if (true) { | |
var baz = 'no'; | |
} | |
console.log(baz); // 'no' | |
let bar = 'yes'; | |
if (true) { | |
let baz = 'no'; | |
} |
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
env = require("../env"); | |
module.exports = { | |
"Load the site and save a screenshot": browser => { | |
browser | |
.url("http://www.vikingcodeschool.com") | |
.waitForElementVisible("body", 1000) | |
.saveScreenshot("./screenshots/1.jpg") | |
.click('a[href="/sign_in"') | |
.saveScreenshot("./screenshots/2.jpg") |
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
const display = (res, items) => { | |
let lines = []; | |
items.forEach(item => { | |
lines.push("<hr>"); | |
lines.push([`${item.name}: $${item.price}`]); | |
}); | |
lines = lines.join("<br>"); | |
res.writeHead(200, { "Content-Type": "text/html" }); | |
res.end(lines); | |
}; |
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
const opts = { | |
most: () => [{}, {}, { sort: { price: -1 } }], | |
least: (most) => [{ category: most.category }, {}, { sort: { price: 1 } }], | |
sum: (most, least) => { | |
return [ | |
[ | |
{ | |
$match: { | |
category: most.category, | |
_id: { $nin: [most._id, least._id] } |
OlderNewer