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
(define (find-largest x y z) | |
(cond ((and (> x y) (> x z)) x) | |
((and (> y z) (> y x)) y) | |
((and (> z x) (> z y)) z))) | |
(define (find-second-largest x y z) | |
(cond ((and (> y x) (< y z)) y) | |
((and (> z y) (< z x)) z) | |
((and (> x z) (< x y)) x))) |
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
(define (average x y) | |
(/ (+ x y) 2)) | |
(define (improve guess x) | |
(average guess (/ x guess))) | |
(define (good-enough? guess x) | |
(< (abs (- (square guess) x)) 0.001)) | |
(define (sqrt-iter guess x) |
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
"We don't have the capacity," Weeks replied. "None of our plants make the glass now." | |
"Don't be afraid," Jobs replied. This stunned Weeks, who was good-humored and confident but not used to Jobs's reality distortion field. He tried to explain that a false sense of confidence would not overcome engineering challenges, but that was a premise that Jobs had repeatedly shown he didn't accept. He stared at Weeks unblinking." "Yes, you can do it," he said. "Get your mind around it. You can do it." | |
As Weeks retold this story, he shook his head in astonishment. "We did it in under six months," he said. "We produced a glass that had never been made." |
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
presidents = ["George Washington", "Thomas Jefferson", "Theodore Roosevelt", "Abraham Lincoln", "William Howard Taft"] | |
for president in presidents: | |
print president | |
if president == "Teddy Roosevelt": | |
print "Teddy wins!" |
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
SurveyMonkey, Cvent great surveying resources | |
How do I improve survey responses? | |
1. Work backwards | |
- what question am I trying to answer? | |
- what data do I need to answer the question? | |
- what type of survey should I use to collect this data? | |
- to whom should I ask the question |
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
Jessica Hall - 3Pillar Global - looking for a senior UX role, focusing on PM and software/product | |
Dustin Levy - Gentex Corporation - looking for a product manager in SoCal, a marketing communications role in Boston, and a customer service leader in HQ | |
Amy - LivingSocial - looking for product managers on the consumer side (versus merchant or internal), also looking for Ruby devs | |
Shireen B - LearningObjects - junior product manager | |
Mina Rath - K12 - senior director of product managers |
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
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
import unittest as ut | |
import time | |
class NewPaymentTest(ut.TestCase): | |
def setUp(self): | |
self.browser = webdriver.Firefox() | |
self.browser.implicitly_wait(3) |
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 pls_webform_element($variables) { | |
$element = $variables['element']; | |
$value = $variables['element']['#children']; | |
$wrapper_classes = array( | |
'form-item', | |
); | |
$output = '<div class="' . implode(' ', $wrapper_classes) . '" id="' . $element['#id'] . '-wrapper">' . "\n"; | |
$required = !empty($element['#required']) ? '<span class="form-required" title="' . t('This field is required.') . '">*</span>' : ''; |
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
defaults write com.apple.finder CreateDesktop -bool false && killall Finder |
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
class Fruit: | |
def __init__(self, sort): | |
self.sort = sort | |
class Fruits: | |
def __init__(self): | |
self.sorts = {} | |
def get_fruit(self, sort): | |
if sort not in self.sorts: |