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
<html> | |
<body style="font-family:sans-serif"> | |
<a href="%%profile_center_url%%">Base - Profile/Preference Center</a> | |
<br/><a href="%%subscription_center_url%%">Base - Subscription Center</a> | |
<br/><a href="%%unsub_center_url%%">Base - One-Click Unsubscribe</a> | |
<br/><a href='%%=MicrositeURL(1111,"subscriberMID", "4444")=%%'>Custom Profile/Preference Center</a> | |
<br/><a href='%%=MicrositeURL(2222,"subscriberMID", "4444")=%%'>Custom Subscription Center</a> | |
<br/><a href='%%=MicrositeURL(3333,"subscriberMID", "4444")=%%'>One-Click Unsubscribe</a> | |
<p>This email was sent by: | |
<b>%%Member_Busname%%</b> |
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
<script type="text/javascript" runat="server"> | |
// src: https://gist.github.com/wvpv/19777e1167d6ac91e2e8 | |
Platform.Load("core", "1"); | |
var debug = true; | |
var request = {}; | |
SetVar("method", Request.Method) |
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
'MacBookPro4,1' | |
'MacPro2,1' | |
'MacBookPro5,1' | |
'MacBookPro1,1' | |
'MacBookPro5,3' | |
'MacBookPro5,2' | |
'iMac8,1' | |
'MacBookPro5,4' | |
'iMac5,1' | |
'iMac5,2' |
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
MacBook9,1: 'Mac-9AE82516C7C6B903' | |
iMac14,1: 'Mac-031B6874CF7F642A' | |
iMac10,1: 'Mac-F2268DC8' | |
MacBookPro8,1: 'Mac-50619A408DB004DA' | |
MacBook6,1: 'Mac-F22C8AC8' | |
MacBookPro10,2: 'Mac-AFD8A9D944EA4843' | |
iMac12,2: 'Mac-942B59F58194171B' | |
iMac14,2: 'Mac-27ADBB7B4CEE8E61' | |
MacBook8,2: 'Mac-F305150B0C7DEEEF' | |
MacBookAir6,1: 'Mac-35C1E88140C3E6CF' |
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
def filter_tracks | |
# Does this need to be so high when JavaScript limits display to 14? | |
@limit ||= 50 | |
# The query methods are responsible for adding their own offsets to this | |
# hash map; that way, changing or removing a query method doesn't affect any | |
# other method | |
# If you need persistence with your implementation of pagination, | |
# make a session/cookie instead of an instance variable | |
@tracks_offset ||= {} |
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
// iOS scaling bug fix | |
(function(doc) { | |
var addEvent = 'addEventListener', | |
type = 'gesturestart', | |
qsa = 'querySelectorAll', | |
scales = [1, 1], | |
meta = qsa in doc ? doc[qsa]('meta[name=viewport]') : []; | |
function fix() { | |
meta.content = 'width=device-width,minimum-scale=' + scales[0] + ',maximum-scale=' + scales[1]; | |
doc.removeEventListener(type, fix, true); |
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
# Clone the directory and view files | |
git clone https://github.com/femmestem/CLI-Obstacle-Course.git | |
cd CLI-Obstacle-Course | |
ls | |
ls -ald | |
# Move files and directories | |
mv images app/assets/images | |
ls -a | |
cd app/views/static_pages |
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 BoggleBoard | |
def initialize(board) | |
@board = board | |
end | |
def letter_at(coord) | |
@board[coord.first][coord.last] | |
end |