- Adopted from: https://stubby4j.com/docs/admin_portal.html
- Inspired by Swagger API docs style & structure: https://petstore.swagger.io/#/pet
#lang racket | |
(require 2htdp/image) | |
(require 2htdp/universe) | |
;; structure used | |
(struct crcl (radius color)) | |
;; constants | |
(define SIZE 500) |
from datetime import date, datetime, timedelta | |
birthdays = { | |
'George Washington': date(1732, 2, 22), | |
' John Adams': date(1735, 10, 30), | |
'Thomas Jefferson': date(1743, 4, 13), | |
'James Madison': date(1751, 3, 16), | |
'James Monroe': date(1758, 4, 28), | |
'Andrew Jackson': date(1767, 3, 15), | |
'John Quincy Adams': date(1767, 7, 11), |
The following are my responses to the main Common App essay and the Stanford application questions. You're welcome to read them to try and understand how I got "in" to Stanford, or just for fun. Whatever you choose to try and take away from these essays, I hope you get something out of them. Or nothing at all, that works too. Enjoy.
There's no secret formula. There are a lot of people more qualified than me that got denied. Even though they may have been more qualified, I beat them when it came to the essays. The most important part of your application is your essays, so I would encourage you to spend a lot of time on them. Spend time reflecting on who you are and how you can use your essays to communicate that. The readers of the over 40,000 Stanford applicants know a fake essay from a mile away. If you want to have a chance at admission, your essays need to be 100% authentic you, not 90% authentic you and 10% your mom/tutor/fake self.
If you plan to apply, I
var Parse = require("parse").Parse; | |
Parse.initialize( | |
"", // applicationId | |
"", // javaScriptKey | |
"" // masterKey | |
); | |
var query = new Parse.Query(Parse.Installation) | |
, data = { |
var fs = require('fs'), | |
http = require('http'), | |
https = require('https'), | |
httpProxy = require('http-proxy'); | |
var isHttps = true; // do you want a https proxy? | |
var options = { | |
https: { | |
key: fs.readFileSync('key.pem'), |
This article has been given a more permanent home on my blog. Also, since it was first written, the development of the Promises/A+ specification has made the original emphasis on Promises/A seem somewhat outdated.
Promises are a software abstraction that makes working with asynchronous operations much more pleasant. In the most basic definition, your code will move from continuation-passing style:
getTweetsFor("domenic", function (err, results) {
// the rest of your code goes here.
Perl and PHP Regular Expressions | |
PHP regexes are based on the PCRE (Perl-Compatible Regular Expressions), so any regexp that works for one should be compatible with the other or any other language that makes use of the PCRE format. Here are some commonly needed regular expressions for both PHP and Perl. Each regex will be in string format and will include delimiters. | |
All Major Credit Cards | |
This regular expression will validate all major credit cards: American Express (Amex), Discover, Mastercard, and Visa. | |
//All major credit cards regex | |
'/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6011[0-9]{12}|622((12[6-9]|1[3-9][0-9])|([2-8][0-9][0-9])|(9(([0-1][0-9])|(2[0-5]))))[0-9]{10}|64[4-9][0-9]{13}|65[0-9]{14}|3(?:0[0-5]|[68][0-9])[0-9]{11}|3[47][0-9]{13})*$/' |