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 ApplicationHelper | |
def current_user | |
@current_user ||= warden.authenticate(:scope => :user) | |
end | |
end |
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 osa = require('osa2'); | |
var fs = require('fs'); | |
var chokidar = require('chokidar'); | |
var watcher = chokidar.watch('/Users/rup/Desktop/trolls', { | |
ignored: /(^|[\/\\])\../, | |
ignoreInitial: true, | |
persistent: true, | |
}); |
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 brain = require('brain.js') | |
var fs = require('fs') | |
// configuration to be used in the brain | |
const config = { | |
binaryThresh: 0.5, // arbitary value | |
hiddenLayers: [3], // the size of the hidden layers in the network | |
activation: 'sigmoid' // activation function | |
} |
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
cask_args appdir: "~/Applications" | |
tap "caskroom/cask" | |
cask 'sqleditor' | |
cask 'google-chrome' | |
cask 'homebrew/cask-versions/firefox-developer-edition' | |
# cask 'resilio-sync' | |
cask 'keybase' | |
# cask 'dashlane' | |
cask 'visual-studio-code' |
OlderNewer