Skip to content

Instantly share code, notes, and snippets.

View kix's full-sized avatar

Stepan Anchugov kix

  • Belgrade
  • 11:58 (UTC +02:00)
View GitHub Profile
tap "homebrew/bundle"
tap "homebrew/services"
tap "jez/formulae"
tap "shivammathur/extensions"
tap "shivammathur/php"
tap "symfony-cli/tap"
# Plugin manager for zsh, inspired by antigen and antibody
brew "antidote"
# Codec library for encoding and decoding AV1 video streams
brew "aom"
#include <PMserial.h>
#include <BLEDevice.h>
#include <BLEUtils.h>
#include <BLEScan.h>
#include <BLEAdvertisedDevice.h>
#include <BLE2902.h>
#define SERVICE_UUID "faf6c799-5567-4f54-89fb-c7188b3f3b88"
#define CHARACTERISTIC_PM01_UUID "cc4f2f18-7b99-4fae-b46d-3568a42cb3f8"
#define CHARACTERISTIC_PM25_UUID "d7f6bea5-4e01-458d-9395-9e42ddd00b69"
@kix
kix / telegram.clj
Last active December 5, 2019 16:47
(ns taskbot.telegram
(:require [clj-http.client :as http]
[cheshire.core :as json]
[clojure.core.async :as a :refer [chan put! close! take! go go-loop <! >! alts!]]
[environ.core :refer [env]]
[clojure.tools.logging :as log]
[clojure.spec.alpha :as s]
[clojure.spec.test.alpha :refer [instrument]]))
(def base-url (or (env :base-url) "https://api.telegram.org/bot"))
const webpack = require('webpack')
const path = require('path')
const devBuild = process.env.NODE_ENV !== 'production'
const nodeEnv = devBuild ? 'development' : 'production'
const config = {
entry: {
'client-bundle': [ 'babel-polyfill', 'whatwg-fetch', './app/Resources/js/main.js' ],
<?php
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
class ServiceTest extends KernelTestCase
{
public function provideExpectedDefinitions()
{
return [
['My\Something', 'my.something'],
@kix
kix / gist:84f501992ae377d32c10
Last active August 29, 2015 14:26 — forked from hay/gist:1351230
Enterprisify your Java Class Names!
<!doctype html>
<html>
<head>
<title></title>
<style>
body {
background: white;
text-align: center;
padding: 20px;
font-family: Georgia, serif;
@kix
kix / hg-subrepos.md
Created March 19, 2015 05:58
Mercurial submodule cookbook
$ mkdir subrepos
$ cd subrepos
$ hg init
$ echo "wp-content/plugins/sphinx=ssh://hg@bitbucket.org/ivinco/wordpress-sphinx-search-plugin" > .hgsub
$ hg add .hgsub
$ hg clone ssh://hg@bitbucket.org/ivinco/wordpress-sphinx-search-plugin wp-content/plugins/sphinx
<?php
/**
* Created by PhpStorm.
* User: kix
* Date: 24/02/15
* Time: 19:34
*/
namespace AppBundle\Controller;
<?php
namespace AppBundle\Admin;
use \Symfony\Component\DependencyInjection\ContainerInterface;
use Sonata\AdminBundle\Admin\Admin;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Route\RouteCollection;
@kix
kix / gist:42ff66961850f38186c9
Created January 21, 2015 10:08
npm-global.txt
/usr/local/lib
├─┬ bower@1.3.3
│ ├── abbrev@1.0.5
│ ├── archy@0.0.2
│ ├─┬ bower-config@0.5.0
│ │ ├── mout@0.6.0
│ │ └─┬ optimist@0.6.1
│ │ ├── minimist@0.0.10
│ │ └── wordwrap@0.0.2
│ ├── bower-endpoint-parser@0.2.1