Skip to content

Instantly share code, notes, and snippets.

View AndriyShepitsen's full-sized avatar

Andriy Shepitsen AndriyShepitsen

View GitHub Profile
@AndriyShepitsen
AndriyShepitsen / logoNameStyle.scss
Last active December 16, 2015 17:58
logoNameStyle
@mixin companyNameStyle ($anyColor){
font-family: 'Noto Serif', serif;
float: left;
width: $companyNameWidth;
font-size: 45px;
letter-spacing: 2px;
color: $anyColor;
font-weight: bold;
text-align: right;
padding-right: 33px;
@mixin headerPhoneNumberStyle{
float: left;
width: 575px;
margin-left: 15px;
position:relative;
top:-5px;
font-size:2.1em;
font-weight: bold;
letter-spacing: 2px;
color: $contentBackgroundCollor;
@mixin basicBoxStyle {
width: 100%;
overflow: auto;
position: relative;
}
<link href='http://fonts.googleapis.com/css?family=Noto+Serif' rel='stylesheet' type='text/css'><link href='http://fonts.googleapis.com/css?family=Quicksand' rel='stylesheet' type='text/css'>
font-family: 'Noto Serif', serif;
@include box-shadow(#393939 0px 0px 1px)
<!doctype html>
<?php
echo $anyVar;
?>
public function addNews($title, $body)
{
$arrInsertValues = array('title'=>$title, 'body'=>$body);
$success = $this->db->insert('news', $arrInsertValues);
return $success;
}
@AndriyShepitsen
AndriyShepitsen / function_getAllNews_models.php
Last active December 17, 2015 05:29
function_getAllNews_models
public function getAllNews()
{
$query = $this->db->get('news');
return $query->result();
}
@AndriyShepitsen
AndriyShepitsen / function_newsAddMethod_controllers.php
Created May 11, 2013 02:18
function_newsAddMethod_controllers
public function newsAddMethod()
{
$newsTitle = $this->input->post('newsTitle');
$newsBody = $this->input->post('newsBody');
$success = $this->md_news->addNews($newsTitle, $newsBody);
if ($success){
redirect('Legal-News-Chicago-North-Suburbs/Judicial-Important-Information');
}