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>RequireJS Async plugin</title> | |
</head> | |
<body> | |
<h1>Geocomplete With RequireJS</h1> | |
<form> | |
<input id="geocomplete" type="text" placeholder="Type in an address" size="90" autocomplete="off"> | |
<input id="find" type="button" value="find"> |
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/code/core/ | |
app/design/frontend/base/ | |
app/design/frontend/default/default/ | |
app/design/frontend/default/blank/ | |
app/design/frontend/default/iphone/ | |
app/design/frontend/default/modern/ | |
app/design/install/ | |
app/etc/modules/Mage_All.xml | |
app/etc/modules/Mage_Api.xml | |
app/etc/modules/Mage_Bundle.xml |
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
<%Set o = Server.CreateObject("WScript.Network")%> | |
<h1><%=o.ComputerName%></h1> |
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
<script language="c#" runat="server"> | |
public void Page_Load(object sender, EventArgs e) | |
{ | |
Response.Write("<h1>"+System.Environment.MachineName+"</h1>"); | |
} | |
</script> |
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 mongoose = require('mongoose'); | |
var Schema = mongoose.Schema; | |
mongoose.connect('localhost', 'testing_invitees'); | |
var userSchema = new Schema({ | |
firstName: String | |
}); | |
var U = mongoose.model('User', userSchema); | |
var eventMemberSchema = new Schema ({ |
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 locomotive = require('locomotive'), | |
env = process.env.NODE_ENV || 'development', | |
port = process.env.PORT || 3000, | |
address = '0.0.0.0'; | |
locomotive.boot(__dirname, env, function(err, server) { | |
if (err) { throw err; } | |
server.listen(port, address, function() { | |
var addr = this.address(); | |
console.log('listening on %s:%d', addr.address, addr.port); |
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 types = Assembly.GetAssembly(typeof(Repository<>)) | |
.GetTypes() | |
.Where(x => x.BaseType != null && x.BaseType.GetGenericArguments().FirstOrDefault() != null) | |
.Select(x => x.BaseType != null ? x.BaseType.GetGenericArguments().FirstOrDefault() : null) | |
.ToList(); |
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 ($, ko) { | |
var _dragged, _hasBeenDropped, _draggedIndex; | |
ko.bindingHandlers.drag = { | |
init: function (element, valueAccessor, allBindingsAccessor, viewModel) { | |
var dragElement = $(element); | |
var dragOptions = { | |
helper: function () { | |
return dragElement.clone().addClass("ui-dragon"); | |
}, |
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
<script src="https://maps.googleapis.com/maps/api/js?sensor=false"></script> | |
<script> | |
var geocoder; | |
$(function () { | |
geocoder = new google.maps.Geocoder(); | |
$('#searchBtn').click(function () { | |
geoCode($("#locationValue").val(), function (latLon) { | |
$('#lat').val(latLon.Lat); |
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
public class CustomerController : Controller | |
{ | |
private ICustomerService _customerService; | |
public CustomerController(ICustomerService customerService) | |
{ | |
_customerService = customerService; | |
} | |
public IActionResult Post(string firstName, string lastName) |
OlderNewer