Explore >> Select a destination


You are here

garrettdimon.com
| | smsohan.com
5.8 parsecs away

Travel
| | I am working on ScrumPad chat refactoring now. In rails 2, the named_scope feature works really great for ActiveRecord models. Lets start with the code first- The Source Code: class ChatUser < ActiveRecord::Base belongs_to :chat belongs_to :user belongs_to :chat_status, :foreign_key => "status_id" named_scope :closed, lambda {|chat_id| {:conditions => ["status_id = #{ChatStatus::CLOSED} AND chat_id = ? ", chat_id]}} do def invite() each { |chat_user| chat_user.update_attribute(:status_id, ChatStatus::INVITED) } end end named_scope :active_chats, lambda {|user_id| {:conditions => ["
| | 128bit.io
9.2 parsecs away

Travel
| | Kind of a follow up to my onMD5 hashing in Python, Ruby and Groovy posting, Here is a way of doing MD5 hashing inCoffeeScript and Perl. CoffeeScript/Node.js Perl Scala I also moved the code for Python, Ruby and Groovy into the same Gist on Github. If you know a better way feel free to fork and update!
| | afreshcup.com
4.7 parsecs away

Travel
| | Advice to my young self: forget side projects and focus on your job - "The best way to dig a new technology is to practice it in your daily job." Branch Agno...
| | www.pixelstech.net
26.7 parsecs away

Travel
| GitHub Copilot is a new AI-powered code completion tool that can generate code snippets from natural language descriptions. It is powered by OpenAI Codex, a deep learning system that has been trained