Skip to content

Instantly share code, notes, and snippets.

View randallb's full-sized avatar
🎬

Randall Bennett randallb

🎬
View GitHub Profile
processCells: (cells) =>
for cell in cells
@[cell.attributes.attribute.id] = {} if !@[cell.attributes.attribute.id]?
@[cell.attributes.attribute.id][cell.attributes.attribute.value] = {} if !@[cell.attributes.attribute.id][cell.attributes.attribute.value]?
if _.isNaN(cell.value / 1) && cell.value
@[cell.attributes.attribute.id][cell.attributes.attribute.value].name = cell.value unless @[cell.attributes.attribute.id][cell.attributes.attribute.value].name?
else if cell.value
@[cell.attributes.attribute.id][cell.attributes.attribute.value].value = cell.value / 1 unless @[cell.attributes.attribute.id][cell.attributes.attribute.value].value?
diff --git a/fixincludes/fixincl.x b/fixincludes/fixincl.x
index dd45802..0db14d7 100644
--- a/fixincludes/fixincl.x
+++ b/fixincludes/fixincl.x
@@ -15,7 +15,7 @@
* certain ANSI-incompatible system header files which are fixed to work
* correctly with ANSI C and placed in a directory that GNU C will search.
*
- * This file contains 224 fixup descriptions.
+ * This file contains 225 fixup descriptions.
Updating selenium standalone
downloading http://selenium-release.storage.googleapis.com/2.41/selenium-server-standalone-2.41.0.jar...
Updating chromedriver
downloading https://chromedriver.storage.googleapis.com/2.9/chromedriver_linux64.zip...
events.js:68
throw arguments[1]; // Unhandled 'error' event
^
Error: 140648298891072:error:0607907F:digital envelope routines:EVP_PKEY_get1_RSA:expecting an rsa key:../deps/openssl/openssl/crypto/evp/p_lib.c:288:

@pauliooj on rails:

"It's sort of like this... Imagine you want to travel to Mars. First you ask a C-style programming environment, and get the answer: "Sure you can. You should compute an optimal trajectory. And get enough liquid oxygen to use as fuel, obviously. And build a launching pad... Preferably near the equator. And a few other things." Then you ask a Rails-style environment. The answer is: "Mars? Yeah, that's easy. You should go to Times Square at 1.34 am on a Wednesday and wear a purple hat with black dots. An alien ship will pick you up there and take care of the rest.""

Error in user YAML: (<unknown>): mapping values are not allowed in this context at line 3 column 22
---
layout: post
published: false
title: Don't buy fans: How broadcasters can get the most out of Facebook, without having to pay to promote posts
---
<iframe width="560" height="315" src="//www.youtube.com/embed/oVfHeWTKjag?rel=0" frameborder="0" allowfullscreen></iframe>

You might have seen a video explaining how buying likes from Facebook can actually hurt your ability to reach your audience. It's true: Click farmers spend hours trying to like pages for which they'll never engage. And, savvy social media analysts note the less people engage with your posts, the lower in priority Facebook will rank your posts, and fewer people will see them broadly. Then, if you want anyone to see your posts, you wind up paying Facebook to promote posts to people who've already asked to see your content. Not a fun situation.

#!/usr/bin/env bash
sudo locale-gen en_US.UTF-8
sudo update-locale LANG=en_US.UTF-8
sudo apt-get update
sudo apt-get install -y build-essential
sudo apt-get install language-pack-en-base
sudo dpkg-reconfigure locales
sudo apt-get install -y git
i686-apple-darwin11-gcc-4.2.1: /Users/randall/Library/Developer/Xcode/DerivedData/BrowserToBlackmagic-bdqukgmikzoifkadapwoehvipiqn/Build/Intermediates/PrecompiledHeaders/BrowserToBlackmagic-Prefix-bdakshkejogectabyciwlzivrtjs/BrowserToBlackmagic-Prefix.pch.dia: No such file or directory
cc1objplus: error: unrecognized command line option "-Wno-implicit-atomic-properties"
cc1objplus: error: -Werror=deprecated-objc-isa-usage: No option -Wdeprecated-objc-isa-usage
cc1objplus: error: -Werror=objc-root-class: No option -Wobjc-root-class
cc1objplus: error: unrecognized command line option "-Wno-receiver-is-weak"
cc1objplus: error: unrecognized command line option "-Wno-arc-repeated-use-of-weak"
cc1objplus: error: unrecognized command line option "-Wno-exit-time-destructors"
cc1objplus: error: unrecognized command line option "-Wduplicate-method-match"
cc1objplus: error: unrecognized command line option "-Wconstant-conversion"
cc1objplus: error: unrecognized command line option "-Wint-conversion"
$().ready ->
$('h1').click ->
alert("You clicked this")
_.each arrayThingy, (arr) ->
alert arr
$("element").on "click, ->
alert this.name