320x480 (~165 ppi mdpi)
320dp x 455dp
### | |
### | |
### UPDATE: For Win 11, I recommend using this tool in place of this script: | |
### https://christitus.com/windows-tool/ | |
### https://github.com/ChrisTitusTech/winutil | |
### https://www.youtube.com/watch?v=6UQZ5oQg8XA | |
### iwr -useb https://christitus.com/win | iex | |
### | |
### |
// | |
// PrintLocalesController.m | |
// NSFormatterTest | |
// | |
// Created by Maciek Grzybowski on 02.04.2014. | |
// | |
#import "PrintLocalesController.h" | |
@interface PrintLocalesController () |
config defaultToCurrentScreen true | |
config nudgePercentOf screenSize | |
config resizePercentOf screenSize | |
# Shift + Command | |
bind up:shift;cmd move screenSizeX/5;0 screenSizeX/5*3;screenSizeY | |
bind down:shift;cmd push down bar-resize:screenSizeY | |
bind right:shift;cmd move screenSizeX-320;screenSizeY/2 300;screenSizeY/2 | |
bind left:shift;cmd move 20;screenSizeY/2 700;screenSizeY/2 |
// Media Queries in Sass 3.2 | |
// | |
// These mixins make media queries a breeze with Sass. | |
// The media queries from mobile up until desktop all | |
// trigger at different points along the way | |
// | |
// And important point to remember is that and width | |
// over the portrait width is considered to be part of the | |
// landscape width. This allows us to capture widths of devices | |
// that might not fit the dimensions exactly. This means the break |
/* ----------------------------------------------------------------------- */ | |
/* */ | |
/* Improved upon a mixin from 37signals and combined */ | |
/* with these numbers from marc. */ | |
/* */ | |
/* 37signals-version: */ | |
/* http://37signals.com/svn/posts/3271-easy-retina-ready-images-using-scss */ | |
/* */ | |
/* @kimroen */ | |
/* */ |
$sprites: sprite-map("sprites/*.png"); | |
$sprites-retina: sprite-map("sprites-retina/*.png"); | |
@mixin sprite-background($name) { | |
background-image: sprite-url($sprites); | |
background-position: sprite-position($sprites, $name); | |
background-repeat: no-repeat; | |
display: block; | |
height: image-height(sprite-file($sprites, $name)); | |
width: image-width(sprite-file($sprites, $name)); |
#Four Ways To Do Pub/Sub With jQuery and jQuery UI (in the future)
Between jQuery 1.7 and some of work going into future versions of jQuery UI, there are a ton of hot new ways for you to get your publish/subscribe on. Here are just four of them, three of which are new.
(PS: If you're unfamiliar with pub/sub, read the guide to it that Julian Aubourg and I wrote here http://msdn.microsoft.com/en-us/scriptjunkie/hh201955.aspx)
##Option 1: Using jQuery 1.7's $.Callbacks() feature:
// Based off an example from node-imap, will output a list of email addresses from your | |
// gmail sent folder (so you can copy/paste to the BCC field and let people know your | |
// sorry for using the same password all over the internet resulting in your buddies | |
// getting a lame spam message) | |
var ImapConnection = require('imap').ImapConnection, | |
imap = new ImapConnection({ | |
username: '{{replace}}@gmail.com', | |
password: '{{replace}}', | |
host: 'imap.gmail.com', |
var distance_of_time_in_words, time_ago_in_words; | |
time_ago_in_words = function(from_time, include_seconds) { | |
if (include_seconds != null) { | |
include_seconds; | |
} else { | |
include_seconds = false; | |
}; | |
return App.distance_of_time_in_words(from_time, Date.now(), include_seconds); | |
}; | |
distance_of_time_in_words = function(from_time, to_time, include_seconds) { |