Skip to content

Instantly share code, notes, and snippets.

View oseifrimpong's full-sized avatar
🎯
Focus

Obed Osei Frimpong oseifrimpong

🎯
Focus
View GitHub Profile
@oseifrimpong
oseifrimpong / folder_structure.md
Created September 28, 2023 14:57 — forked from ayoubzulfiqar/folder_structure.md
The Folder Structure for Every Golang Project

Go - The Ultimate Folder Structure

Organizing your Go (Golang) project's folder structure can help improve code readability, maintainability, and scalability. While there is no one-size-fits-all structure, here's a common folder structure for a Go project:

project-root/
    ├── cmd/
    │   ├── your-app-name/
    │   │   ├── main.go         # Application entry point
    │   │   └── ...             # Other application-specific files
### Keybase proof
I hereby claim:
* I am oseifrimpong on github.
* I am obed3310 (https://keybase.io/obed3310) on keybase.
* I have a public key ASBOiwxvIMUwjqMgXXF0hxMmCEAbzVWQS5abNT3DUPhrMAo
To claim this, I am signing this object:
import { PropTypes } from 'prop-types';
import React, { Component } from 'react';
import { View, Text, StyleSheet, Image, TouchableOpacity } from 'react-native';
// import { StackNavigator } from 'react-navigation';
// import SignUp from './SignUp';
const styles = StyleSheet.create({
container: {
flex: 1,
http://www.oreilly.com/data/free/files/2014-data-science-salary-survey.pdf
http://www.oreilly.com/data/free/files/2015-data-science-salary-survey.pdf
http://www.oreilly.com/data/free/files/Data_Analytics_in_Sports.pdf
http://www.oreilly.com/data/free/files/advancing-procurement-analytics.pdf
http://www.oreilly.com/data/free/files/ai-and-medicine.pdf
http://www.oreilly.com/data/free/files/analyzing-data-in-the-internet-of-things.pdf
http://www.oreilly.com/data/free/files/analyzing-the-analyzers.pdf
http://www.oreilly.com/data/free/files/architecting-data-lakes.pdf
http://www.oreilly.com/data/free/files/being-a-data-skeptic.pdf
http://www.oreilly.com/data/free/files/big-data-analytics-emerging-architecture.pdf
<h2>Sign up</h2>
<!--<% resource.profile || resource.build_profile %> -->
<% resource.build_profile %>
<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
<%= devise_error_messages! %>
<div class="field">
<%= f.label :email %><br />
<%= f.email_field :email, autofocus: true %>
<header class = "navbar navbar-fixed-top">
<div class = "navbar-inner">
<div class ="container">
<%= link_to "SCUTISU", scut_home_path, id: "logo" %>
<nav>
<ul class ="nav pull-right">
<li><%= link_to "Home", scut_home_path %></li>
<li><%= link_to "About Us", scut_aboutus_path %></li>
<li><%= link_to "Contact Us", scut_contactus_path %></li>
<li><%= link_to "Sign in", "#" %></li>
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.1'
#Use PostgreSQL
group :production do
gem 'pg', '0.17.0'
end
@oseifrimpong
oseifrimpong / gist:7546578
Created November 19, 2013 14:57
Error after running "gem install rails"
ERROR: While executing gem ... (OpenSSL::SSL::SSLError)
SSL_connect returned=1 errno=0 state=SSLv3 read server hello A: wrong version number
1) User Pages signup page
Failure/Error: it { should have_selector('title', text: full_title('Sign up'))}
expected #has_selector?("title", {:text=>"Ruby on Rails Tutorial Sample App | Sign up"}) to return true, got false
# ./spec/requests/user_pages_spec.rb:12:in `block (3 levels) in <top (required)>'
2) Static pages Home page it should behave like all static pages
Failure/Error: it { should have_selector('title', content: full_title(page_title)) }
ArgumentError:
invalid keys :content, should be one of :text, :visible, :between, :count, :maximum, :minimum
Shared Example Group: "all static pages" called from ./spec/requests/static_pages_spec.rb:18
app/controllers/targeting_controller.rb:8:in `show'
actionpack (3.2.15) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.2.15) lib/abstract_controller/base.rb:167:in `process_action'
actionpack (3.2.15) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (3.2.15) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (3.2.15) lib/active_support/callbacks.rb:425:in `_run__2958441726183771221__process_action__3009639004342221532__callbacks'
activesupport (3.2.15) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.15) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
activesupport (3.2.15) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.15) lib/abstract_controller/callbacks.rb:17:in `process_action'