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
| # Use Dockerized infrastructure | |
| sudo: false | |
| # Use node_js environnement | |
| language: node_js | |
| node_js: | |
| - "6" | |
| # Cache Gcloud SDK between commands | |
| cache: |
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
| #!/usr/bin/env python | |
| import argparse | |
| import logging | |
| try: | |
| from urllib import splittype | |
| except ImportError: | |
| from urllib.parse import splittype | |
| import boto3 |
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
| (ns hangman.core | |
| (:gen-class) | |
| (:require [clojure.string :as str])) | |
| (defn is_char_in_words? | |
| "Is the char in the words?" | |
| [ch words] | |
| (if (= ch "") | |
| false | |
| (> (.indexOf words ch) -1) |
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
| const models = require('../models'); | |
| const http = require('http'); | |
| const querystring = require('querystring'); | |
| exports.index = function(req, res, next){ | |
| console.log("isAdmin: ", req.session["isAdmin"]); | |
| res.render('application/index', { | |
| auth: req.getAuthDetails(), | |
| session: req.session | |
| }); |
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
| (with-facebook-auth @facebook-auth-token (client/get [:me :friends] {:extract :data})) : | |