There is a 7-digit number with all distinct digits. The product of the first 3 digits = product of the middle 3 digits = product of the last 3 digits. Find the 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
{ | |
"headers":"Received: by 127.0.0.1 with SMTP id biZiwTWjjD Sat, 09 Jun 2012 10:43:52 -0500 (CDT)\nReceived: from mail-yx0-f172.google.com (mail-yx0-f172.google.com [209.85.213.172]) by mx4.sendgrid.net (Postfix) with ESMTPS id 1A9D419C652B for <[email protected]>; Sat, 9 Jun 2012 10:43:52 -0500 (CDT)\nReceived: by yenq13 with SMTP id q13so2338739yen.17 for <[email protected]>; Sat, 09 Jun 2012 08:43:51 -0700 (PDT)\nDKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sendgrid.com; s=ga1; h=mime-version:date:message-id:subject:from:to:content-type; bh=6ndRTMDsIj0LBFl4mwV5dA4IylaCh0iRAVSfFThxTJQ=; b=NfHHw8s3kiwjR+880fIclXOehS2bUgyzPFo7/7zrBYRzj/LoQHSAore6XNjrkjLthK BhiJJkkLTE3cR9XCuhQIyW5wC6kaKOyQKTAOvqNnWvw8IwD819JlAdopH55ljHsTElAS 8uR6RECrZsHkZAfSgywBuhd3NvSIB+CHv4rYc=\nX-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :x-gm-message-state; bh=6ndRTMDsIj0LBFl4mwV5dA4IylaCh0iRAVSfFThxTJQ=; b=gn |
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 express = require('express') | |
, app = express.createServer() | |
, SendGrid = require('sendgrid').SendGrid | |
, sendgrid = new SendGrid("hackthemidwest", "hackthemidwest"); | |
app.get('/swiftIsAwesome', function(req, res) { | |
sendgrid.send({ | |
to: "[email protected]", | |
from: "[email protected]", | |
subject: "SendGrid is easy to use and awesome", |
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
// Twilio should be a constructor so you can instantiate multiple account connections. | |
var Twilio = require('twilio-js') | |
, twilioConnection1 = new Twilio("ACxxxxxxxxxxxxxxxxxxxxxx1", "xxxxxxxxxxxxxxxxxxxxxxxxx") | |
, twilioConnection2 = new Twilio("ACxxxxxxxxxxxxxxxxxxxxxx2", "xxxxxxxxxxxxxxxxxxxxxxxxx"); |
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 parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.host; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" |
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
{ | |
"author": "", | |
"name": "1in7-cron-hour", | |
"description": "cron for 1in7", | |
"version": "0.0.0-2", | |
"repository": { | |
"url": "" | |
}, | |
"engines": { | |
"node": "~0.6.9" |
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 ruby | |
def factorial(n) | |
n == 0 ? 1 : n * factorial(n-1) | |
end | |
def R(n) | |
fact = factorial(n) | |
fact.to_s.split("").inject(0) { |sum, n| sum + n.to_i } | |
end |
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
SomeController = (app) -> | |
MyModel = app.db.model 'MyModel' | |
# Streaming | |
app.get '/somethings', (req, res) -> | |
res.contentType('json') | |
somethingsStream = MyModel.find().stream() | |
somethingsStream.on 'data', (data) -> | |
res.send(JSON.stringify(data)) |
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
# Cucumber doesn't like nested features (putting them into subdirectories) | |
# to fix this, add the following lines to config/cucumber.yml: | |
# --require features/step_definitions --require features/support | |
# SOURCE: http://collectiveidea.com/blog/archives/2010/09/13/practical-cucumber-organization/ | |
<% | |
rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : "" | |
rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}" | |
std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} --strict --tags ~@wip --require features/step_definitions --require features/support" | |
%> |
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
[ theycallmeswift ~/dev/personal/blah master ✔ ] NODE_ENV=test coffee features/visitor_views_the_website.coffee | |
error: Loading resource: Could not load resource at http://localhost:3000/404, got 404 - More: | |
Error: Could not load resource at http://localhost:3000/404, got 404 | |
·· error: Loading resource: Could not load resource at http://localhost:3000/500, got 500 - More: | |
Error: Could not load resource at http://localhost:3000/500, got 500 | |
·· ✓ OK » 4 honored (0.050s) | |
How can I get rid of those error messages ^^^^ |
NewerOlder