Skip to content

Instantly share code, notes, and snippets.

View gajus's full-sized avatar

Gajus Kuizinas gajus

View GitHub Profile
return request('http://www.everymancinema.com/venues/')
.then(function (response) {
let $ = response.data,
locations = [];
$('.main .content a[href^="/venues/"]').each(function () {
locations.push({
nid: layman.match($(this).attr('href'), /venues\/([^\/]+)\//),
name: $(this).find('img').attr('alt'),
url: 'http://www.everymancinema.com' + $(this).attr('href')
@gajus
gajus / filmData.js
Last active September 25, 2015 13:55
jsdom.env({
html: '<script>var filmData = {foo: "bar"};</script>',
features: {
ProcessExternalResources: true
},
done: (error, window) => {
if (error) {
throw new Error('Something is up!');
}
@gajus
gajus / index.js
Created September 16, 2015 19:56
import React from 'react';
import ReactDOM from 'react-dom';
import YouTubePlayer from 'react-youtube-player';
class Parent extends React.Component {
constructor () {
super();
this.state = {};
for d in */ ; do
dirName=$d;
dirName=${dirName//\/}
if [-f "$dirName.sql"]; then
echo "File found!"
fi
done;
This announcement is preparatory to the forthcoming tender for the exploration and extraction of Lithuanian amber resources.
It was proposed that the tax should be 20% that of the amber market value. However, amber market prices in Lithuania have not been reviewed since 1992. In comparison, the same tax ranges between 15-25% in the rest of the European Union. This is equal to an increase from 20.2 EUR/kg to 280 EUR/kg for the amber fraction of up to 40 millimeters, and up to 900 EUR/kg for amber fraction greater than 40 millimeters.
After the government meeting Prime Minister Algirdas Butkevičius told reporters that tax increase should not deter potential amber exploration and production bidders:
“The international demand and price of amber is considerably higher. It is not a cheap commodity.” – said the Lithuanian prime minister.
According to the Ministry of Environment, tax increase will generate an income of 41 million EUR:
function() {
var videos = [
{
"id": 65432445,
"title": "The Chamber"
},
{
"id": 675465,
"title": "Fracture"
},
@gajus
gajus / gist:2f2d7cb9c674a8b8e86c
Created June 16, 2015 16:57
Erase the scrollback history.
/**
* Erase the scrollback history.
*/
function clearScrollback () {
if (php_sapi_name() !== 'cli') {
throw new Exception('Use of function in invalid interface context.');
}
$term_program = getenv('TERM_PROGRAM');
2015-05-13 08:46:07 ↺ GET https://api.wuaki.tv/movies?device=iphone&page=1&per_page=2&search%5Bmeta_sort%5D=title.asc
← 200 application/json 10.07kB 2.25MB/s
Request Response
Access-Control-Allow-Origin: *
Access-Control-Request-Method: *
Age: 0
Cache-Control: max-age=60, public
Content-Type: application/json; charset=utf-8
Date: Wed, 13 May 2015 07:46:34 GMT
ETag: "b4816887d1a5cbae4bd79ab1cf1cda57"
About four months ago I have bought an air humidifier (Dyson Humidifier). I have set it to maximum and left it next to my bed – I thought it will help my skin. It did. However, few weeks later a ringing started in my head (high-pitch) and then a more noticeable ringing in my right ear (low tone). ENT doctor have not found ear damage or change in my hearing. The cause is unknown.
Air humidifier was about the only change in my life around that time. I am not jumping to the conclusions. Quick Google search for tinnitus and air humidifier came back with nothing. Going to throw this out in case more people observe a similar happening and start to Google.