Skip to content

Instantly share code, notes, and snippets.

View spdustin's full-sized avatar
💭
I may be slow to respond.

Dustin Miller spdustin

💭
I may be slow to respond.
View GitHub Profile
@spdustin
spdustin / SassMeister-input.scss
Created July 29, 2014 15:56
Generated by SassMeister.com.
// ----
// Sass (v3.3.10)
// Compass (v1.0.0.alpha.20)
// ----
$brandcolor: black;
$fontstack: "Segoe UI","Segoe",Tahoma,Helvetica,Arial,sans-serif;
@function forbackground($color) {
$lightness: lightness($color);
$functiontocall: if($lightness > 50%, 'darken', 'lighten');
@spdustin
spdustin / spAutoComplete.js
Created June 27, 2014 21:36
AutoComplete for SharePoint
var $theField = $('input[title=RelatedAnnouncements]');
var listName = 'Announcements';
var listSvc = _spPageContextInfo.webServerRelativeUrl + '/_vti_bin/listdata.svc/' + listName;
$theField.autocomplete({
source: function(request, response) {
var typed = request.term;
var listSvcFilter = listSvc + '?$filter=startswith(Title,\'' + typed + '\')';
$.getJSON(listSvcFilter, function(data) {
var items = [];
$.each(data.d.results, function(key, val) {
@spdustin
spdustin / untested_global_news.xsl
Created August 8, 2013 00:10
Untested Global News Thingy
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- This XSL Stylesheet created by SharePoint Experts, Inc. -->
<!-- http://sharepointexperience.com -->
<xsl:param name="ServerRelativeUrl"/>
<xsl:param name="RootSiteUrl"/>
<xsl:output method="html" indent="yes"/>
<!-- This template is the "wrapper" or "container" for the custom view. -->
<xsl:template match="/">
<!-- This is the actual wrapper element that will be emitted -->
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
</body>
</html>
@spdustin
spdustin / 01 - !welcome.md
Last active December 17, 2015 02:08
Web Developer Experience - Boo!

Welcome! :)

Stay tuned!

@spdustin
spdustin / anything_slider_reference.html
Last active December 16, 2015 15:29
Sample snippets from UIUX Seattle
<link rel="stylesheet" type="text/css" href="http://s3.amazonaws.com/classcdn/slider/css/anythingslider.css"/>
<script src="http://s3.amazonaws.com/classcdn/slider/js/jquery.anythingslider.min.js"></script>
@spdustin
spdustin / .-What is this about -.md
Last active December 13, 2015 22:59
WebDev 2013-02

What is this about?

If you're not in my SharePoint Web Developer Experience class, you're missing out. This is just some of the sample code we're discussing in the February 2013 delivery. There's another one coming up in May. And you get even more code than is shared here to the public.

Feel free to poke around. Geek out a bit. And if your curiosity is piqued, sign up for the next one.

@spdustin
spdustin / 0 - Welcome.md
Created December 17, 2012 17:49
Samples used in the 3rd session for Mega Menus and More!
@spdustin
spdustin / 0-Welcome.md
Created December 10, 2012 15:13
Web Snippets
@spdustin
spdustin / Test.md
Created December 7, 2012 21:29
Test

#neat