Skip to content

Instantly share code, notes, and snippets.

@sanjayk
sanjayk / gist:2c6fe89947720b74bfeb13a237730f8a
Last active October 16, 2016 22:18
React-Native Image View not loading Image
from:
source={{uri: this.props.thumbnail}}
to:
source={{uri: this.props.thumbnail.replace('http://', 'https://')}}
Issue:
https://github.com/facebook/react-native/issues/289
@sanjayk
sanjayk / Dockerfile
Last active September 12, 2016 04:29
Jekyll Dockerfile
FROM ruby:2.1.10-alpine
MAINTAINER Sanjay <[email protected]>
# Working directory for RUN, CMD, ENTRYPOINT, COPY and ADD instructions for Dockerfile
WORKDIR /usr/src/blog-app
# Copies files or dirs from <src> and adds them to the filesystem of the container
COPY . /usr/src/blog-app
@sanjayk
sanjayk / gist:1174519
Created August 26, 2011 21:55
redis-rb, EventMachine::Synchrony::ConnectionPool and pipelined command
require 'benchmark'
require 'redis/connection/synchrony'
require 'redis/connection/hiredis'
require 'redis'
redis = EventMachine::Synchrony::ConnectionPool.new(size: 1) do
Redis.new(:password => 'my password',
:host => 'my host',
:port => my port)
end