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
| @::,:;# | |
| @+'#@@@@@#' | |
| ###@@@@###@+++ | |
| ##@@@@@@@@#@@@@;# | |
| ++@@@#@@@@@@@@@@@'# | |
| '#@+#'@@@@@@@@@@@@@+ | |
| #@+'+'@#@#@+#@@@@@@#+@ | |
| #@+++'+@@@@@@@@@@@@@'@ | |
| @@@@@:####@@@@@@@@@@@'@ | |
| @@@@@#+';'##@@@@@@@@@@@ |
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
| all: lc gmmc | |
| CC=gcc | |
| CFLAGS= -g -m64 -O3 -std=gnu11 -Wall -Werror -Wextra -Wshadow -pedantic \ | |
| -Wextra -Wunknown-pragmas -Wfloat-equal -Wcast-qual | |
| LDLIBS= -lgsl -lgslcblas -lm | |
| lc: learning_c.c | |
| $(CC) $(CFLAGS) -o $@ learning_c.c |
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
| all: golden_monkey_monte_carlo.c | |
| gcc -m64 -O3 -std=c99 -Wall -Werror -Wextra -Wshadow -pedantic \ | |
| -Wextra -Wunknown-pragmas -Wfloat-equal -Wcast-qual \ | |
| -o gmmc golden_monkey_monte_carlo.c \ | |
| -lgsl -lgslcblas -lm | |
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
| http://www.thoughtworks.com/insights/blog/implementing-blue-green-deployments-aws | |
| http://docs.ansible.com/haproxy_module.html | |
| http://martinfowler.com/bliki/BlueGreenDeployment.html | |
| https://spring.io/blog/2014/04/04/project-sagan-zero-downtime-deployments | |
| https://github.com/melix/greenblueboot | |
| https://theholyjava.wordpress.com/2013/09/05/blue-green-deployment-without-breaking-sessions-with-haproxy-and-jetty/ | |
| https://codeascraft.com/2013/07/01/atomic-deploys-at-etsy/ |
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
| package org.wkh.learningelasticsearch; | |
| import org.elasticsearch.action.index.IndexResponse; | |
| import org.elasticsearch.action.search.SearchResponse; | |
| import org.elasticsearch.client.Client; | |
| import org.elasticsearch.index.query.QueryBuilders; | |
| import org.elasticsearch.node.Node; | |
| import org.elasticsearch.search.SearchHit; | |
| import org.elasticsearch.search.SearchHits; |
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
| /* exercises, chapter 3, section 1 */ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <time.h> | |
| #include <limits.h> | |
| #include <float.h> | |
| #include <math.h> | |
| #include <gsl/gsl_math.h> | |
| #include <gsl/gsl_rng.h> |
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
| If mydate Like "*[abcdefghijklmnopqrstuvwxyz/-" & Chr(150) & "]*" Then | |
| mydate = Replace(Replace(mydate, "January", "01"), | |
| "Jan", "02") | |
| mydate = Replace(Replace(mydate, "Feburary", | |
| "02"), "Feb", "02") | |
| mydate = Replace(Replace(mydate, "March", "03"), | |
| "Mar", "03") | |
| mydate = Replace(Replace(mydate, "April", "04"), | |
| "Apr", "04") | |
| mydate = Replace(mydate, "May", "05") |
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
| 1 kilo whole wheat flour | |
| 700 g water | |
| 2 tbsp sugar/honey | |
| 1/2 cup starter | |
| 3 tsp salt | |
| Measure out and mix the ingredients together in a mixing bowl. You | |
| probably want to mix the dry ingredients together, then dissolve the | |
| starter in the water, then pour the starter-water mixture in, as is | |
| often done when making sourdough bread. Notice that the hydration |
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
| #!/bin/sh | |
| # rename pre-commit.sample in the hooks directory to pre-commit and replace its content with this | |
| set_traces=`git grep "pdb.set_trace()"` | |
| if [ ! -z "$set_traces" ] ; then | |
| echo "You have pdb.set_trace() in your code! Commit aborted!" | |
| echo $set_traces | |
| exit 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
| #! /bin/bash | |
| IFS=" | |
| " | |
| echo | |
| for FRAME in \ | |
| "B :^)" \ | |
| " B :^)" \ | |
| " B :^)" \ | |
| " B :^)" \ |