# frozen_string_literal: true
namespace :import do
desc 'import CSV'
task csv: :environment do
csv_file = File.join Rails.root, 'tmp/file.csv'
counter = 0
options = {
This file contains hidden or 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
| export function brainstore() { | |
| let store = {} | |
| let listeners = [] | |
| let ownProp = Object.prototype.hasOwnProperty | |
| let allowed = { | |
| string: 1, | |
| number: 1, | |
| boolean: 1, | |
| object: 1, | |
| function: 0, |
This file contains hidden or 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
| Sandbox.modules = {} | |
| Sandbox.modules.vnode = function(s) { | |
| s.vnode = {} | |
| } | |
| Sandbox.modules.createElement = function(s) { | |
| s.createElement = function() {} | |
| } |
This file contains hidden or 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
| # ... | |
| activate :external_pipeline, | |
| name: :webpack, | |
| command: build? ? "npm run build:assets" : "npm run start:assets", | |
| source: ".tmp/webpack_output", | |
| latency: 1 | |
| # ... |
for file in app/views/**/*.html.erb; do html2haml -e $file ${file%erb}haml && rm $file; doneexport const getNotifications = async (title) => {
let ASYNC_TIMEOUT = 10000 // 10s
let didTimeout = false
let notifications = []
const workerDelayedPromise = () => {
return new Promise(async (resolve, reject) => {
// timeout in order to send reject if delayedgit fetch origin master
git checkout master
git merge origin/master
git checkout MY_BRANCH
git rebase master
git push -f origin HEAD
This file contains hidden or 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
| { | |
| "ruby.rubocop.executePath": "/Users/thadeu/.rbenv/shims/", | |
| "csscomb.formatOnSave": true, | |
| "csscomb.preset": "zen", | |
| "csscomb.preset": { | |
| "sort-order": [ | |
| ["$variable"], | |
| ["$include"] | |
| ], | |
| "sort-order-fallback": "abc", |