Skip to content

Instantly share code, notes, and snippets.

Josef Richter josefrichter

Block or report user

Report or block josefrichter

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:84088ad04a53701d7b5e
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
var PushManager = require('./RemotePushIOS');
var registerInstallation = require('./Installation');
var WEBVIEW_REF = 'webview';
View gist:22a51857cff06d005262
class LaunchScreen extends React.Component {
goTo(route) {
this.refs.nav.push(route)
}
receiveRemoteNotification(notification) {
var onPressFollow = function() {
console.log("follow");
@josefrichter
josefrichter / .htaccess
Created May 14, 2015
Simple password protection of Framer.js projects pushed to Heroku
View .htaccess
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^https://(.*\.)?herokuapp.com [NC]
RewriteCond %{HTTP_REFERER} !^https://(.*\.)?herokuapp.com.*$ [NC]
RewriteRule \.(html|coffee|js)$ - [F]
View gist:5204573
class Myrecord < ActiveRecord::Base
# property :id, Serial
# property :name, String, length: 4..35
# property :desc, Text
#
# timestamps :at
#
attr_accessor :foo # this one is NOT persisted in database
end
View gist:5187484
class Idea < ActiveRecord::Base
# property :id, Serial
# property :name, String, length: 4..35
# property :desc, Text
#
# timestamps :at
#
attr_accessor :matched_i_seek
attr_accessor :matched_i_have
attr_accessor :matches_count
@josefrichter
josefrichter / dabblet.css
Created Aug 28, 2012
The first commented line is your dabblet’s title
View dabblet.css
/**
* The first commented line is your dabblet’s title
*/
.container {
width:50%;
position:relative;
}
img {
@josefrichter
josefrichter / dabblet.css
Created Aug 28, 2012
The first commented line is your dabblet’s title
View dabblet.css
/**
* The first commented line is your dabblet’s title
*/
.container {
width:50%;
position:relative;
}
img {
@josefrichter
josefrichter / dabblet.css
Created Aug 23, 2012
The first commented line is your dabblet’s title
View dabblet.css
/**
* The first commented line is your dabblet’s title
*/
.container {
width:50%;
}
img {
float:left;
@josefrichter
josefrichter / dabblet.css
Created Dec 20, 2011
needed a border that doesn't start at the very top of a div
View dabblet.css
/* needed a border that doesn't start at the very top of a div */
/* the start position is set via background-position */
background-image:-moz-radial-gradient(#686868, #686868 100000px);
background-image:-webkit-radial-gradient(#686868, #686868 100000px);
background-image:radial-gradient(#686868, #686868 100000px);
background-position:100px 80px;
background-size:1px 100000px;
background-repeat:no-repeat;
View websocket.rb
require 'redis'
require 'em-websocket'
require 'sinatra/base'
#require 'sinatra'
require 'ruby-debug'
SOCKETS = []
REDIS = Redis.new(:host => '0.0.0.0', :port => 6379)
You can’t perform that action at this time.