var a = "bla";
for (var i = 0; i < 500000; i++) {
a += "bla";
}
Is a little faster than
Template.register.events({ | |
'submit #register-form': function(event, t) { | |
event.preventDefault(); | |
var email = t.find('#register-email').value.toLowerCase(); | |
var password = t.find('#register-password').value; | |
var username = t.find('#register-username').value; | |
Accounts.createUser({ | |
email: email, | |
password: password, | |
username: username, |
if (Meteor.isServer) { | |
var _onCreateUser = Accounts.onCreateUser.bind(Accounts); | |
// Since onCreateUser overrides default behavior, and we don't want to restrict package users | |
// by removing the onCreateUser function, we override onCreateUser to modify the user document before the regular onCreateUser call. | |
Accounts.onCreateUser = function (func) { | |
console.log('oncreatinguser outer'); | |
_onCreateUser(function (options, user) { | |
console.log('oncreateuser inner'); | |
if (!user.profile) { | |
user.profile = options.profile || {}; |
Tinytest.addAsync('test', function (test, done) { | |
if (Meteor.isClient) { | |
Accounts.createUser({ | |
username: 'user1', | |
password: 'fruit' | |
}, function (err) { | |
Accounts.logout(function () { | |
Accounts.createUser({ | |
username: 'user2', | |
password: 'fruit' |
var a = "bla";
for (var i = 0; i < 500000; i++) {
a += "bla";
}
Is a little faster than
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Text Editor</title> | |
<style> | |
body, document, html { | |
width: 100%;height: 100%; | |
} | |
div { | |
height: 60rem; |
function init () { | |
instr(parseInt('0000110000', 2)); | |
instr(parseInt('0000110000', 2)); | |
instr(parseInt('0000110000', 2)); | |
instr(parseInt('0000111000', 2)); | |
instr(parseInt('0000001000', 2)); | |
instr(parseInt('0000000001', 2)); | |
instr(parseInt('0000000100', 2)); | |
instr(parseInt('0000001111', 2)); | |
} |
[ | |
// Use paste and indent as default paste mechanism, | |
// this conserves your indentation and it's overall better. | |
// original paste is now ctrl+shift+v | |
{ | |
"keys": ["ctrl+v"], | |
"command": "paste_and_indent" | |
}, { | |
"keys": ["ctrl+shift+v"], | |
"command": "paste" |
from Xlib.display import Display | |
from Xlib import X | |
from Xlib.ext import record | |
from Xlib.protocol import rq | |
import time | |
disp = None | |
keysym_map = { | |
32: "SPACE", |
(function ($) { | |
$.fn.toggler = function () { | |
var prefix = "data-az", | |
toggle_groups = $(document).find("[" + prefix + "-toggle-group]"), | |
togglable_groups = $(document).find("[" + prefix + "-togglable-group]"), | |
togglables = togglable_groups.find("[" + prefix + "-togglable]"), | |
toggles = toggle_groups.find("[" + prefix + "-toggle]"); | |
togglables.hide(); | |