This file contains 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
## Community Code | |
* Learn, Grow, Build | |
* Weekly adventures in coding within the Solana solar system | |
* Visit the hubble discord channel [#coding-school](https://discord.gg/tEeM9C7wVz) and get involved | |
### Episode #1: Building the Launchpad | |
* Follow along as we install all the required tools to code in Solana | |
* Create a base project that can host any future building | |
**Contact [Jesse Naiman](https://twitter.com/NaimanJesse) if you want to participate in future episodes** |
This file contains 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
Hi everyone. Over at Hubble we've started a campaign to create a commmunity coding space where we showcase and help teach others how to get started with coding in defi. The primary goals is to dive into projects that are of interest to the hubble community, and help onboard future aspiring developers and builders to get more involved. | |
Would any dev or community members like to co-ordinate a live event where we discuss how to build your product. | |
We would love to have host a walkthrough with a dev, or community member, with knowledge of your code or sdks. | |
If you have any education resources, or setup tips we're looking to create a friendly space to share them in the newly formed #community-code space in the hubble discord group. | |
Please let us know if your're interested, or and feel free to share any thoughts or ideas about this project. |
This file contains 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
/** | |
* Main application file | |
*/ | |
'use strict'; | |
// Set default node environment to development | |
process.env.NODE_ENV = process.env.NODE_ENV || 'development'; | |
var express = require('express'); |
This file contains 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
DELETE FROM [Catalyst.Models.DataContext].[dbo].[transactions] | |
WHERE id = '36833' | |
GO | |
DELETE FROM [Catalyst.Models.DataContext].[dbo].[items] | |
WHERE id = '36833' | |
GO |
This file contains 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
class User | |
include Mongoid::Document | |
include Mongoid::Timestamps | |
include User::AuthDefinitions | |
include User::Roles |
This file contains 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
class Users::InvitationsController < Devise::InvitationsController | |
def update | |
if this | |
binding.pry | |
redirect_to root_path | |
else | |
binding.pry | |
super | |
end |
This file contains 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
class Riding < ActiveRecord::Base | |
attr_accessible :poll_stations | |
#has_many :poll_street_indices | |
has_many :poll_stations | |
end | |
####################################################### | |
class PollStation < ActiveRecord::Base | |
attr_accessible :electoral_district, :poll_division, :location, :address1, :address2, :place |
This file contains 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
class Address | |
include Mongoid::Document | |
field :address, type: String | |
field :address2, type: String | |
field :city, type: String | |
field :province, type: String | |
field :postal_code, type: String | |
field :phone_number, type: String | |
field :toll_free_phone_number, type: String |
This file contains 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
csv_data.each do |row| | |
riding = Riding.new | |
riding.riding_id = row[0] | |
riding.title = row[1] | |
riding.save | |
I18n.locale = :fr | |
riding.title = row[2] | |
riding.save | |
end |
This file contains 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
LoadModule passenger_module /usr/local/rvm/gems/ruby-2.0.0-p195/gems/passenger-4.0.5/libout/apache2/mod_passenger.so | |
PassengerRoot /usr/local/rvm/gems/ruby-2.0.0-p195/gems/passenger-4.0.5 | |
PassengerDefaultRuby /usr/local/rvm/wrappers/ruby-2.0.0-p195/ruby | |
PassengerDefaultUser root | |
<VirtualHost *:80> | |
ServerName office.dev.liberalonline.ca | |
ServerAlias office.dev.liberalonline.ca |
NewerOlder