I hereby claim:
- I am enriclluelles on github.
- I am enriclluelles (https://keybase.io/enriclluelles) on keybase.
- I have a public key whose fingerprint is A0ED 7FB2 DE48 E28D 3864 D6C8 05E7 B98A E739 EED1
To claim this, I am signing this object:
package main | |
import ( | |
"fmt" | |
"net" | |
"log" | |
) | |
func main() { | |
addr, _ := net.ResolveTCPAddr("tcp", ":3456") |
from __future__ import print_function | |
import boto3 | |
import botocore | |
import requests | |
import re | |
import sys | |
ip = requests.get("https://api.ipify.org").text | |
if not re.match(r"^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$",ip): | |
print("Fail getting the ip", file=sys.stderr) |
I hereby claim:
To claim this, I am signing this object:
function national_flag(a, p) { | |
function swap(i, j) { | |
// console.log("swapping a[" + i + "]:" + a[i] + " a[" + j + "]:" + a[j]); | |
var aux = a[i]; | |
a[i] = a[j]; | |
a[j] = aux; | |
} | |
var value = a[p]; |
FROM ubuntu:trusty | |
RUN apt-get update | |
RUN apt-get upgrade -y | |
RUN apt-get -y install git cmake ninja-build clang uuid-dev libicu-dev icu-devtools libbsd-dev libedit-dev libxml2-dev libsqlite3-dev swig libpython-dev libncurses5-dev pkg-config | |
RUN sudo apt-get -y install clang-3.6 | |
RUN sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.6 100 | |
RUN sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.6 100 | |
ADD build.sh / |
(ns diamond.core | |
(:require [clojure.string :refer [join]])) | |
(defn char-range [start end] | |
(map char (range (int start) (inc (int end))))) | |
(defn steps | |
[c] | |
(map str (char-range \A c))) |
(require ['clojure.set]) | |
(def happy-numbers (set [1, 7, 10, 13, 19, 23, 28, 31, 32, 44, 49, 68, 70, 79, 82, 86, 91, 94, 97, 100])) | |
(def not-happy-numbers (clojure.set/difference (set (range 1 100)) happy-numbers)) | |
(defn decompose-in-digits [n] | |
(map #(Character/digit % 10) (str n))) | |
(def square #(*' % %)) | |
(defn- happy? [n visited] |
(defn hmacSHA256 | |
(memoize (fn [payload secret] | |
(let [mac (Mac/getInstance "HMACSHA256") | |
secretKey (SecretKeySpec. (.getBytes secret) (.getAlgorithm mac)) | |
byteResult (-> (doto mac | |
(.init secretKey)) | |
(.doFinal (.getBytes payload))) | |
stringResult (->> byteResult | |
(map #(format "%x" %)) | |
(apply str))] |
" run command | |
" no stdin | |
" output displayed in "Press enter to continue" style | |
" current buffer untouched | |
:!uptime | |
" run command | |
" pipe range of text to command on stdin | |
" output replaces the range in the current buffer | |
:RANGE!grep foo |
From c89f4d9c261fd005258ac551f23dddc835ac719b Mon Sep 17 00:00:00 2001 | |
From: Enric Lluelles <[email protected]> | |
Date: Sat, 6 Sep 2014 02:06:02 +0200 | |
Subject: [PATCH] Add user data as a provider param | |
--- | |
lib/vagrant-digitalocean/actions/create.rb | 3 ++- | |
lib/vagrant-digitalocean/config.rb | 3 +++ | |
2 files changed, 5 insertions(+), 1 deletion(-) |