Skip to content

Instantly share code, notes, and snippets.

View dreamstarter's full-sized avatar
💭
Building a new application!

Bryan Anderson dreamstarter

💭
Building a new application!
View GitHub Profile
@dreamstarter
dreamstarter / .gitingore
Created January 3, 2023 17:37 — forked from nastanford/.gitingore
Starter .gitignore file for ColdFusion Builder
# ColdFusion Builder or Eclipse)
settings.xml
# Dreamweaver CS6
_notes
dwsync.xml
# ColdFusion Server
CFIDE
WEB-INF
#!/bin/bash
# enable debug
#set -x
# variables
VERSIONFILE="$HOME/current-version.sh"
# functions
function saveVersion () {
echo "#!/bin/bash
@dreamstarter
dreamstarter / reset.css
Created October 7, 2019 18:22
Reset CSS
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
@dreamstarter
dreamstarter / README.md
Created August 15, 2019 19:57 — forked from hofmannsven/README.md
Git Cheatsheet

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Creating a VM

  • vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.
  • vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.

Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)
@dreamstarter
dreamstarter / muraBootstrapCarousel.cfm
Created July 26, 2019 16:10 — forked from stevewithington/muraBootstrapCarousel.cfm
Mura CMS: Bootstrap Carousel Example Using Local Content Index
<!--- BEGIN: Bootstrap Carousel --->
<cfset feed=$.getBean('feed').loadBy(name='Your FeedName Goes Here')>
<cfset iterator=feed.getIterator()>
<cfif iterator.hasNext()>
<div id="myCarousel" class="carousel slide">
<!--- Carousel items --->
<div class="carousel-inner">
<cfset idx = 0>
<cfloop condition="iterator.hasNext()">
<cfset item=iterator.next()>
[link to jira ticket]
Description of change
Please provide a description of the change here. Include links where the change can be viewed, and how the reviewer should proceed with manual testing, or inspecting visual changes.
Checklist
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings or errors.
@dreamstarter
dreamstarter / .gitignore
Created April 4, 2019 19:00 — forked from salcode/.gitignore
.gitignore file for a general web project - Bare Minimum Git
# -----------------------------------------------------------------
# .gitignore
# Bare Minimum Git
# http://ironco.de/bare-minimum-git/
# ver 20181206
#
# From the root of your project run
# curl -O https://gist.githubusercontent.com/salcode/10017553/raw/.gitignore
# to download this file
#
@dreamstarter
dreamstarter / fileupload.php
Created April 4, 2019 14:04
php file upload form
<!DOCTYPE html>
<html>
<head>
<title>File Upload</title>
</head>
<body>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST" enctype="multipart/form-data">
<input type="file" name="csv_file">
<input type="submit" name="submit">
#!/bin/python
import sys
import os
# Complete the function below.
### start of my code ###
def doesCircleExists(commands):