Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Dominik Schmidt iDuuck

🎯
Focusing
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
View assignment-for-florian.md

Assignment

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

Prerequisites:

@iDuuck
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 webdesignshare.com (with url shortener)
uri = URI('http://url.tusiad.org/make-people-stay-website')
res = Net::HTTP.get_response(uri)
@iDuuck
iDuuck / gist:58a4e663a5ecace0ec45
Created Jan 23, 2015
config.sublime-settings
View gist:58a4e663a5ecace0ec45
{
"auto_indent": true,
"binary_file_patterns":
[
"bower_components/*",
"node_packages/*",
"public/bower_components/*",
"dist/*",
"*.jpg",
"*.png",
@iDuuck
iDuuck / gist:8b91138c070502f21743
Created Jun 24, 2014
⌘ + Enter to send an email
View gist:8b91138c070502f21743
# ~/.osx — https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Add the keyboard shortcut ⌘ + Enter to send an email in Mail.app
defaults write com.apple.mail NSUserKeyEquivalents -dict-add "Send" -string "@\\U21a9"
@iDuuck
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 = 'https://dataclips.heroku.com/xxx.json'
json = HTTParty.get(url)
You can’t perform that action at this time.