Skip to content

Instantly share code, notes, and snippets.

View skv-headless's full-sized avatar
😜
working

Eugene Sokovikov skv-headless

😜
working
  • HeroCoders
  • Remote
View GitHub Profile
@skv-headless
skv-headless / gist:9615708
Last active August 29, 2015 13:57
Gitlab presentation
  1. User creation
  • namespaces
  • ssh keys
  • access to repositories
  • maybe something else
  1. Project creation
  • bare repositories
  • maybe something else
  1. Project browsing
  • Files(web based text editor)
@skv-headless
skv-headless / hash.rb
Created November 13, 2014 08:37
simple hash
class HashTable
def initialize
@bins = Array.new(11)
end
def [](key)
@bins[bin_num(key)]
end
def []=(key, value)
@skv-headless
skv-headless / gist:9228160
Created February 26, 2014 11:49
Boostrap tooltip with hovering on it.
$('#projects').find('.project-row').each(() ->
$this = $(this)
$this.tooltip(
container: $this
trigger: "hover"
)
)
#! /bin/sh
import sys, os, time
from subprocess import Popen, list2cmdline
def cpu_count():
''' Returns the number of CPUs in the system
'''
num = 1
if sys.platform == 'win32':
try:
import React from 'react';
import {
Text,
TouchableOpacity,
} from 'react-native';
import ScrollableTabView, {DefaultTabBar} from 'react-native-scrollable-tab-view';
export default React.createClass({
render() {
import React from 'react';
import {
Text,
} from 'react-native';
import ScrollableTabView, {DefaultTabBar} from 'react-native-scrollable-tab-view';
export default React.createClass({
render() {
return <ScrollableTabView
@skv-headless
skv-headless / reactive.md
Last active September 22, 2016 12:01
Lighting talk proposal to amazing https://reactiveconf.com

The most pragmatic way to write a mobile app

I want to talk about different approaches in writing mobile apps. I will tell you when it is a good idea to pretend that your responsive website is an app. Also about evolution of this idea from basecamp and DHH - turbolinks. I will tell you about my lovely ReactNative and the problems it has. When you can't avoid writing apps in native sdk and what difficulties you may face going this way.

Last year I used to write apps in objective-c. My open source works mostly around react native but my heart is with Ruby on Rails.

import * as React from 'react';
interface IUser {
id: number,
}
interface IProps {
name: string,
somethingOptional?: string,
age: number,
import TestNested, { IDoc } from './TestNested';
interface IDocTest extends IDoc {
wtf: string,
}
interface IProps {
doc: IDocTest,
}
mport DocumentNested, { DocumentNested } from './DocumentNested';
interface Document extends DocumentNested {
name: string,
}
interface ParentComponentProps {
document: Document,
}