Skip to content

Instantly share code, notes, and snippets.

View joarhal's full-sized avatar

Nikita Kislitsin joarhal

  • Belgrade, Serbia
View GitHub Profile
@joarhal
joarhal / 0_reuse_code.js
Last active August 29, 2015 14:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@joarhal
joarhal / python_resources.md
Last active August 29, 2015 14:19 — forked from jookyboi/python_resources.md
Python-related modules and guides.

Packages

  • lxml - Pythonic binding for the C libraries libxml2 and libxslt.
  • boto - Python interface to Amazon Web Services
  • Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
  • Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
  • PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
  • Celery - Task queue to distribute work across threads or machines.
  • pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.

Guides

@joarhal
joarhal / Log.cs
Created April 22, 2015 08:44
Simple unity3d log system wrapper.
namespace Assets.Scripts.Infrastructure
{
public class Log
{
private static LogLevel _level;
private static Log _log;
public static event DebugMessageAction OnDebugMessageRecieve;
public delegate void DebugMessageAction(string textMessage);
private Log()
@joarhal
joarhal / web.config
Created April 29, 2015 11:09
iis sites web.config for unity3d webgl games
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Imported Rule 2" enabled="true" stopProcessing="true">
<match url="(.*)Release(.*)\.data" ignoreCase="true" />
<action type="Rewrite" url="{R:1}Compressed{R:2}.datagz" />
<conditions>
</conditions>
@joarhal
joarhal / If.js
Created December 6, 2016 05:27
If component for react
import React from 'react';
const If = ({style={}, className='', condition, children}) => {
if (condition)
return (<div className={className} style={Object.assign({}, style)}>{children}</div>)
else
return null
}
export default If
@joarhal
joarhal / express-wrap-async.js
Created May 20, 2017 08:17
Wrapper for es6/es7 async functions for using with express router
module.exports = fn => (...args) => fn(...args).catch(args[2]);
@joarhal
joarhal / arrows_jkli.ahk
Created August 13, 2017 11:03
autohotkey script
SetTitleMatchMode, 2 ; Makes matching the titles easier
Suspend On
i::Up
j::Left
k::Down
l::Right
u::Home
o::End
p::PgUp