Skip to content

Instantly share code, notes, and snippets.

@scope2229
scope2229 / index.html.erb
Created March 18, 2016 21:28
where would i place this
<!-- search-scripts -->
<script src="javascripts/classie.js"></script>
<script src="javascripts/uisearch.js"></script>
<script>
new UISearch( document.getElementById( 'sb-search' ) );
</script>
<!-- //search-scripts -->
.soci li{
display:inline-block;
margin:0 0.2em;
}
i.f-1 {
width: 30px;
height: 30px;
background: url(../assets/soci.png)no-repeat -10px -8px;
float: left;
vertical-align: middle;
@import "bootstrap-sprockets";
@import "bootstrap";
@import "jquery-ui";
.soci li{
display:inline-block;
margin:0 0.2em;
}
i.f-1 {
<nav class="navbar navbar-default navbar-static-top" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a href="/" class="pull-left"><img src="assets/windsorL.png" class="img-responsive" alt="windsor lodge como"></a>
</a>
</div>
<div class="collapse navbar-collapse" id="links">
<ul class="nav navbar-nav container-*-fluid pull-right">
<li class="active"><a href="/">Home</a></li>
<li><a href="rooms">Rooms</a></li>
<nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin:0px;"=>
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-WLC-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>
@scope2229
scope2229 / application.js
Created November 17, 2017 16:08
Simple rails project
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's
// vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file. JavaScript code in this file should be added after the last require_* statement.
//
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
@output['products'][0]
=> {
"url"=>"http://omgili.com/ri/.wHSUbtEfZTzBH6c9Z4cI15_sA3Hthoy48U8beRZ_m5lA7IjRC07KAl_t9PZZTUpVyIElYRPNwESkpgWrFuLtCsKQ1Apdjx_jld142pfHUAdippyPkgHob2bwpktxkzZqvVelr3L3OOq9qp5XCHXEYkx1GYb0O_awd5Z8FnemrBnhIJ4ZIOaKn7WinS9k36LajW78ScZZFngDQem4_p6BKrC02m1OhRc",
"uuid"=>"bc54af0e0b4da231cad1a1352544fd3e6c234c68",
"source"=>{
"site_full"=>"www.walmart.com",
"site"=>"walmart.com",
"site_section"=>"https://www.walmart.com/",
"section_title"=>"Walmart.com: Free 2-Day Shipping on Millions of Items",
"country"=>"US"},
//set up for the date and time labels
QTimer *timer = new QTimer(this);
connect(timer, SIGNAL(timeout()), this, SLOT(showTime()));
timer->start(1000);
showTime();
QDateTime dateTime = dateTime.currentDateTime();
QString dateTimeString = dateTime.toString("dddd dd/MM/yyyy");
QString errorDateTimeString = dateTime.toString("dd/MM/yy hh:mm:ss");
ui->showDateLabel->setText(dateTimeString);
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QtWidgets>
#include <QDateTime>
#include <QTimer>
#define Path_to_DB "/home/ghostly/Desktop/projects/Business Development /HMS/APPLICATIONS/Database/HMSSecureD"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),