Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| # https://docs.aws.amazon.com/cli/latest/userguide/awscli-install-windows.html | |
| $dlurl = "https://s3.amazonaws.com/aws-cli/AWSCLI64PY3.msi" | |
| $installerPath = Join-Path $env:TEMP (Split-Path $dlurl -Leaf) | |
| $ProgressPreference = 'SilentlyContinue' | |
| Invoke-WebRequest $dlurl -OutFile $installerPath | |
| Start-Process -FilePath msiexec -Args "/i $installerPath /passive" -Verb RunAs -Wait | |
| Remove-Item $installerPath | |
| $env:Path += ";C:\Program Files\Amazon\AWSCLI\bin" |
| """ | |
| Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
| BSD License | |
| """ | |
| import numpy as np | |
| # data I/O | |
| data = open('input.txt', 'r').read() # should be simple plain text file | |
| chars = list(set(data)) | |
| data_size, vocab_size = len(data), len(chars) |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| require 'mogli' | |
| module FacebookIntegrationHelpers | |
| shared_context "with unconnected facebook user" do | |
| let(:fb_user) { create_test_user(installed: false) } | |
| after { fb_user.destroy } | |
| end | |
| def app_client | |
| Mogli::AppClient.new(AppConfig.facebook.access_token, AppConfig.facebook.app_id) |
| # JSON-encoded error and redirect results for Devise controllers. | |
| # This overrides an internal method of Devise, so be careful when updating Devise! | |
| # | |
| # Usage: | |
| # | |
| # class Users::RegistrationsController < Devise::RegistrationsController | |
| # include DeviseJsonAdapter | |
| # end | |
| # | |
| # devise_for :users, :controllers => { :registrations => "users/registrations" } |