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
@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");
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')
newConcept.save().then =>
bucket
.get('concepts').pushObject newConcept
.reload()
/* 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{
{
"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"
// this is my goal JSON output
{
post:{
...
comments: [1,2,3]
},
comments:[{
comment:{
...
#!/usr/local/bin/ruby -w
require 'csv'
require 'iconv' unless String.method_defined?(:encode)
## THE MAIN FILE TO IMPORT FROM
CSV_FILE_PATH = File.join(File.dirname(__FILE__), "eloqua_20140130.csv")
## THE BASE NAME AND LOCATION OF EXPORT FILES
Tracker.prototype.transport = function(data) {
var defer;
defer = $.Deferred();
switch (data.type) {
case "clickthrough":
/*
EYE RETURN -- THIS IS A CLICKTHROUGH
YOU CAN ACCESS THE ID OF THE EVENT VIA data.id
*/
class ApplicationController < ActionController::Base
protect_from_forgery with: :null_session
before_filter :authenticate
after_filter :test
serialization_scope :view_context
protected
def current_user
# View:
@Aplat.module "CommandCenterApp.Show", (Show, CommandCenterApp, Backbone, Marionette, $, _) ->
class Show.CommandCenter extends App.Views.ItemView
template: "command_center/show/templates/_command_center"
tagName: "li"
class Show.CommandCenters extends App.Views.CollectionView
template: 'command_center/show/templates/command_center'