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
-- When you need to find the submitted datetime of the second interaction submitted by each and every doc in our database | |
LEFT JOIN ( | |
SELECT * | |
FROM ( | |
SELECT | |
ROW_NUMBER() OVER(PARTITION BY [PhysicianID] ORDER BY [WhenSubmitted]) AS ROW, | |
[PhysicianID], | |
[WhenSubmitted] | |
FROM [dbo].[Recording] | |
) AS tmp |
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 gulp = require('gulp'), | |
minify = require('gulp-minify-css'), | |
rename = require('gulp-rename'), | |
sass = require('gulp-sass'), | |
concat = require('gulp-concat'), | |
sourcemaps = require('gulp-sourcemaps'), | |
autoprefixer = require('gulp-autoprefixer'); | |
var config = { | |
publicDir: './src/main/webapp/static' |
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
// Convert Address object to StringBuilder | |
StringBuilder sb = new StringBuilder(); | |
sb.append(vendorService.getVendorBillingAddress(vendor).getLine1()).append("\r\n"); | |
sb.append(vendorService.getVendorBillingAddress(vendor).getLine2()).append("\r\n"); | |
sb.append(vendorService.getVendorBillingAddress(vendor).getCity()).append("\r\n"); | |
sb.append(vendorService.getVendorBillingAddress(vendor).getPostalCode()).append("\r\n"); | |
sb.append(vendorService.getVendorBillingAddress(vendor).getCountry()).append("\r\n"); | |
// Cast StringBuilder to string, trim it down and remove any empty lines | |
StringSelection stringSelection = new StringSelection(sb.toString().trim().replaceAll("(?m)^\r?\n", "")); |
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
<html> | |
<head> | |
<title>Weight Tracker</title> | |
</head> | |
<body> | |
<?php | |
$username = ""; | |
$password = ""; | |
$hostname = ""; |
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
# Code from Codecademy - Twitter API course (http://www.codecademy.com/en/tracks/twitter) | |
require 'rubygems' | |
require 'oauth' | |
require 'json' | |
# Now you will fetch /1.1/statuses/user_timeline.json, | |
# returns a list of public Tweets from the specified | |
# account. | |
baseurl = "https://api.twitter.com" | |
path = "/1.1/statuses/user_timeline.json" |
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
Sub transcriptShaper() | |
' | |
' Verilogue Transcript Shaper Macro | |
' Author: cwoodford | |
' | |
' | |
'Store the filename off | |
Dim strName As String | |
strName = ActiveDocument.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
// ---- | |
// Sass (v3.3.0.rc.1) | |
// ---- | |
@for $i from 1 through 5 { | |
.color-#{($i)} { | |
color: (adjust-hue(#ff0000,($i*10))); | |
} | |
} |
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
// ---- | |
// Sass (v3.3.0.rc.1) | |
// ---- | |
@for $i from 1 through 20 { | |
.grid-#{($i * 5)} { | |
width: ($i * 5%); | |
} | |
} |
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
$devices: tablet 768px, phone 320px; | |
@mixin respond-to($respond-to) { | |
@each $device in $devices { | |
@if nth($device, 1) == $respond-to { | |
@media (max-width: nth($device, 2)) { | |
@content; | |
} | |
} | |
} |
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
####### | |
# Watches files for changes and runs a command if anything was changed. | |
# | |
# Modified from https://gist.github.com/286060 | |
# | |
# Example: | |
# ruby watcher.rb **/*.scss "sass --update sass:compiled" | |
####### | |
trap('INT') { exit! } |
NewerOlder