Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Antono Vasiljev antono

🎯
Focusing
Block or report user

Report or block antono

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@antono
antono / fix-all-dates.sh
Created Oct 27, 2018
DJI Mavic Air fix dates
View fix-all-dates.sh
#!/bin/bash
DIR=$1
exiftool -v0 -progress \
-overwrite_original "-CreateDate<FileModifyDate" \
"-ModifyDate<FileModifyDate" "-TrackCreateDate<FileModifyDate" \
"-TrackModifyDate<FileModifyDate" "-MediaCreateDate<FileModifyDate" \
"-MediaModifyDate<FileModifyDate" "-FileCreateDate<FileModifyDate" \
$DIR/*.MP4
@antono
antono / asyncawait.js
Last active Jan 28, 2018
Promise vs async/await
View asyncawait.js
async function doSomething (value, reject = true) {
if (reject) {
throw value;
} else {
return value;
}
}
async function task() {
try {
View rx-core
➜ RxJS git:(master) cloc src/core
295 text files.
295 unique files.
7 files ignored.
github.com/AlDanial/cloc v 1.72 T=0.90 s (319.3 files/s, 17587.0 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
JavaScript 283 1521 2028 10893
@antono
antono / ЦитатникИпешника.md
Last active Oct 26, 2016
Соль земли и Мудрость старцев - без регистрации и SMS (только по инвайтам)
View ЦитатникИпешника.md
  • Alexei Gusev
    • Себе то не гони !!!
  • Pavel Gabriel
    • Нехватило недели..., теперь страшно смотреть.
    • микросервис у нас 1 :D
  • Alexander Randa
    • когда ищешь работу, никому никто не нужен.
  • Andrey Martyanov
    • Типичная хуйня в айти.
  • Anton Shemerey
View gist:9c8b6171b5566ba407a0b6489b8378b1
-- не хватило недели...
-- себе-то не гони
-- микросервис у нас 1 :D
View dnf update gstreamer problem
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache till the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction check error:
file /usr/share/doc/gstreamer1/NEWS from install of gstreamer1-1.6.2-1.fc23.i686 conflicts with file from package gstreamer1-1.6.1-1.fc23.x86_64
file /usr/share/doc/gstreamer1/RELEASE from install of gstreamer1-1.6.2-1.fc23.i686 conflicts with file from package gstreamer1-1.6.1-1.fc23.x86_64
file /usr/share/locale/af/LC_MESSAGES/gstreamer-1.0.mo from install of gstreamer1-1.6.2-1.fc23.i686 conflicts with file from package gstreamer1-1.6.1-1.fc23.x86_64
file /usr/share/locale/az/LC_MESSAGES/gstreamer-1.0.mo from install of gstreamer1-1.6.2-1.fc23.i686 conflicts with file from package gstreamer1-1.6.1-1.fc23.x86_64
View designer.html
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@antono
antono / gist:5951422
Created Jul 8, 2013
Stupid open(...) calls on each require()
View gist:5951422
close(7) = 0
lstat("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/antono", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
lstat("/home/antono/.rbenv", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/antono/.rbenv/versions", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/antono/.rbenv/versions/2.0.0-p195", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/antono/.rbenv/versions/2.0.0-p195/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/antono/.rbenv/versions/2.0.0-p195/lib/ruby", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/antono/.rbenv/versions/2.0.0-p195/lib/ruby/gems", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/antono/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
View Gemfile
group :linux do
gem "rb-inotify"
gem "libnotify"
gem "foreman"
gem "mailcatcher"
end
View clojure api for google+.clj
(filter
(fn [user]
(let [langs-of-posts (map google.translate/guess-language
(google.plus/get-user-posts user))]
(and
(pos? (count langs-of-posts))
(every? #(#{:be :en :eo :ja :ru :uk} %) langs-of-posts)) ))
(google.plus/select-users-by-cirle "esperanto"))
You can’t perform that action at this time.