I hereby claim:
- I am azeirah on github.
- I am azeirah (https://keybase.io/azeirah) on keybase.
- I have a public key whose fingerprint is C6CC 3CFF 9C23 0D36 124F 26C2 B4D2 59A9 2CA3 1AE3
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
(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(); | |
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)); | |
} |
var a = "bla";
for (var i = 0; i < 500000; i++) {
a += "bla";
}
Is a little faster than
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' |
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 || {}; |
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, |
Template.previewNote.rerender = function () { | |
console.log(UI._templateInstance()); | |
var codes = UI._templateInstance().findAll("pre>code"); | |
for (var i = 0; i < codes.length; i++) { | |
hljs.highlightBlock(codes[i]); | |
} | |
}; |
Sublime Text has a somewhat hidden feature to automatically reindent the current line. It would be wasteful to bind this to a keybinding, I prefer it to be automatic.
print("Executing a function")
def someFunction():
return 5
Moving the print line one line down with ctrl+shift+down will result in