Skip to content

Instantly share code, notes, and snippets.

View datawebbie's full-sized avatar

Francis Park datawebbie

  • Greenpeace
  • Auckland, New Zealand
View GitHub Profile
{"requestedUrl":"https://noissue.co/custom-packaging/custom-printed-tissue-paper/","finalUrl":"https://noissue.co/custom-packaging/custom-printed-tissue-paper/","lighthouseVersion":"9.3.0","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/98.0.4758.102 Safari/537.36","fetchTime":"2022-06-08T22:29:38.533Z","environment":{"networkUserAgent":"Mozilla/5.0 (Linux; Android 7.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4695.0 Mobile Safari/537.36 Chrome-Lighthouse","hostUserAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/98.0.4758.102 Safari/537.36","benchmarkIndex":1151},"runWarnings":["The page loaded too slowly to finish within the time limit. Results may be incomplete."],"configSettings":{"emulatedFormFactor":"mobile","formFactor":"mobile","locale":"en-US","onlyCategories":["performance","accessibility","best-practices","seo"],"channel":"lr"},"audits":{"server-response-time":{"id":"server-response
@datawebbie
datawebbie / gist:478239206d063e7043e6eaf1b3264ec6
Created February 18, 2018 09:55
Regular expression for email address format validation
^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-?\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$
@datawebbie
datawebbie / index.html
Created March 16, 2017 02:05
Task 1 - Refactor this code
<!-- Instruction:
Fork this pen to your account, then do the "Task 2" on your forked pen. Provide the link to your forked pen with your answer. -->
<div id="forms">
<div class="forms_body_r">
<h2><span class="number1"></span>My contribution will be...</h2>
<form action="" method="post" name="myForm" id="myForm">
<div class="formcontent" style="margin-bottom: 0px;">
@datawebbie
datawebbie / image-service.js
Created November 11, 2016 10:29 — forked from transitive-bullshit/image-service.js
Angular service to resize images with antialiasing for use with canvas.
angular.module('demo').service('imageService', function ($http, $q, $timeout) {
var NUM_LOBES = 3
var lanczos = lanczosGenerator(NUM_LOBES)
// resize via lanczos-sinc convolution
this.resize = function (img, width, height) {
var self = { }
self.type = "image/png"
self.quality = 1.0
@datawebbie
datawebbie / middleman startup error
Created April 22, 2016 07:07
When you get an error when running "bundle exec middleman server/build"
# trying running suggested command
bundle install
# then you know you need to update eventmachine
bundle update eventmachine
eval '(exit $?0)' && eval 'exec perl -wS "$0" "$@"'
& eval 'exec perl -wS "$0" $argv:q'
if 0;
# Convert git log output to ChangeLog format.
my $VERSION = '2016-03-22 21:49'; # UTC
# The definition above must lie within the first 8 lines in order
# for the Emacs time-stamp write hook (at end) to update it.
# If you change this file with Emacs, please let the write hook
# do its job. Otherwise, update this string manually.
@datawebbie
datawebbie / async-aurora-embed
Created March 10, 2016 21:58
Loading Aurora Script Asynchronously
<script>
(function(s,o,g,a,m){a=s.createElement(o),m=s.getElementsByTagName(o)[0];
a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(document, 'script', 'https://aurora.grnpc.org/js/core/core.aurora.js');
</script>
1. 타루 - Rainy (0:00~ )*
2. 호란 & 시와 - 첫 마디​ (5:10~ )
3. 강아솔 - 엄마 (8:28~ )
4. 하현곤 팩토리 - 코끝이 찡하네 (12:55~ )
5. 헤이즈불루 - 소울메이트 (16:51~ )
6. 마리네이드 - 물고기 지도 (20:53~ )
7. 브리즈 - Try to Remember You (24:25~ )
8. 가을방학 - 첫사랑 (28:16~ )
9. 스텐딩에그 - Once Again (32:09~ )
10. 소심한 오빠들 - 내 마지막 이십대 (37:20~ )
@datawebbie
datawebbie / bg_css_pattern
Created January 5, 2015 18:28
background pattern
background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAJklEQVQIW2NkYGD4D8QogBEkGBISwrBmzRq4BFgQq0qYIEwHVpUAVXsLAdW7wwsAAAAASUVORK5CYII=) repeat;