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
mg = require 'mongoose' | |
dictionarySchema = mg.model('Dictionary', { | |
title: String, | |
author: String, | |
words: [ | |
{ word: String, definition: String } | |
] | |
meta: { | |
votes: Number, |
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
[ { | |
"mentor": true, | |
"profile_url": "http://www.meetup.com/CoderDojoPonceSprings/members/7498547/", | |
"status": "active", | |
"photo_url": "http://photos1.meetupstatic.com/photos/member/1/1/5/a/member_94558442.jpeg", | |
"answers": [ | |
{ | |
"answer": "Web, NodeJS, JavaScript, CoffeeScript, CSharp, DotNET, MongoDB, SQL, TwitterBootstrap, JQueryMobile, AngularJS, Backbone, Underscore, RequireJS", | |
"question": "If you are a professional developer/technologist interested in mentoring students on coding, what languages, technologies, platforms, etc do you specialize in?", | |
"question_id": 4402172 |
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
using System; | |
using RestSharp; | |
using RestSharpToV1.VersionOne; | |
namespace RestSharpToV1 | |
{ | |
public class AssetXml | |
{ | |
public static void Main(string[] args) | |
{ |
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
[ | |
{ | |
"id": "json", | |
"title": "Meta JSON", | |
"content": "", | |
"mode": "json", | |
"url": "https:\/\/ec2-54-227-126-9.compute-1.amazonaws.com\/VersionOne\/meta.v1\/Story?accept=application\/json" | |
}, | |
{ | |
"id": "xml", |
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
namespace VersionOne.Arena.Module.ManageBacklog | |
open System.Reflection | |
[<assembly: AssemblyVersion("1.0.0.0")>] | |
[<assembly: AssemblyFileVersion("1.0.0.0")>] | |
do() | |
open VersionOne.Arena.Intrastructure.Web |
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
<?xml version="1.0" encoding="utf-16"?> | |
<BuildCompletionEvent2 xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<BuildUri>vstfs:///Build/Build/103</BuildUri> | |
<TeamFoundationServerUrl>http://tfs201064:8080/tfs/DefaultCollection</TeamFoundationServerUrl> | |
<Url>http://tfs201064:8080/tfs/web/build.aspx?pcguid=774086bc-c49c-4e0d-860c-98dabdf8523f&builduri=vstfs:///Build/Build/103</Url> | |
<Title>Hello World Build Call Center_20140213.6 succeeded</Title> | |
<TeamProject>Hello World</TeamProject> | |
<AgentPath>TFS201064 - Controller</AgentPath> | |
<DefinitionPath>\Hello World\Call Center</DefinitionPath> | |
<BuildNumber>Call Center_20140213.6</BuildNumber> |
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
number = prompt("What's your guess?"); | |
if (number > 29) { | |
alert("Too high!"); | |
} else if (number < 29) { | |
alert("Too low!"); | |
} else { | |
alert("Correct! The secret number is 29!"); | |
} |
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
# wget https://gist.githubusercontent.com/JogoShugh/a888bb58c8380a47152b/raw/allstuff.sh | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' | |
sudo add-apt-repository ppa:webupd8team/sublime-text-3 | |
sudo apt-get update | |
# Chrome | |
sudo apt-get install google-chrome-stable -y | |
# Sublime |
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
function mongoLabResourceFactory(resourceService, resourcePath, resourceName, apiKey) { | |
var resource = resourceService(resourcePath + '/' + resourceName + '/:id', { | |
apiKey: apiKey | |
}, { | |
update: { | |
method: 'PUT' | |
} | |
}); | |
resource.prototype.update = function (cb) { |
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
./MiniCapPortable/MiniCap.exe -save C:\\Users\\Josh\\cap.jpg -captureactivewin -exit | |
certutil -encode cap.jpg cap.txt | |
(lines=$(wc -l < cap.txt); tail -n +2 cap.txt | head -n $(($lines-2)) | tr -d '\n') | awk '{ print "data:image/jpg;charset=utf-8;base64,"$1 }' >data.url |