- install npm packages
- update brunch-config.js
- rename web/static/css/app.css to web/static/css/app.scss
- update web/static/css/app.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# inspiration/guide: https://developer.sage.com/api/financials/how-to/configure-authentication/ | |
defmodule Salesforce do | |
@user_email "XXX" | |
@user_password "XXX" | |
@client_id "XXX" | |
@client_secret "XXX" | |
def get_credentials() do | |
response = HTTPoison.post!( | |
"https://login.salesforce.com/services/oauth2/token", |
Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');
This is a proposal for a lightning talk at the Reactive 2015 conference.
NOTE: If you like this, star ⭐ the Gist - the amount of stars decides whether it makes the cut!
React just got stateless components, meaning that they are in essence pure functions for rendering. Pure functions make it dead simple - even fun - to refactor your views
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
import "github.com/juju/utils/set" | |
func jaccard(a, b set.Strings) float64 { | |
return float64(a.Intersection(b).Size()) / float64(a.Union(b).Size()) | |
} | |
func ngrams(s string, n int) set.Strings { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test.isFalse(v, msg) | |
test.isTrue(v, msg) | |
test.equal(actual, expected, message, not) | |
test.length(obj, len) | |
test.include(s, v) | |
test.isNaN(v, msg) | |
test.isUndefined(v, msg) | |
test.isNotNull | |
test.isNull | |
test.throws(func) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
generateUniqueID = () -> | |
_p8 = (s) -> | |
p = (Math.random().toString(16)+"000000000").substr(2,8) | |
if s then "-" + p.substr(0,4) + "-" + p.substr(4,4) else p | |
_p8() + _p8(true) + _p8(true) + _p8() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Flatten das boostrap */ | |
.well, .navbar-inner, .popover, .btn, .tooltip, input, select, textarea, pre, .progress, .modal, .add-on, .alert, .table-bordered, .nav>.active>a, .dropdown-menu, .tooltip-inner, .badge, .label, .img-polaroid { | |
-moz-box-shadow: none !important; | |
-webkit-box-shadow: none !important; | |
box-shadow: none !important; | |
-webkit-border-radius: 0px !important; | |
-moz-border-radius: 0px !important; | |
border-radius: 0px !important; | |
border-collapse: collapse !important; | |
background-image: none !important; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
console.log(" /"); | |
console.log(" .7"); | |
console.log(" \\\ , //"); | |
console.log(" |\\\.--._/|//"); | |
console.log(" /\\\ ) ) ).'/"); | |
console.log(" /( \\\ // /"); | |
console.log(" /( J`((_/ \\\"); | |
console.log(" / ) | _\\\ /"); |
NewerOlder