- Login to your Unix account
- Find your current shell, the default shell and a list of all installed shells.
- List all files and directories in
/etc
folder ordered by size (hint:man ls
). - Print the current date and time formatted as follows:
Sun 21/03/2010, 14:30 (hint:man date
)
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
var testRetryCounter = 0; | |
var assert = chai.assert; | |
$.ajax = function(opts) { | |
testRetryCounter++; | |
setTimeout(opts.error, 0); | |
}; | |
describe('Data', function() { | |
describe('#sendData()', function() { |
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
// Karma configuration | |
// Generated on Sun Sep 22 2013 11:31:34 GMT+0300 (IDT) | |
module.exports = function(config) { | |
config.set({ | |
// base path, that will be used to resolve files and exclude | |
basePath: '', | |
preprocessors: { |
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
var assert = chai.assert; | |
describe('Sinon', function() { | |
describe('spies', function() { | |
it('should keep count', function() { | |
// fill code here | |
spy(); | |
spy(); | |
spy(); |
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
function Fixtures(opts) { | |
var self = this; | |
opts = opts || {}; | |
self.base = opts.base ? opts.base : ""; | |
self._cache = {}; | |
self.fixture_id = opts.fixture_id || "fixture"; | |
self.el; | |
return { |
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
<!DOCTYPE html> | |
<html ng-app="MyApp"> | |
<head> | |
<title>CoolShop</title> | |
<style> | |
.item label { | |
margin: 10px; | |
display: inline-block; | |
min-width: 250px; | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css" /> | |
<style> | |
body { padding-top: 80px; } | |
</style> | |
</head> | |
<body> |
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
<!DOCTYPE html> | |
<html ng-app="Intro"> | |
<head> | |
<title>Hello Angular</title> | |
<style> | |
body { | |
font-size: 2em; | |
} |
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
#include <QCoreApplication> | |
#include <QtCore/QtCore> | |
#include "monitor.h" | |
int main(int argc, char *argv[]) | |
{ | |
QCoreApplication a(argc, argv); | |
QProcess p; | |
p.start("/bin/ls"); |