This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule MyApp do | |
| use Application | |
| def start(_type, _args) do | |
| import Supervisor.Spec, warn: false | |
| children = [ | |
| Plug.Adapters.Cowboy.child_spec(:http, MyApp.Router, [], [ | |
| dispatch: dispatch | |
| ]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| launchctl unload /Library/LaunchAgents/org.macosforge.xquartz.startx.plist | |
| sudo launchctl unload /Library/LaunchDaemons/org.macosforge.xquartz.privileged_startx.plist | |
| sudo rm -rf /opt/X11* /Library/Launch*/org.macosforge.xquartz.* /Applications/Utilities/XQuartz.app /etc/*paths.d/*XQuartz | |
| sudo pkgutil --forget org.macosforge.xquartz.pkg | |
| # Log out and log in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # chat.rb | |
| require 'sinatra/base' | |
| # this also loads celluloid io, let's keep that in mind | |
| require 'celluloid/current' | |
| require 'reel' | |
| # The chat server, an IO Event Loop held by the actor | |
| # Collects connections (Reel Event Streams) | |
| # | |
| # Contrary to EventMachine, there is no event callback for |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # if you have a directory of files that look like: | |
| # 2015-03-21 11.23.39.jpg | |
| # 2015-04-15 09.55.20.jpg | |
| # 2015-03-21 11.23.42.jpg | |
| # 2015-05-12 13.14.59.png | |
| # | |
| # this Rakefile will move all the files into subdirectories for year/month | |
| task :default do |task| | |
| file_list = FileList['*.jpg', '*.png'] |
NewerOlder