[based on a true story]
So. Your friend's about to teach you how to make a website. Great!
You make a file, and you save it as 'index.html'. Why it's called 'index' isn't really explained to you, but whatever.
You type the following.
hello world
var async = require('async'); | |
var AWS = require('aws-sdk'); | |
var util = require('util'); | |
var spawn = require('child_process').spawn; | |
var fs = require('fs'); | |
var s3 = new AWS.S3(); | |
// globals | |
var dstBucket = "outrender1121" |
#!/bin/bash | |
# Deploy script for Meteor.js to Heroku | |
# | |
# Author: Martin A. Midtsund / martin@iterate.no | |
# | |
# Before running this script, you need to have these tools in your path: | |
# meteor - To install: $ curl https://install.meteor.com | sh | |
# heroku - Install Heroku toolbelt and log in to your user: https://toolbelt.heroku.com/ | |
# git - You'll get this in the Heroku toolbelt, if you don't already have it. | |
# |
<!doctype html> | |
<html ng-app="myapp"> | |
<head> | |
<script src="https://maps.googleapis.com/maps/api/js"></script> | |
<script src="http://code.angularjs.org/1.2.25/angular.js"></script> | |
<script src="https://rawgit.com/allenhwkim/angularjs-google-maps/master/build/scripts/ng-map.js"></script> | |
<script> | |
var app = angular.module('myapp', ['ngMap']); | |
app.controller('MyCtrl', function($scope) { | |
$scope.positions = [ [-24,132] ,[-25,131] ,[-26,130] ]; |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 | |
(http://www.wtfpl.net/about/) | |
Copyright (C) 2015 Mario Mendes (@hyprstack) | |
Copyright (C) 2015 Ivan Fraixedes (https://ivan.fraixed.es) | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. |
public class SettingsAdapter extends WearableListView.Adapter { | |
private final Context context; | |
private final List<SettingsItems> items; | |
public SettingsAdapter(Context context, List<SettingsItems> items) { | |
this.context = context; | |
this.items = items; | |
} |
(* Launches Google Chrome with web security disabled. | |
This disables the same origin policy for API calls and can | |
ease development from a dev environment not in a server's CORS settings *) | |
(* This same command can be sent to Canary by changing | |
'Google Chrome.app' to 'Google Chrome Canary.app' *) | |
do shell script "open -a 'Google Chrome.app' --args --disable-web-security --allow-running-insecure-content" | |
(* If you want to not use your current user in Chrome you can set --user-data-dir to point to /tmp |
[based on a true story]
So. Your friend's about to teach you how to make a website. Great!
You make a file, and you save it as 'index.html'. Why it's called 'index' isn't really explained to you, but whatever.
You type the following.
hello world
# see How to Install Redis Server on CentOS 7 - http://linoxide.com/storage/install-redis-server-centos-7/ | |
# --- Compiling --- | |
$ yum install gcc make tcl | |
$ REDIS_VER=3.2.3 | |
$ wget http://download.redis.io/releases/redis-$REDIS_VER.tar.gz | |
$ tar xzvf redis-$REDIS_VER.tar.gz | |
$ cd redis-$REDIS_VER | |
$ make | |
$ make test |
if (req.method === 'OPTIONS') { | |
console.log('!OPTIONS'); | |
var headers = {}; | |
// IE8 does not allow domains to be specified, just the * | |
// headers["Access-Control-Allow-Origin"] = req.headers.origin; | |
headers["Access-Control-Allow-Origin"] = "*"; | |
headers["Access-Control-Allow-Methods"] = "POST, GET, PUT, DELETE, OPTIONS"; | |
headers["Access-Control-Allow-Credentials"] = false; | |
headers["Access-Control-Max-Age"] = '86400'; // 24 hours | |
headers["Access-Control-Allow-Headers"] = "X-Requested-With, X-HTTP-Method-Override, Content-Type, Accept"; |
<!DOCTYPE HTML> | |
<html lang="en" ng-app="myApp"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Dynamic Pagination w/ Filtering</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="description" content=""> | |
<meta name="author" content="Kim Maida"> | |
<!-- JS Libraries --> |