Skip to content

Instantly share code, notes, and snippets.

View validkeys's full-sized avatar

Kyle Davis validkeys

  • Belongs to one
  • Toronto, ON
View GitHub Profile
{
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Dracula Color Scheme/Dracula.tmTheme",
"fade_fold_buttons": false,
"font_size": 14,
"highlight_line": true,
"ignored_packages":
[
"Vintage"
/* the below will only apply when the screen is at least 450px in width */
@media(min-width: 450px){
#collection-52e354dce4b0b88a274647c4 nav a {
color: white !important;
}
}
/* this will tell the index overlay to be visible on anything under 450px */
@media(max-width: 450px){
.index-overlay{
newConcept.save().then =>
bucket
.get('concepts').pushObject newConcept
.reload()
PostsRoute = Ember.Route.extend
model: (params) ->
@store.find 'post',
iteration: @modelFor('iteration').get('id')
setupController: (controller, model) ->
controller.set 'model', model
controller.set 'iteration', @modelFor('iteration')
@validkeys
validkeys / gist:278a85957399e657d975
Created July 10, 2014 18:43
karan + kyle = friends
//The opening quote before the http:// was a malformed weird quote ( like copied from word )
function makeFrame() {
div = document.createElement("div");
div.setAttribute("id","ad-tag");
div.style.width = 100 + "%";
div.style.height = 100 + "%";
document.body.appendChild(div);
ifrm = document.createElement("IFRAME");
ifrm.setAttribute("src","http://cdn.pressly.com.s3.amazonaws.com/clients/thestar/cancerresearch/ads/summersun/index.min-1.html");
<div id="pressly-embed" style="min-height: 100%" data-pressly-hub="http://validkeys.pressly.com/architectural-digest"></div>
<script type="text/javascript" src="http://cdn.pressly.com/clients/dailymeal/pressly-app-embed.js"></script>
`import { test, moduleForComponent } from 'ember-qunit'`
moduleForComponent 'iteration-card', 'IterationCardComponent', {
# specify the other units that are required for this test
# needs: ['component:foo', 'helper:bar']
}
test 'it renders', ->
expect 2
`import Ember from 'ember'`
PostRoute = Ember.Route.extend
model: (params) ->
@store.find('post', params.post_id)
afterModel: (model) ->
childPosts = []
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~xsl/irss-to-html.xsl?lid=1"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>Your latest content recommendations from Primal</title>
<link>https://content.primal.com/.rss?lid=ih5ArFQzd4Dg_dl4AoQLdZ6UzBe5hfWqhEAan0pg2HgVpx-PoxDdOCCq4UxPcPHu</link>
<description>Primal aggregates online content from the Web and targets it to your specific topics of interest.</description>
<language>en-us</language>
<copyright>Copyright 2014, Primal Fusion Inc.</copyright>
<webMaster>[email protected] (Primal Support)</webMaster>
events.js:72
throw er; // Unhandled 'error' event
^
TypeError: Cannot call method 'replace' of undefined
at cleanAttributeValue (/Users/kyledavis/Sites/pressly-ng/dashboard/webapp/node_modules/gulp-htmlmin/node_modules/html-minifier/dist/htmlminifier.js:612:45)
at normalizeAttribute (/Users/kyledavis/Sites/pressly-ng/dashboard/webapp/node_modules/gulp-htmlmin/node_modules/html-minifier/dist/htmlminifier.js:742:17)
at Object.HTMLParser.start (/Users/kyledavis/Sites/pressly-ng/dashboard/webapp/node_modules/gulp-htmlmin/node_modules/html-minifier/dist/htmlminifier.js:909:23)
at parseStartTag (/Users/kyledavis/Sites/pressly-ng/dashboard/webapp/node_modules/gulp-htmlmin/node_modules/html-minifier/dist/htmlminifier.js:246:19)
at String.replace (native)
at new global.HTMLParser (/Users/kyledavis/Sites/pressly-ng/dashboard/webapp/node_modules/gulp-htmlmin/node_modules/html-minifier/dist/htmlminifier.js:145:22)