Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
TypeError: Cannot read property 'getBufferPosition' of undefined | |
at TextEditor.module.exports.TextEditor.getCursorBufferPosition (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1235:34) | |
at status-bar-cursor.CursorPositionView.updatePosition (/Applications/Atom.app/Contents/Resources/app/node_modules/status-bar/lib/cursor-position-view.js:48:73) | |
at status-bar-cursor.CursorPositionView.subscribeToActiveTextEditor (/Applications/Atom.app/Contents/Resources/app/node_modules/status-bar/lib/cursor-position-view.js:39:19) | |
at /Applications/Atom.app/Contents/Resources/app/node_modules/status-bar/lib/cursor-position-view.js:17:24 | |
at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:71:11) | |
at /Applications/Atom.app/Contents/Resources/app/src/pane-container.js:285:34 | |
at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:71:11) | |
at Pane.module.exports |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
class Author(models.Model): | |
name = models.CharField(max_length=200) | |
class Book(models.Model): | |
title = models.CharField(max_length=200) | |
author = models.ForeignKey(Author) | |
# here it is: | |
# this should start from 1 for the same author | |
# examples: | |
# author1 | 1 |
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
module.exports = exports = function relativeImageUrl(schema, options) { | |
var relField = options.relativeUrlField || 'relUrl', | |
field = {}; | |
field[relField] = String; | |
schema.add(field); | |
schema.pre('save', function(next) { | |
var photoField = options.absoluteUrlField || 'large', | |
removeStr = process.env.PWD + '/client', |
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
/* | |
Theme Name: Breeze theme | |
Theme URI: | |
Description: | |
Version: 1.0 | |
Author: Freshout | |
Tags: | |
*/ |
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 | |
/************************ | |
* Google Contact importer | |
* | |
* Asks for permissions to provide access to your Gmail/Google contacts | |
* to the given site. | |
*************************/ | |
// include all required components from Zend Gdata | |
// from: http://framework.zend.com/download/gdata |
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
openssl req -x509 -nodes -days 365 -newkey rsa:1024 -sha1 -subj '/C=US/ST=CA/L=Mountain View/CN=yourdomain.com' -keyout myrsakey.pem -out myrsacert.pem |
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
jQuery.fn.center = function () { | |
this.css("position","absolute"); | |
this.css("top", ( $(window).height() - this.height() ) / 2+$(window).scrollTop() + "px"); | |
this.css("left", ( $(window).width() - this.width() ) / 2+$(window).scrollLeft() + "px"); | |
return this; | |
} |
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
python -m smtpd -n -c DebuggingServer localhost:1025 |
OlderNewer