Skip to content

Instantly share code, notes, and snippets.

@edvinasbartkus
edvinasbartkus / vanilla.js
Created January 12, 2012 11:00
Vanilla JS vs jQuery
/*
There is this file shared about the performance of vanilla JS and jQuery performance
http://sharedfil.es/j-3k2NPAjwfQ.html
We are geeks and we want real numbers
Test suite for www.jquery.com
It is dummy test suite
Chromium 18.0.997.0 (Developer Build 116462 Linux) Built on Ubuntu 11.10, running on LinuxMint 12
*/
@edvinasbartkus
edvinasbartkus / logo.html
Created July 8, 2013 06:01
mamytes.lt logo
<a id="logo" href="/">
<span style="color: #55CEBA;" class="logo_letter">m</span>
<span style="color: #62D8E1;" class="logo_letter">a</span>
<span style="color: #FFB86D" class="logo_letter">m</span>
<span style="color: #FF8AB9" class="logo_letter">y</span>
<span style="color: #FF5F84" class="logo_letter">t</span>
<span style="color: #55CEBA" class="logo_letter">ė</span>
<span style="color: #62D8E1" class="logo_letter">s</span>
@edvinasbartkus
edvinasbartkus / parser.js
Created February 2, 2014 22:37
Node: fast HTML parsing with Stream
var request = require('minreq') || require('request'),
WritableStream = require('htmlparser2').WritableStream;
var count = 0;
var done = function () {
console.log('There are ' + count + ' script tags.');
process.exit(1);
};
var handlers = {
new Parse('https://news.ycombinator.com/item?id=7216471', function () {
var comments = [];
when('class', 'comment', function () {
var comment = {};
comments.push(comment);
whenText(function (text) {
if (text != 'reply') {
comment.text = (comment.text || '') + text;
}
@edvinasbartkus
edvinasbartkus / gist:0e99ea8305a20737f562
Last active May 20, 2022 11:08
Ruby puma.gem install on El Capitan / Mac Sierra
gem install puma -- --with-cppflags=-I/usr/local/opt/openssl/include --with-ldflags=-L/usr/local/opt/openssl/lib
@edvinasbartkus
edvinasbartkus / gist:8ed0e61a7c7980c087f1
Created September 2, 2015 13:40
coreos-cloud-config
#cloud-config
coreos:
etcd:
...
units:
- name: docker-tcp.socket
command: start
enable: true
content: |
#cloud-config
snappy:
ssh_enabled: True
packages:
- docker
write_files:
- path: /var/lib/apps/docker/1.6.2.003/etc/docker.conf
content: |
DOCKER_OPTIONS='-H unix:///var/run/docker.sock -H tcp://0.0.0.0:2375'
@edvinasbartkus
edvinasbartkus / keybase.md
Created October 5, 2017 06:56
keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@edvinasbartkus
edvinasbartkus / .github-workflows-main.yml
Created November 16, 2019 10:06
Github Action for React Native Detox
name: Detox
on: [push]
jobs:
build:
runs-on: macOS-latest
timeout-minutes: 15
env:
@edvinasbartkus
edvinasbartkus / android.yml
Created November 20, 2019 14:45
Running Detox tests for Android on Github Actions Workflow
name: Android
on: [push]
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout