Skip to content

Commit a049400

Browse files
committed
2 parents ce77a82 + 92f6a92 commit a049400

23 files changed

+2347
-173
lines changed

.github/workflows/main.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build and Deploy
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: 🛎 Check out master
13+
uses: actions/checkout@master
14+
with:
15+
fetch-depth: 1
16+
- name: 🎩 Install Jekyll
17+
run: |
18+
sudo gem install bundler jekyll
19+
sudo bundle install
20+
- name: 🧹 Clean site
21+
run: |
22+
if [ -d "_site" ]; then
23+
rm -rf _site/*
24+
fi
25+
- name: 🔨 Build site
26+
run: bundle exec jekyll build
27+
- name: 🧪 Deploy build
28+
run: |
29+
git config user.name "${GITHUB_ACTOR}"
30+
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
31+
git add .
32+
git commit -am "[skip ci] Deploy with ${GITHUB_WORKFLOW}"
33+
git push --all -f https://${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git
34+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
I"�{"source"=>"/home/runner/work/taylorgibb.github.io/taylorgibb.github.io", "destination"=>"/home/runner/work/taylorgibb.github.io/taylorgibb.github.io/_site", "collections_dir"=>"", "cache_dir"=>".jekyll-cache", "plugins_dir"=>"_plugins", "layouts_dir"=>"_layouts", "data_dir"=>"_data", "includes_dir"=>"_includes", "collections"=>{"posts"=>{"output"=>true, "permalink"=>"/blog/:title"}}, "safe"=>false, "include"=>["robots.txt"], "exclude"=>["LICENSE", "README.md", "CNAME", "vendor", "Gemfile", "functions", ".sass-cache", ".jekyll-cache", "gemfiles", "Gemfile.lock", "node_modules", "vendor/bundle/", "vendor/cache/", "vendor/gems/", "vendor/ruby/"], "keep_files"=>[".git", ".svn"], "encoding"=>"utf-8", "markdown_ext"=>"markdown,mkdown,mkdn,mkd,md", "strict_front_matter"=>false, "show_drafts"=>nil, "limit_posts"=>0, "future"=>false, "unpublished"=>false, "whitelist"=>[], "plugins"=>["jekyll-sitemap"], "markdown"=>"kramdown", "highlighter"=>"rouge", "lsi"=>false, "excerpt_separator"=>"\n\n", "incremental"=>false, "detach"=>false, "port"=>"4000", "host"=>"127.0.0.1", "baseurl"=>"", "show_dir_listing"=>false, "permalink"=>"/blog/:title", "paginate_path"=>"/page:num", "timezone"=>"Africa/Johannesburg", "quiet"=>false, "verbose"=>false, "defaults"=>[{"scope"=>{"path"=>""}, "values"=>{"layout"=>"null"}}, {"scope"=>{"type"=>"pages"}, "values"=>{"layout"=>"page"}}, {"scope"=>{"type"=>"posts"}, "values"=>{"layout"=>"post"}}], "liquid"=>{"error_mode"=>"warn", "strict_filters"=>false, "strict_variables"=>false}, "kramdown"=>{"auto_ids"=>true, "toc_levels"=>[1, 2, 3, 4, 5, 6], "entity_output"=>"as_char", "smart_quotes"=>"lsquo,rsquo,ldquo,rdquo", "input"=>"GFM", "hard_wrap"=>false, "guess_lang"=>true, "footnote_nr"=>1, "show_warnings"=>false}, "title"=>"Taylor Gibb", "description"=>"0x2b || ~0x2b thats the real question", "author_name"=>"Taylor Gibb", "logo_url"=>"https://avatars2.githubusercontent.com/u/13660108?v=4", "url"=>"https://taylorgibb.github.io", "mathjax"=>false, "sass"=>{"style"=>":compressed"}, "serving"=>false}:ET
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
I"�<p>I have a node.js application that does some short-lived work and for years i have used crontab to execute the application on a schedule. This would run the application until termination and then the machine would wait for crontab to start the process all over again. Recently, i got an urge to fix this and started looking at Docker. Im sure everyone knows what Docker is, so im going to cut to the chase. There were a few things that crossed my mind:</p>
2+
:ET

.jekyll-cache/Jekyll/Cache/Jekyll--Converters--Markdown/11/e1fec4a31b871ed54b79e6497c6295e5a0523f6546616abf414ba673793466

Lines changed: 501 additions & 0 deletions
Large diffs are not rendered by default.

.jekyll-cache/Jekyll/Cache/Jekyll--Converters--Markdown/33/3631ba14dc4e1d33a2df918370470963c9f545fbfebbc7ff90fc137833fc10

Lines changed: 198 additions & 0 deletions
Large diffs are not rendered by default.

.jekyll-cache/Jekyll/Cache/Jekyll--Converters--Markdown/70/6d7620a5e51b8f854ea4df8205f7c06ce2e3bf512d2d83d1bf79dbbfe50da2

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
I"�<script src="https://taylorgibb.github.io/assets/js/pixastic.js"></script>
2+
3+
<script src="https://taylorgibb.github.io/assets/js/pixastic.effects.js"></script>
4+
5+
<script src="https://taylorgibb.github.io/assets/js/pixastic.worker.js"></script>
6+
7+
<div class="avatar-container">
8+
<div class="avatar-preview">
9+
<i style="color: white" class="fas fa-spinner fa-spin"></i>
10+
<canvas id="output-canvas"></canvas>
11+
<img style="display: none" id="avatar" src="/assets/avatar.png" />
12+
</div>
13+
<div class="avatar-toggles">
14+
<div class="toggle">
15+
<label>Hue</label>
16+
<input class="slider" id="hue" type="range" min="0" max="360" />
17+
</div>
18+
<div class="toggle">
19+
<label>Rotation</label>
20+
<input class="slider" id="rotation" type="range" value="-14" min="-14" max="346" step="1" />
21+
</div>
22+
</div>
23+
<div class="controls">
24+
<button class="btn">
25+
<span>Upload</span>
26+
<i style="display: none" class="fa fa-spinner fa-spin"></i>
27+
</button>
28+
</div>
29+
<div class="text">
30+
<div> You can see the changes appear on my <a href="https://twitter.com/taybgibb">Twitter profile</a>. Source code can be viewed <a href="https://github.com/taylorgibb/taylorgibb.github.io">here</a>.</div>
31+
</div>
32+
</div>
33+
34+
<script>
35+
$(document).ready(function() {
36+
var random = function(min, max) {
37+
min = Math.ceil(min);
38+
max = Math.floor(max);
39+
return Math.floor(Math.random() * (max - min + 1)) + min;
40+
};
41+
42+
var hue = random(0,360);
43+
var saturation = 0;
44+
var lightness = 0;
45+
var rotate = -14;
46+
47+
var options = {
48+
hue : hue,
49+
saturation : saturation,
50+
lightness : lightness
51+
};
52+
53+
$('#hue').val(hue);
54+
$('#hue').on('change', function(){
55+
options["hue"] = parseInt($(this).val(), 10) / 360;
56+
update();
57+
});
58+
59+
$('#rotation').on('change', function(){
60+
rotate = parseInt($(this).val(), 10);
61+
update();
62+
});
63+
64+
function update(){
65+
var img = document.getElementById("avatar"),
66+
canvas = document.getElementById("output-canvas"),
67+
ctx = canvas.getContext("2d");
68+
69+
canvas.style.display = "none";
70+
canvas.width = img.width;
71+
canvas.height = img.height;
72+
73+
ctx.drawImage(img, 0, 0);
74+
75+
Px = new Pixastic(ctx);
76+
Px["hsl"](options).done(function() {
77+
setTimeout(function() {
78+
canvas.style.display = "block";
79+
}, 200)
80+
});
81+
82+
$('#output-canvas').css({
83+
'transform': 'rotate(' + rotate + 'deg)'
84+
});
85+
}
86+
87+
88+
$('button').click(function() {
89+
$('.controls button span').css({'display': 'none'});
90+
$('.controls button i').css({'display': 'block'});
91+
$.getJSON( `https://tweet-avatar.azurewebsites.net/api/avatar?code=XiwxXOWN3RcIaIgB10cK7KJrzoqJwaxlbyHktbTvgm9/QfM0IV33yA==&hue=${options["hue"]}&saturation=${options["saturation"]}&lightness=${options["lightness"]}&rotation=${rotate}`, function( data ) {
92+
$('.controls button span').css({'display': 'block'});
93+
$('.controls button i').css({'display': 'none'});
94+
})
95+
});
96+
97+
$('#hue').trigger('change');
98+
});
99+
</script>
100+
101+
<style>
102+
body {
103+
margin: 0;
104+
padding: 0;
105+
}
106+
</style>
107+
108+
:ET

0 commit comments

Comments
 (0)