This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App = Ember.Application.create(); | |
App.Router.map(function() { | |
// put your routes here | |
}); | |
App.IndexRoute = Ember.Route.extend({ | |
model: function() { | |
return ['red', 'yellow', 'blue']; | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
args = process.argv; | |
args.shift(); | |
args.shift(); | |
var total = args.reduce(function(a,b){ | |
return parseInt(a,10) + parseInt(b,10); | |
}); | |
console.log(total); | |
})() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// create array to hold the values that the memory tiles will hold | |
var memory_values = []; | |
// create array for the locations of the tiles themselves | |
var memory_tile_ids = []; | |
// initialize array for the tiles flipped | |
var tiles_flipped = 0; | |
function onLinkedInLoad() { | |
IN.Event.on(IN, "auth", function() { | |
onLinkedInLogin(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<title>Responsive Email Template</title> | |
<style type="text/css"> | |
.ReadMsgBody {width: 100%; background-color: #ffffff;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="loader"> | |
<div></div> | |
<div></div> | |
<div></div> | |
<div></div> | |
<div></div> | |
<div></div> | |
<div></div> | |
<div></div> | |
<div></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class OrdersCloseCommand extends BaseCommand | |
{ | |
public function run($args) | |
{ | |
parent::run($args); | |
// var_dump(Yii::app()->assetManager->publish(Yii::getPathOfAlias('application.assets')));exit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var | |
http = require("http"), | |
path = require("path"), | |
fs = require("fs"), | |
express = require('express'); | |
var app = express(); | |
var server = http.createServer(app); | |
app.get('/', function(res,req){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doctype html | |
html | |
head | |
title Basic Form | |
body | |
h1 This is the form. | |
form(action="/basic-form", method="post") | |
.form-name | |
label(for="name") Name | |
input(type="text", id="name", value="Enter your name", name="name") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var | |
fs = require('fs'), | |
path = require('path'), | |
http = require('http'), | |
express = require('express'), | |
bodyParser = require('body-parser'), | |
multer = require('multer'); | |
var app = express(); | |
var server = http.createServer(app); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function duplicate(arr){ | |
var newArr = arr; | |
if (!Array.isArray(newArr)) { | |
newArr = JSON.parse(newArr); | |
} | |
arr.forEach(function(x){ | |
newArr.push(x); | |
}); | |
return newArr; | |
} |
OlderNewer