Skip to content

Instantly share code, notes, and snippets.

View benschac's full-sized avatar
🙃
Looking for a react native job

benjamin benschac

🙃
Looking for a react native job
View GitHub Profile
<DOCTYPE html>
<html lang="en">
<head>
<title> Benjamin Schachter</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="stylesheet.css">
<!--[if lt IE 9]
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<DOCTYPE html>
<html lang="en">
<head>
<title> Benjamin Schachter</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="stylesheet.css">
<!--[if lt IE 9]
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
@font-face {
font-family: 'Lincoln';
src:url('AbrahamLincoln.ttf');
font-weight: normal;
font-style: normal;
}
@font-face{
font-family: 'LincolnBold'
src:url('AbrahamLincoln.ttf');
@benschac
benschac / gist:5175498
Created March 16, 2013 08:18
Why wont my font show up?
<DOCTYPE html>
<html lang="en">
<head>
<title> Benjamin Schachter</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="stylesheet.css">
<!--[if lt IE 9]
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
@benschac
benschac / gist:5682020
Created May 30, 2013 23:18
Help on Chapter 8 I keep getting a weird rspec error and was wondering if you could help!
Failures:
1) Authentication with valid information
Failure/Error: fill_in "Email", with: user.email.upcase
Capybara::ElementNotFound:
Unable to find field "Email"
# ./spec/requests/authentication_pages_spec.rb:33:in `block (3 levels) in <top (required)>'
2) Authentication with valid information
Failure/Error: fill_in "Email", with: user.email.upcase
@benschac
benschac / gist:7283657
Created November 2, 2013 21:23
jquery
jQuery(document).ready(function($) {
$("li.dropdown a").click(function(e){
$(this).next('ul.dropdown-menu').css("display", "block");
e.stopPropagation();
});
});
var gameOfLife = {
width: 50,
height: 50,
stepInterval: null,
createAndShowBoard: function () {
// create <table> element
var goltable = document.createElement("tbody");
// build Table HTML
var gameOfLife = {
width: 100,
height: 100,
stepInterval: null,
createAndShowBoard: function () {
// create <table> element
var goltable = document.createElement("tbody");
// build Table HTML
// Place your code here:
// Adds properties of obj2 into obj1
function merge(obj1, obj2) {
var mergedObjs = {};
for(var key in obj1) {
mergedObjs[key] = obj1[key];
}
//Setup
var contacts = [
{
"firstName": "Akira",
"lastName": "Laine",
"number": "0543236543",
"likes": ["Pizza", "Coding", "Brownie Points"]
},
{
"firstName": "Harry",