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,
@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,
} from 'react-native';
import ScrollableTabView, {DefaultTabBar} from 'react-native-scrollable-tab-view';
export default React.createClass({
render() {
return <ScrollableTabView
import React from 'react';
import {
Text,
TouchableOpacity,
} from 'react-native';
import ScrollableTabView, {DefaultTabBar} from 'react-native-scrollable-tab-view';
export default React.createClass({
render() {
#! /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:
@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"
)
)