Skip to content

Instantly share code, notes, and snippets.

View seouri's full-sized avatar

Joon Lee seouri

  • Activate Care
  • Boston, MA
View GitHub Profile
@seouri
seouri / missing.css
Created February 25, 2020 16:12
Missing CSS on Help Scout/Rails Turbolinks
.css-k7cd9d {
bottom: 0px;
content: "";
height: 400px;
pointer-events: none;
width: 400px;
will-change: left, right, background, opacity;
opacity: 0;
position: fixed;
z-index: 1050;
#!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL="your-old-email@example.com"
CORRECT_NAME="Your Correct Name"
CORRECT_EMAIL="your-correct-email@example.com"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then

Simplecov aggregated coverage report from CircleCI 2.0 parallel builds

Problem Statement

We have Rails application which is running tests on circleCI 2.0, we have simplecov configured to track the coverage of our test suite. Now the problem is with parallelism enabled, we have partial coverage reports in all different containers according to the tests those containers ran.

We obviously want to have consolidated simplecov coverage report which actually shows us overall coverage report.

Keybase proof

I hereby claim:

  • I am seouri on github.
  • I am seouri (https://keybase.io/seouri) on keybase.
  • I have a public key ASDgC8__qkKt7bHKiNGwzYMSdBodsNREKIm7q2j9dwSGBgo

To claim this, I am signing this object:

M[16],X=16,W,k;main(){T(system("stty cbreak")
);puts(W&1?"WIN":"LOSE");}K[]={2,3,1};s(f,d,i
,j,l,P){for(i=4;i--;)for(j=k=l=0;k<4;)j<4?P=M
[w(d,i,j++)],W|=P>>11,l*P&&(f?M[w(d,i,k)]=l<<
(l==P):0,k++),l=l?P?l-P?P:0:l:P:(f?M[w(d,i,k)
]=l:0,++k,W|=2*!l,l=0);}w(d,i,j){return d?w(d
-1,j,3-i):4*i+j;}T(i){for(i=X+rand()%X;M[i%X]
*i;i--);i?M[i%X]=2<<rand()%2:0;for(W=i=0;i<4;
)s(0,i++);for(i=X,puts("\e[2J\e[H");i--;i%4||
puts(""))printf(M[i]?"%4d|":" |",M[i]);W-2
@seouri
seouri / index.html
Last active April 21, 2017 09:22
Red: 1st degree edges from Warner, Green: 2nd degree edges from Warner
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Biomedical Informatics Co-authorship Network</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.29.1"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.geom.js?1.29.1"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js?1.29.1"></script>
<style type="text/css">
#!/usr/bin/perl -w
use strict;
while (1) {
my $r = `curl -s "http://info.nec.go.kr/electioninfo/electionInfo_report.xhtml?electionId=0020121219&requestURI=%2Felectioninfo%2F0020121219%2Fvc%2Fvccp09.jsp&topMenuId=VC&secondMenuId=VCCP&menuId=VCCP09&statementId=VCCP09_%231&electionCode=1&cityCode=0&sggCityCode=0&x=34&y=12"`;
my @line = split /\n/, $r;
my ($region, $count_p, $perc_p, $count_m, $perc_m, $diff);
foreach my $l (@line) {
javascript:(function(e,a,g,h,f,c,b,d){if(!(f=e.jQuery)||g>f.fn.jquery||h(f)){c=a.createElement("script");c.type="text/javascript";c.src="http://ajax.googleapis.com/ajax/libs/jquery/"+g+"/jquery.min.js";c.onload=c.onreadystatechange=function(){if(!b&&(!(d=this.readyState)||d=="loaded"||d=="complete")){h((f=e.jQuery).noConflict(1),b=1);f(c).remove()}};a.documentElement.childNodes[0].appendChild(c)}})(window,document,"1.4.2",function($,L){$('body').html($('body').html().replace(/([\s^])(the|a|an) /ig, '$1<span style="display: inline-block; width: 2em; margin:0; padding: 0; border: 2px solid #ccc; background-color: #fff; color: #fff; text-align: center">$2</span> '));});
.shadow {
-moz-box-shadow: 3px 3px 4px #000;
-webkit-box-shadow: 3px 3px 4px #000;
box-shadow: 3px 3px 4px #000;
/* For IE 8 */
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000')";
/* For IE 5.5 - 7 */
filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000');
}
@seouri
seouri / postgresql on Leopard
Created February 1, 2010 16:33
Install PostgreSQL on Leopard
superuser: postgres/postgres
mdfind pg_config | grep bin | uniq
export PATH=/usr/local/postgresql/bin:${PATH}
sudo env ARCHFLAGS="-arch i386" gem install pg