Skip to content

Instantly share code, notes, and snippets.


Dominik Schmidt iDuuck

Block or report user

Report or block iDuuck

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


Currently, we are working on a project, which is currently in design phase. Your assignment will be the development of the application with React.js.

Looking forward to your output.

If windows is used, .sketch files can be opened with Lunacy


iDuuck / reject_post.rb
Created May 7, 2016
How to reject a post based on some attributes
View reject_post.rb
# We are using the default ruby http client for the request to the
# shortened url, because otherwise a Gemfile or something different
# would be necessary
require 'net/http'
# I am using an example url from (with url shortener)
uri = URI('')
res = Net::HTTP.get_response(uri)
iDuuck / gist:58a4e663a5ecace0ec45
Created Jan 23, 2015
View gist:58a4e663a5ecace0ec45
"auto_indent": true,
iDuuck / gist:8b91138c070502f21743
Created Jun 24, 2014
⌘ + Enter to send an email
View gist:8b91138c070502f21743
# ~/.osx —
# Add the keyboard shortcut ⌘ + Enter to send an email in
defaults write NSUserKeyEquivalents -dict-add "Send" -string "@\\U21a9"
iDuuck / import-pg-mongodb.rb
Last active Aug 29, 2015
Because I didn't found a simple solution for importing the database from Heroku (Postgresql) on my localhost (Mongoid). Import your database on localhost or online with this script (from Heroku)
View import-pg-mongodb.rb
## Requirements:
## - Ruby on Rails
## - Existing Heroku Application
## - HTTParty
# Get the json content of the
# backup and parse it
url = ''
json = HTTParty.get(url)
You can’t perform that action at this time.