Skip to content

Instantly share code, notes, and snippets.

View sasasa671's full-sized avatar

Tev sasasa671

View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="../../favicon.ico">
package com.sethaikens.videotimestamp;
import android.app.*;
import android.content.*;
import android.net.*;
import android.os.*;
import android.provider.*;
import android.view.*;
import android.view.View.*;
import android.widget.*;
<div class="datagrid">
<table>
<tbody>
<tr>
<td><img src="http://dev.virusintl.com/skin/frontend/ebajes/default/images/image1.png" alt="" width="92" height="66" /></td>
<td><img src="http://dev.virusintl.com/skin/frontend/ebajes/default/images/image2.png" alt="" width="92" height="66" /></td>

###Creating a REST API using Node.js, Express, and MongoDB

####Installing Node.js

Go to http://nodejs.org, and click the Install button. Run the installer that you just downloaded. When the installer completes, a message indicates that Node was installed at /usr/local/bin/node and npm was installed at /usr/local/bin/npm. At this point node.js is ready to use. Let’s implement the webserver application from the nodejs.org home page. We will use it as a starting point for our project: a RESTful API to access data (retrieve, create, update, delete) in a wine cellar database.

Create a folder named nodecellar anywhere on your file system. In the wincellar folder, create a file named server.js.

<html ng-app="ionicApp">
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title>Tabs Example</title>
<link href="//code.ionicframework.com/nightly/css/ionic.css" rel="stylesheet">
<script src="//code.ionicframework.com/nightly/js/ionic.bundle.js"></script>
</head>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<ul class="nav nav-tabs" role="tablist" id="myTab">
@sasasa671
sasasa671 / main.cpp
Created January 10, 2015 15:58
For Kirkwood
// include PS3BT.h includes the libary PS3BT & Servo.h includes the libary Servo this tells the rest of the code that it is
// okay to to talk with those libary to "grab" code from it
#include <PS3BT.h>
#include <Servo.h>
// makes connection for PWM ( Pulse Width Modulation ) to Names
// so the preprocessor directory define motor1ON > Pin 2
// so basically when the code compiles the compiler sees MOtor1ON as Pin 3 (Value)
#define Motor1ON 2
#define Motor2ON 3
for td in soup.findAll("td", { "class":"title" }):
titles_html += td.findAll("a")
@sasasa671
sasasa671 / index.html
Last active August 29, 2015 14:10
Colins Website
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta name="generator" content="">
<title>Kickstarter</title>
<link type="text/css" rel="stylesheet" href="portfolio.css">
<link rel="stylesheet" href="styles.css" type="text/css">
<link rel="icon" type="image/png" href="http://example.com/myicon.png">
<meta>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<IfModule mod_expires.c>
# Enable expirations
ExpiresActive On
# Default directive
ExpiresDefault "access plus 1 month"
# My favicon
ExpiresByType image/x-icon "access plus 1 year"
# Images
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"