I hereby claim:
- I am ekumachidi on github.
- I am ekumac (https://keybase.io/ekumac) on keybase.
- I have a public key ASBf_iD7e-5quNCBlTGzpFVQluFiHNMMWONtc1LJ4eVq3Ao
To claim this, I am signing this object:
<html> | |
<head> | |
<style> | |
@import url('https://fonts.googleapis.com/css?family=Open+Sans|Pinyon+Script|Rochester'); | |
.cursive { | |
font-family: 'Pinyon Script', cursive; | |
} | |
.sans { |
I hereby claim:
To claim this, I am signing this object:
Rails.application.eager_load! | |
ActiveRecord::Base.descendants # It returns all models and its attributes. | |
ActiveRecord::Base.descendants.collect(&:name) # It returns only the model names | |
# If you're using > rails 5.0 you can use the line below | |
ApplicationRecord.descendants.collect(&:name) # It returns only the model names |
require 'rails_helper' | |
RSpec.describe TodosController, :type => :controller do | |
describe "GET #index" do | |
#describe "POST #create" do | |
#describe "GET #show" do | |
#describe "PATCH #update" do (or PUT #update) | |
#describe "DELETE #destroy" do | |
#describe "GET #new" do |
'use strict'; | |
var https = require('https'); | |
const functions = require('firebase-functions'); | |
exports.dialogflowFirebaseFulfillment = functions.https.onRequest((request, response) => { | |
const action = request.body.result.action; | |
response.setHeader('Content-Type','application/json'); | |
const parameters = request.body.result.parameters; |
-- SCHEMA DEFINITION | |
CREATE TABLE customer ( | |
`id` int, | |
`name` varchar(50), | |
`date_of_birth` date, | |
`phone_number` varchar(13), | |
`date_added` timestamp DEFAULT CURRENT_TIMESTAMP, | |
PRIMARY KEY (id) | |
); |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<title>Offer Letter</title> | |
<style type="text/css"> | |
/* Take care of image borders and formatting */ | |
{ |
# SSL self signed localhost for rails start to finish, no red warnings. | |
# 1) Create your private key (any password will do, we remove it below) | |
$ openssl genrsa -des3 -out server.orig.key 2048 | |
# 2) Remove the password | |
$ openssl rsa -in server.orig.key -out server.key |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Data; | |
using System.Data.Entity; | |
using System.Linq; | |
using System.Net; | |
using System.Web; | |
using System.Web.Mvc; | |
using VendorManagement.DAL.Data; |
# Viking Academy Coding challenge | |
def not_string(input) | |
if input.partition(" ").first == "Not" || input.partition(" ").first =="not" | |
puts input | |
else | |
puts "not #{input}" | |
end | |
end |