TweetWorld
An application used to filter data form Twitter based on user preference, built with React, Redux, JavaScript, and CSS.
(only necessary if incomplete)
| class AttachedValidator < ActiveModel::EachValidator | |
| def validate_each(record, attribute, value) | |
| record.errors.add(attribute, :attached, options) unless value.attached? | |
| end | |
| end |
| # converts a png image to jpeg | |
| # all transparent regions will be converted to white | |
| convert -flatten source.png destination.jpg |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Smiley Face</title> | |
| </head> | |
| <body> | |
| <canvas id="a" width="800" height="800"> | |
| This text is displayed if your browser does not support HTML5 Canvas. | |
| </canvas> |
| class JavaScript | |
| def initialize | |
| @work = [] | |
| @background_worker_count = 0 | |
| end | |
| def run(&code) | |
| @work << code | |
| while @work.any? || @background_worker_count > 0 | |
| instance_eval &@work.shift if @work.any? |
| _ \ | |
| , __ , # (C) Josh Cheek | |
| *,_ = # 2015 | |
| def __ ___ , # Inspiration | |
| *__, **_ # Is | |
| putc ___ # Obviously | |
| end, def _ *_, # Yusuke | |
| **__ # Endoh | |
| _. # | |
| map {|_ ;__ # And |
| # ----- Common Linked List Methods ----- | |
| def add_to_front(list, data) | |
| build_list(data, list) | |
| end | |
| def add_to_back(list, data) | |
| return build_list(data, empty_list) if empty?(list) | |
| new_tail = add_to_back(tail(list), data) | |
| build_list(head(list), new_tail) |