Skip to content

Instantly share code, notes, and snippets.

View waracci's full-sized avatar
🎯
Focusing

Morris Warachi waracci

🎯
Focusing
View GitHub Profile
@waracci
waracci / logHours.js
Created September 10, 2019 15:01
log hours quick
// Amount in hours you need to log. Eg. "8:00" logs 8 hours for you
document.getElementById('time_input').value = '8:00';
// Enter the product name you need to log hours for
document.getElementById('client_input').value = 'ProductName';
// Enter a description to justify the hours. Comma separated hashtags withion a string are allowed too
document.getElementById('hashtags_description').value = '#product, #reason, I helped out a colleague';
// Submits the form
@waracci
waracci / auth_test.py
Last active December 19, 2018 11:19
Test that a user registers with correct details (Email and password)
from django.test import TestCase
from rest_framework.test import APIClient
from rest_framework import status
class UserRegistrationTestCase(TestCase):
"""This class defines the test suite for the User authentication model."""
def setUp(self):
"""Test setup for running tests."""
<body>
<app-nav></app-nav>
<div class="container">
<div class="page-header">
<h1 class="text-center">User Profile Page</h1>
</div>
<div class="text-right">
<A href="#">Edit Profile</A>
<A href="#">Logout</A>
@waracci
waracci / nav
Created December 3, 2016 12:56
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
@waracci
waracci / now
Created December 2, 2016 14:38
<div class="container">
<div class="page-header">
<h1>Post a Listing</h1>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-8 well">
<form novalidate (ngSubmit)="onSubmit(listing)" [formGroup]="listing">
<div class="form-group">
@waracci
waracci / abt
Created November 2, 2016 09:18
<div id="menu1" class="tab-pane fade">
<div class="well">
<div class="row">
<div class="col-md-2">
<div class="thumbnail">
<img src="assets/images/portrait/potrait1.png" alt="no image" class="img-responsive" />
<div class="caption">
<h2>Staff 1</h2>
<p> <span class="glyphicon glyphicon-user"></span> Head of Sales</p>
</div>
<div class="container">
<app-splash></app-splash>
<div class="row">
<div class="col-md-12">
<div class="content">
<div class="well">
<div class="text-center">
<h2> Farm-Mont-Real-ventures </h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.cessitatibus, hic sit?</p>
<a href="" class="btn btn-info">View Available Plots</a>
<div class="list-group">
<a href="#" class="list-group-item">
<h4 class="list-group-item-heading">Learn More about the offer <span class="label label-danger">HOT</span> </h4>
<p class="list-group-item-text">Buy and get a chance to win a plot offer provides you with a chance of owning more plots of prime land around Nairobi.</p>
</a>
<a href="#" class="list-group-item">
<h4 class="list-group-item-heading">Why Choose Us?</h4>
<p class="list-group-item-text">Learn more about why we are the most reliable real estate company in Nairobi and its environs.</p>
</a>
</div>