Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
{ | |
"metadata": { | |
"name": "Rasterize" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
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
clear all | |
close all | |
clc | |
% Load in an image | |
I = double(imread('~/Desktop/not-used-frequently/pictures_for_project/lenna.jpg')); | |
I2 = mean(I,3); | |
I3 = imresize(I2,[512,512]); | |
% Take Measurements (pixels) | |
sz = size(I3); |
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
> iptest | |
********************************************************************** | |
IPython test group: IPython.config | |
.............................................. | |
---------------------------------------------------------------------- | |
Ran 46 tests in 0.054s | |
OK | |
********************************************************************** | |
IPython test group: IPython.core |
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
[self.view.layer removeAllAnimations]; | |
[UIView beginAnimations:nil context:NULL]; | |
[UIView setAnimationBeginsFromCurrentState:YES]; | |
[UIView setAnimationDuration:0.1]; | |
[UIView setAnimationCurve: UIViewAnimationCurveLinear]; | |
[UIView commitAnimations]; |
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 http://www.ece.illinois.edu/students/salaries.html1010 | |
bee = 60.646e3 | |
phd = 90.374e3 | |
# doesn't account for pay raises (which are common) | |
total_pay_bee = bee * (65 - 23) | |
total_pay_phd = phd * (65 - 23 - 7) + 20e3*7 |
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
Process: Xcode [1966] | |
Path: /Applications/Xcode.app/Contents/MacOS/Xcode | |
Identifier: com.apple.dt.Xcode | |
Version: 4.6.2 (2067.2) | |
Build Info: IDEApplication-2067002000000000~2 | |
App Item ID: 497799835 | |
App External ID: 15055625 | |
Code Type: X86-64 (Native) | |
Parent Process: launchd [261] | |
User ID: 501 |
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
# let's define it regularly | |
def findNewNumber(n): | |
newNumber = 0 | |
for i in arange(len(str(n))): | |
newNumber += int(str(n)[i])**2 | |
return newNumber | |
In [7]: run euler.py |
OlderNewer