This file contains hidden or 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
// | |
// EmojiTextFieldDelegate.swift | |
// TextFields | |
// | |
// Created by Jason on 11/11/14. | |
// Copyright (c) 2014 Udacity. All rights reserved. | |
// | |
import Foundation | |
import UIKit |
This file contains hidden or 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
// | |
// ColorizerTextFieldDelegate.swift | |
// TextFields | |
// | |
// Created by Jason on 11/11/14. | |
// Copyright (c) 2014 Udacity. All rights reserved. | |
// | |
import Foundation | |
import UIKit |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="flatten implementation"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title>JS Test</title> | |
</head> | |
<body> | |
<div class="main-pane"> | |
<h2>Word Translator</h2> | |
<p> |
This file contains hidden or 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
//require underscore & jquery | |
var pizzas={}; | |
$.ajax({ | |
type: 'GET', | |
url: 'http://files.olo.com/pizzas.json', | |
async: false, | |
contentType: "application/json", | |
dataType: 'json', | |
success: function (data) { |
This file contains hidden or 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
// Author: Jaime Agudo <[email protected]> | |
// | |
// Github: https://github.com/jaimeagudo/ | |
// | |
// License: MIT | |
'use strict'; | |
/* |
This file contains hidden or 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
Verifying that +jaimeagudo is my Bitcoin username. You can send me #bitcoin here: https://onename.io/jaimeagudo |
This file contains hidden or 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
(def best-player "Xavi") | |
(defn greeting | |
[] | |
(prn (format "Hi %s is the best player!", best-player))) | |
(defn greeting-mock | |
[] | |
(prn (format "Hi. Now %s rocks!", best-player))) |
This file contains hidden or 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
(defn friend-middleware | |
"Returns a middleware that enables authentication via Friend." | |
[handler] | |
(let [auth-config { | |
:credential-fn (partial creds/bcrypt-credential-fn db/load-credentials) | |
:redirect-on-auth? false | |
:logout-uri "/logout" | |
:signup-uri "/registration" | |
:workflows | |
[;; Note that ordering matters here. Basic first. |
NewerOlder