- Generate new rails app using
--webpackflag
rails new myApp --webpack=vueNote:
- You can use
--webpack=angularfor angular application and--webpack=reactfor react.
| code --install-extension Hridoy.rails-snippets | |
| code --install-extension Riey.erb | |
| code --install-extension adrianwilczynski.alpine-js-intellisense | |
| code --install-extension alexdima.copy-relative-path | |
| code --install-extension apollographql.vscode-apollo | |
| code --install-extension bradgashler.htmltagwrap | |
| code --install-extension bradlc.vscode-tailwindcss | |
| code --install-extension bungcip.better-toml | |
| code --install-extension castwide.solargraph | |
| code --install-extension christian-kohler.npm-intellisense |
| <?php | |
| // AWS data | |
| $bucketName = "BUCKET-NAME"; | |
| $AWSAccessKeyId = "XXXXXXXXXXXXXXXXXXXX"; | |
| $AWSSecretAccessKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; | |
| $date = date("Y-m-d"); | |
| $dateISO = date("Ymd"); | |
| $validTill = date('Y-m-d\TH:i:s.000\Z', time() + (60 * 60 * 4)); // 4 hours |
| import * as request from 'request'; | |
| import * as fs from 'fs'; | |
| import * as readline from 'readline'; | |
| var google = require('googleapis'); | |
| var googleAuth = require('google-auth-library'); | |
| /*************** STEPS | |
| - made a project on https://console.cloud.google.com/cloudpubsub/topicList?project=testmabs thing? |
| mutation( | |
| $additional_information_ids: [String] | |
| $buying_company_currency_id: String | |
| $buying_company_id: String | |
| $buying_company_name: String | |
| $customer_company_id: String | |
| $customer_company_name: String | |
| $customer_currency_id: String | |
| $customer_incoterm_id: String | |
| $customer_parameter_ids: [String] |
| #my atom pachage config |
| import jQuery from 'jquery' | |
| import Turbolinks from 'turbolinks' | |
| export default function () { | |
| const { defer, dispatch } = Turbolinks | |
| const handleEvent = function handleEvent(eventName, handler) { | |
| document.addEventListener(eventName, handler, false) | |
| } |
| # app / assets / javascripts / active_admin.js | |
| //= require active_admin/base | |
| //= require jquery.ui.widget | |
| //= require jquery.iframe-transport | |
| //= require jquery.fileupload | |
| //= require cloudinary/jquery.cloudinary | |
| //= require attachinary | |
| //= require attachments |