Skip to content
View init.coffee
atom.packages.onDidActivatePackage (pack) ->
if pack.name == 'ex-mode'
Ex = pack.mainModule.provideEx()
Ex.registerCommand 'redo', ->
atom.workspace.observeTextEditors (editor) ->
editor.redo()
View powerball.hs
import System.Random
main = do
gen <- getStdGen
putStr $ show $ take 5 (randomRs (1,69) gen)
putStr $ show $ take 1 (randomRs (1,26) gen)
View jqh.js
// hyperscript for jQuery
// create nested HTML elements with a DSL
// used to create reusable, interactive HTML components
//
// based on the many implentations out there like
// https://github.com/dominictarr/hyperscript
// https://github.com/Matt-Esch/virtual-dom/tree/master/virtual-hyperscript
// and Elm https://github.com/evancz/elm-html
var $h = function(element, properties, content) {
var $component = $('<' + element + '>');
View stats.js
$(function() {
// functional core
// returns a specified property from a collection of objects
// in ES2015, it's even shorter: return collection.map(e => e[property])
function pluck(property, collection) {
return collection.map(function(e){
return e[property];
});
View pluck-unique-and-compose.js
function pluck(property, collection) {
return collection.map(function(e){
return e[property];
});
}
// return an array with unique elements
// this isn't efficient for sorted arrays, but whatevs
function unique(collection) {
// ternary operator to guard for empty collection
View sumOfSquares.js
var square = function(x) {
return x * x;
}
var sum = function(accumulator, x) {
return accumulator + x;
}
function sumOfSquares2(nums) {
return nums
View peterSimms.hs
pictureMath :: Int -> Int -> String
pictureMath x y = show minusPart ++ show plusPart
where
minusPart = x - y
plusPart = x + y
View gist:983b678c2c3eb50aeefa

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

View index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>reveal.js – The HTML Presentation Framework</title>
<meta name="description" content="A framework for easily creating beautiful presentations using HTML">
<meta name="author" content="Hakim El Hattab">
View api-request-proxy.md

This post is written by Ivan Storck, Director of Developer Relations at Aerobatic and is a cross-post from the Bitbucket Blog at https://blog.bitbucket.org

At Aerobatic, our mission is to empower front-end developers to innovate faster - less time spent thinking about infrastructure, more time spent developing amazing customer-facing experiences; less time spent building and maintaining custom toolchains, more time spent innovating with clients; less time switching contexts between disparate tools, more time spent coding in a seamless flow.

In this post, I'll show you how to build a form that posts notifications to Hipchat using the Aerobatic add-on for Bitbucket. It's simple, and no server-side code will be required.

Do You Have the Time to Be a Full-Stack Developer?

Like many of you, I moved from server generated web pages in PHP or Rails, to Single Page Apps (SPA). There is onl

Something went wrong with that request. Please try again.