Skip to content

Instantly share code, notes, and snippets.

View abkosar's full-sized avatar

Arda Kosar abkosar

View GitHub Profile
@abkosar
abkosar / cssNamedColors.csv
Last active August 21, 2020 15:10
CSS Named Colors
Specification Keyword RGB hex value
CSS Level 1 black #000000
CSS Level 1 silver #c0c0c0
CSS Level 1 gray #808080
CSS Level 1 white #ffffff
CSS Level 1 maroon #800000
CSS Level 1 red #ff0000
CSS Level 1 purple #800080
CSS Level 1 fuchsia #ff00ff
CSS Level 1 green #008000
@abkosar
abkosar / kill_port_range.sh
Last active July 22, 2020 20:42
Kill processes in port range
#!/usr/bin/env bash
for i in {6023..6053} # Update the port range accordingly
do
pid=$(lsof -t -i:$i)
kill -9 $pid
done
We can't make this file beautiful and searchable because it's too large.
-0.4348053 0.49046028 1.1824026 1.5406939 -0.31947988 -0.33496508 1.1608794 0.61919135 0.014308082 -1.6072097 0.1968484 1.1614001 -1.3698497 -0.167711 0.29985458 -0.182005 -0.93668646 0.9587524 0.1608789 0.36679658 0.01777331 0.48618484 0.4548196 0.9101717 -1.1403097 -0.061628748 -0.57115936 1.3687896 -0.2954683 0.2867947 0.8802421 -0.37494487 -0.3230506 0.21140489 -0.5120573 -0.34688887 0.8069273 -0.7770752 1.23759 0.545603 -0.8792494 1.1526998 0.19376221 0.49745873 1.8313352 -0.64783055 1.6685811 -0.2618688 1.8564627 0.49752536 -1.2158772 -1.3072057 0.090112254 -0.41509128 0.0009092761 -2.0842192 -0.6416319 0.79593617 0.8041215 -0.6438961 -0.30487671 -0.82540876 -0.58635855 0.101415046 0.713597 -0.5660685 0.31179413 -0.65429956 -0.25237438 0.8158104 -0.44166392 -0.39261332 0.03055746 -0.09003964 0.8507497 0.6894882 1.2837583 0.6414272 -0.693501 0.62455916 0.27066833 -0.19916555 0.7060957 -0.10627952 -0.08007894 -0.7486157 0.028107105 -1.9561552 -0.111102894 0.8157596 0.28863436 0.20296082 1.0913177 -0.60116
@abkosar
abkosar / _tensor.tsv
Created April 11, 2019 15:41
_tensor.tsv
We can't make this file beautiful and searchable because it's too large.
-0.4348053 0.49046028 1.1824026 1.5406939 -0.31947988 -0.33496508 1.1608794 0.61919135 0.014308082 -1.6072097 0.1968484 1.1614001 -1.3698497 -0.167711 0.29985458 -0.182005 -0.93668646 0.9587524 0.1608789 0.36679658 0.01777331 0.48618484 0.4548196 0.9101717 -1.1403097 -0.061628748 -0.57115936 1.3687896 -0.2954683 0.2867947 0.8802421 -0.37494487 -0.3230506 0.21140489 -0.5120573 -0.34688887 0.8069273 -0.7770752 1.23759 0.545603 -0.8792494 1.1526998 0.19376221 0.49745873 1.8313352 -0.64783055 1.6685811 -0.2618688 1.8564627 0.49752536 -1.2158772 -1.3072057 0.090112254 -0.41509128 0.0009092761 -2.0842192 -0.6416319 0.79593617 0.8041215 -0.6438961 -0.30487671 -0.82540876 -0.58635855 0.101415046 0.713597 -0.5660685 0.31179413 -0.65429956 -0.25237438 0.8158104 -0.44166392 -0.39261332 0.03055746 -0.09003964 0.8507497 0.6894882 1.2837583 0.6414272 -0.693501 0.62455916 0.27066833 -0.19916555 0.7060957 -0.10627952 -0.08007894 -0.7486157 0.028107105 -1.9561552 -0.111102894 0.8157596 0.28863436 0.20296082 1.0913177 -0.60116
@abkosar
abkosar / _metadata.tsv
Created April 11, 2019 15:40
_metadata.tsv
We can make this file beautiful and searchable if this error is corrected: No tabs found in this TSV file in line 0.
the
and
for
you
this
that
with
are
amp
from
#################################################
########ANALYSIS OF TOTAL DEATHS BY TIME#########
#################################################
by_borough$TIME = sapply(by_borough$TIME, function(x) paste0(x, ":00"))
by_borough$TIME = times(by_borough$TIME)
Night_Time_People_Deaths <- by_borough %>%
filter(TIME > as.numeric(times('00:00:00')) & TIME < as.numeric(times('05:00:00'))) %>%
summarise(Total_People_Killed_Night = sum(NUMBER.OF.PERSONS.KILLED))