Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Tan nhattan

🎯
Focusing
  • Singapore
View GitHub Profile
@nhattan
nhattan / upload.js
Last active Dec 12, 2019
Create a blob by uploading data from a browser (ReactJS)
View upload.js
/*
https://www.npmjs.com/package/@azure/storage-blob
npm install @azure/storage-blob
OR
yarn add @azure/storage-blob
Remember to set up the CORS rules for your storage https://docs.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-javascript-client-libraries#setting-up-storage-account-cors-rules
*/
const { BlobServiceClient } = require("@azure/storage-blob")
@smoil
smoil / account.rb
Last active Mar 2, 2020
Ajax select/multi select in Rails using Select2
View account.rb
class Account < ActiveRecord::Base
def self.search(name = nil)
# search logic
end
end
You can’t perform that action at this time.