A Pen by Ates Goral on CodePen.
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
Verifying that +atesgoral is my blockchain ID. https://onename.com/atesgoral |
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
return getFoo() | |
.then(foo => { | |
return getBar(foo) | |
.then(bar => { | |
return getBaz(foo, bar) | |
.then(baz => { | |
return getQux(foo, bar, baz); | |
}); | |
}); | |
}); |
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
const GitHubApi = require('github'); | |
const speakeasy = require('speakeasy'); | |
github.authenticate({ | |
type: 'basic', | |
username: process.env.GITHUB_USERNAME, | |
password: process.env.GITHUB_PASSWORD | |
}); | |
const token = speakeasy.totp({ |
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
Verifying my Blockstack ID is secured with the address 1PZj88MLiKCR86H8JiSgu2e26fxpR17Rht https://explorer.blockstack.org/address/1PZj88MLiKCR86H8JiSgu2e26fxpR17Rht |
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
{ "key": "shift+ctrl+t", "command": "workbench.action.tasks.runTask", "args": "Run current MiniTest" } |
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 SofterDeleteAllDependents | |
extend ActiveSupport::Concern | |
included do | |
before_destroy :softer_delete_associations, prepend: true | |
end | |
private | |
def softer_delete_associations |
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
['101010101012','614141000036','036000241457','613119000030','614141000035','036000241450','614141000030'] | |
.map(upc=>!(upc.split``.reduce((u,p,c)=>u+p*(3+c*2&3),0)%10)) | |
// [true, true, true, true, false, false, false] |
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 Sensitive | |
@@being_responsible = false | |
def initialize(value) | |
@value = value | |
end | |
def to_s | |
@@being_responsible ? @value : '[REDACTED]' | |
end |
OlderNewer