This file contains hidden or 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
// Disclaimer PopUp | |
$(document).ready(function() { | |
$.fn.exists = function(){return $(this).length>0;} | |
if ($(".listings .vehicles").exists() && $("a.dt-new'").exists()) { | |
var popupcontent = '<div id="dt-popup"><img id="dt-popup-image" src="/files/2010/09/LakeCountryPopAdRev1.png"/></div>'; | |
if ( $('#dt-popup').is(':visible') == false ) { | |
$('div.center_stage').prepend(popupcontent); | |
$('#dt-popup').css({ | |
'display':'none', | |
'position':'absolute', |
This file contains hidden or 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
// Redirect template based on post list or single post | |
function template_redirect() | |
{ | |
global $wp; | |
if ($wp->query_vars["post_type"] == "dt_staff" || $wp->query_vars["taxonomy"] == "departments") | |
{ | |
if ( is_robots() ) : | |
do_action('do_robots'); | |
return; | |
elseif($wp->query_vars["name"]): |
This file contains hidden or 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
<div class="grid_16" style="float:left; "> | |
<div class="widgets slideshowwidget" id="home-slideshow"> | |
<div class="slideshowwidget-chrome"> | |
<div class="slideshowwidget-slides" id="widget-slideshowwidget-2-title"> | |
<a href="/inventory/New/All/All/All/Denton/TX/?special=True/"><img src="/files/2011/01/Winter-Extravaganza.jpg" width="620" height="240" title="Winter Extravaganza" alt="Winter Extravaganza" /></a> | |
<a href="/finance/college-grad-rebate-and-financing/"><img src="/files/2011/01/slide-02-Toyota-College-Grad-Rebate-620x240.jpg "width="620" height="240" title="Toyota College Grad Rebate" alt="Toyota Winter Extravaganza" /></a> | |
<a href="https://www.ecreditsecurity.com/companies/5102/credit_apps/new"><img src="/files/2011/01/slide-04-Get-Approved-Toyota-620x240.jpg" width="620" height="240" title="Get Approved!" alt="Get Approved" /></a> | |
<a href="/deals/service-mcspecials/"><img src="/files/2011/01/slide-5.jpg" title=" |
This file contains hidden or 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>offsetLeft Test</title> | |
<style type="text/css"> | |
html{margin:0 20px;} | |
#main{background:#DDD;height:250px;margin:0 auto;width:300px;} | |
#marker{background:red;height:5px;position:absolute;width:5px;z-index:42000;} | |
</style> |
This file contains hidden or 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
var testr = {}; | |
testr.IEVersion = function() | |
{ | |
var ua = navigator.userAgent; | |
var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})"); | |
if (re.exec(ua)){ | |
ver = parseFloat( RegExp.$1 ); | |
if ( ver > -1 ) | |
{ |
This file contains hidden or 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
// adapted from https://gist.github.com/adaline/7363853 which read the image from a file | |
// modified to support posting to twitter update_with_media - with image from s3 rather than a | |
// local file. | |
(function() { | |
var fs, path, request, twitter_update_with_media; | |
fs = require('fs'); | |
path = require('path'); |
This file contains hidden or 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
response.on('data', function(chunk) { | |
data += chunk.toString('utf8'); | |
//is heartbeat? | |
if (data == '\r\n') { | |
stream.emit('heartbeat'); | |
return; | |
} |
This file contains hidden or 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
#!/usr/bin/env ruby | |
require 'json' | |
require 'htmlentities' | |
require 'twitter' | |
sets = %w( | |
Base | |
CAHe1 | |
CAHe2 |
This file contains hidden or 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
Hi <recruiter>, | |
I'll definitely pass this along to a few engineers I know who might be interested. | |
Would there be anyone in your group who might be able to assist some of the non-engineer folks? There's a lot of great talent available in a variety of roles from support to policy and operations. I feel like these folks are often overlooked in the search for great engineers. | |
Looking forward to hearing from you, | |
<name> | |
============================= |
This file contains hidden or 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
{ | |
"token": "{{verification_token}}", | |
"team_id": "{{team_id}}", | |
"api_app_id": "{{app_id}}", | |
"event": { | |
"type": "team_join", | |
"user": { | |
"id": "{{user_id}}", | |
"team_id": "{{team_id}}", | |
"name": "{{user_name}}", |
OlderNewer