Skip to content

Instantly share code, notes, and snippets.

@taliwalt
taliwalt / style.css
Created April 10, 2016 03:48 — forked from WebEndevSnippets/style.css
Gravity Forms: 4 Column CSS
/* 4 column Gravity Forms custom ready class ------------------------------------------------------*/
.gform_wrapper .top_label li.gfield.gf_first_quarter,
.gform_wrapper .top_label li.gfield.gf_second_quarter,
.gform_wrapper .top_label li.gfield.gf_third_quarter,
.gform_wrapper .top_label li.gfield.gf_fourth_quarter {
margin:0 0 8px 0;
width:24%;
}
//In order to link two accounts, create a link method in a controller (make sure to have the auth object injected):
$scope.link = function () {
auth.auth0js._callbackOnLocationHash = true;
auth.signin({
authParams: {
access_token: auth.accessToken
}
}, function (profile, token) {
// TODO Handle accounts linked
@taliwalt
taliwalt / account-controller.js
Created November 11, 2015 09:12 — forked from adelevie/account-controller.js
Parse.com + Angular.js + Login (+ OAuth.js)
'use strict';
/**
* AccountController allows the User to change settings, link with their GitHub accounts, etc
*/
skeletonApp.controller('AccountController', [
'$scope', '$location', '$rootScope', 'OAuthService', 'ParseService', function($scope, $location, $rootScope, OAuthService, ParseService) {
// redirect to "/login" if user is not logged in
@taliwalt
taliwalt / multiple-modals-semantic.html
Last active September 2, 2015 02:59 — forked from marcosfreitas/multiple-modals-semantic.html
Creating Multiple Modals in Semantic UI :)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Multiple Modals With Semantic UI</title>
<link rel="stylesheet" href="path_to_semantic/dist/semantic.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="path_to_semantic/dist/semantic.js"></script>
</head>
<body>
@taliwalt
taliwalt / extras.css
Last active September 2, 2015 02:59 — forked from marcosfreitas/extras.css
/* ==========================================================================
Buttons Class Configurations
========================================================================== */
/*
* Redefinition to bootstrap buttons
*/
.btn, .btn[disabled], .btn:focus, .btn:hover, .btn:active{
color: #333;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
@taliwalt
taliwalt / index.html
Last active August 29, 2015 14:23 — forked from anonymous/index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<div id="div1"></div>
<script id="jsbin-javascript">
var parentDiv = document.getElementById("div1");
div
{
height: 100px;
width: 100px;
margin: auto;
position: absolute;
bottom: 0; left: 0; top: 0; right: 0;
}