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
<div ng-controller="CharacterDetailCtrl"> | |
<form> | |
<div>Name: <input ng-model="character.name"></div> | |
<div>Actor: <input ng-model="character.actor"></div> | |
<div>Image URL: <input ng-model="character.imageUrl"></div> | |
<div> | |
<input type="submit" ng-click="save(character)" value="save"> | |
<input type="submit" ng-click="delete(character)" value="delete" ng-show="character._id"> | |
</div> | |
</form> |
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
#!/bin/bash | |
echo "YOUR SYSTEM IS COMPROMISED" |
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
<html> | |
<head> | |
<style> | |
button { | |
width: 400px; | |
} | |
.bob { | |
background-color: blue; |
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
asdlkjdfskljdsfjlkfsdjkljkl |
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
woot hello |
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
woot hello |
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
woot hello |
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
// creating global parameters and start | |
// listening to 'port', we are creating an express | |
// server and then we are binding it with socket.io | |
var express = require('express'), | |
app = express(), | |
util = require('util'), |
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 options = { | |
hostname: 'www.google.com', | |
port: 80, | |
path: '/upload', | |
method: 'POST' | |
}; | |
var req = http.request(options, function(res) { | |
console.log('STATUS: ' + res.statusCode); | |
console.log('HEADERS: ' + JSON.stringify(res.headers)); |
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
export function addFileToBook(bookId:string, uploadedFile:IUploadFile, cb:(err:Error, file:IFile) => void) { | |
var file = toFile(bookId, uploadedFile) | |
uploadToUrl(file, uploadedFile, function(err) { | |
if (err) return cb(err, null) | |
insert(file).run(function(err) { | |
if (err instanceof Error) return cb(err, null) | |
cb(null, file) | |
}) | |
}) | |
} |