Skip to content

Instantly share code, notes, and snippets.

View noximus's full-sized avatar
🪄
Making Magic Happen

Nox noximus

🪄
Making Magic Happen
View GitHub Profile
@noximus
noximus / IE.html
Created November 25, 2013 20:51
IE HTML Comments
<p class="accent">
<!--[if IE]>
According to the conditional comment this is IE<br />
<![endif]-->
<!--[if IE 6]>
According to the conditional comment this is IE 6<br />
<![endif]-->
<!--[if IE 7]>
According to the conditional comment this is IE 7<br />
<![endif]-->
@noximus
noximus / PHPMailer Bluehost Gmail
Last active April 3, 2019 16:15
Proper PHPMailer Bluehost Gmail submission
After a little research, I was able to answer my own question
1. login to bluehost.com and access cPanel
2. in the "Mail" box, select "Email Accounts"
3. look for the desired email account and click "More"
4. click "Configue Email Client"
You will now see the info you need to configure phpmailer. It will look something like this:
Manual Settings
class HelloMessage extends React.Component {
render() {
return React.createElement(
"div",
null,
"Hello ",
this.props.name
);
}
}
@noximus
noximus / checkbox.html
Last active November 7, 2018 02:21
Custom Styled Checkbox Input Form
<!DOCTYPE html>
<html>
<style>
/* The container */
.container {
display: block;
position: relative;
padding-left: 35px;
margin-bottom: 12px;
cursor: pointer;
@noximus
noximus / README-Template.md
Last active February 20, 2019 01:33 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@noximus
noximus / background-cover
Last active April 3, 2019 16:16
Background Strech Cover
.background-cover {
position: relative;
width: 100%;
height: 100vh;
background: url(../images/section2bg.png);
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
@noximus
noximus / urlParamsObject
Last active April 3, 2019 16:15
Grab the URL params and put them into a nice object. Example: http://example.com/?product=shirt&color=blue&newuser&size=m Usage: getAllUrlParams().product; // 'shirt' getAllUrlParams().color; // 'blue' getAllUrlParams().newuser; // true getAllUrlP
function getAllUrlParams(url) {
// get query string from url (optional) or window
var queryString = url ? url.split('?')[1] : window.location.search.slice(1);
// we'll store the parameters here
var obj = {};
// if query string exists
if (queryString) {
@noximus
noximus / Home.js
Last active November 7, 2018 02:08 — forked from thecookieorg/Home.js
snippet I grabbed from somewhere
import React, { Component } from 'react';
import { View, Text, TouchableOpacity } from 'react-native';
import axios from 'axios';
class Home extends Component {
state = {
posts: []
}
componentWillMount() {
@noximus
noximus / forEach
Last active April 3, 2019 16:14
js forEach() .forEach() Snippet with the for loop before it.
const companies = {
{name: "Company One", category: "Finance", start: 1981, end: 2003},
{name: "Company One", category: "Finance", start: 1992, end: 2008},
{name: "Company One", category: "Finance", start: 1999, end: 2007},
{name: "Company One", category: "Finance", start: 1989, end: 2010},
{name: "Company One", category: "Finance", start: 2009, end: 2014},
{name: "Company One", category: "Finance", start: 1987, end: 2010},
{name: "Company One", category: "Finance", start: 1986, end: 1996},
{name: "Company One", category: "Finance", start: 2011, end: 2016},
{name: "Company One", category: "Finance", start: 1981, end: 1989}
@noximus
noximus / filter
Last active October 16, 2018 01:43
Javascript ES6 .filter(); with shorthand
const companies = {
{name: "Company One", category: "Finance", start: 1981, end: 2003},
{name: "Company One", category: "Finance", start: 1992, end: 2008},
{name: "Company One", category: "Finance", start: 1999, end: 2007},
{name: "Company One", category: "Finance", start: 1989, end: 2010},
{name: "Company One", category: "Finance", start: 2009, end: 2014},
{name: "Company One", category: "Finance", start: 1987, end: 2010},
{name: "Company One", category: "Finance", start: 1986, end: 1996},
{name: "Company One", category: "Finance", start: 2011, end: 2016},
{name: "Company One", category: "Finance", start: 1981, end: 1989}