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
const assert = require('assert');
/**
* Calculates the circle's area for the given radius
*
* @param {number} radius
* @returns {number} cirle's area
*/
function circleArea(radius) {
if (typeof radius === 'number') {
import DocumentNested, { DocumentNested } from './DocumentNested';
interface Document extends DocumentNested {
name: string,
}
interface ParentComponentProps {
document: Document,
}
mport DocumentNested, { DocumentNested } from './DocumentNested';
interface Document extends DocumentNested {
name: string,
}
interface ParentComponentProps {
document: Document,
}
import TestNested, { IDoc } from './TestNested';
interface IDocTest extends IDoc {
wtf: string,
}
interface IProps {
doc: IDocTest,
}
import * as React from 'react';
interface IUser {
id: number,
}
interface IProps {
name: string,
somethingOptional?: string,
age: number,
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 React from 'react';
import {
Text,
TouchableOpacity,
} from 'react-native';
import ScrollableTabView, {DefaultTabBar} from 'react-native-scrollable-tab-view';
export default React.createClass({
render() {
@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: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)