- new ember app &
yarn install
ember install ember-cli-eslint@4
// ember-cli-build.js
let app = new EmberApp(defaults, {
eslint: {
testGenerator: 'qunit',
group: true,
rulesDir: 'eslint-rules',
extensions: ['js'],
// NOTE: this Ember app is presented in a similar way to the Vue app below to aid comparison. | |
// The actual app can be found here: https://github.com/GavinJoyce/tailwind-select-spike | |
import Component from "@glimmer/component"; | |
import { tracked } from "@glimmer/tracking"; | |
import { action } from "@ember/object"; | |
import { guidFor } from "@ember/object/internals"; | |
import { debounce } from "@ember/runloop"; | |
function isString(value) { |
class ApplicationRoute extends Route { | |
myAction() { | |
// do some fancy stuff here | |
} | |
setupController(controller, model) { | |
super.setupController(controller, model); | |
// Instead of setting on the controller, you can also inject | |
// a service into this route and set the action there. |
//app/components/marcas/marcas-form.js | |
import Component from '@ember/component'; | |
export default Component.extend({ | |
//https://guides.emberjs.com/v3.3.0/components/triggering-changes-with-actions/ | |
//https://github.com/ember-cli/eslint-plugin-ember/blob/master/docs/rules/closure-actions.md | |
// Noop, needs to be overriden | |
onSave() {}, | |
.sidebar { | |
/* Select smaller of the 2 calculated values | |
Narrower screens: 20vw, Wider screens: 300px */ | |
width: min(20vw, 300px); | |
} | |
.make-the-logo-bigger { | |
/* Select larger of the 2 calculated values | |
Basically clamps the font size to 60px or larger (10vw) */ | |
font-size: max(60px, 10vw); |
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | |
/* | |
* From https://gist.github.com/BenoitAverty/af633ee20e27f48f9ba7178451432206 | |
*/ | |
#tabbrowser-tabs, #tabbrowser-tabs > .tabbrowser-arrowscrollbox { | |
min-height: 0 !important; | |
} |
yarn install
ember install ember-cli-eslint@4
// ember-cli-build.js
let app = new EmberApp(defaults, {
eslint: {
testGenerator: 'qunit',
group: true,
rulesDir: 'eslint-rules',
extensions: ['js'],
#https://about.gitlab.com/update/ | |
#cd /home/git/gitlab | |
bundle install --without production | |
bundle install | |
# Somente versoes mais recentes | |
#sudo gitlab-ctl stop unicorn | |
#sudo gitlab-ctl stop sidekiq | |
#sudo gitlab-ctl stop nginx |
Date: 2017-04-23
Title: Flash and LSO cookies
Author: Nathanaël Naeri <nathanael-naeri/at/users.noreply.github.com>
Valid for: Ubuntu 14.04+
Valid for: NPAPI and PPAPI Flash Player (plugins) 25.0
Valid for: Fresh Player Plugin (wrapper) 0.3.6
# As root: sudo su - | |
sudo dd if=/dev/zero of=/swapfile1 bs=10240 count=524288 | |
chown root:root /swapfile1 | |
mkswap /swapfile1 | |
swapon /swapfile1 | |
# vi /etc/fstab | |
# Add: | |
# /swapfile1 none swap sw 0 0 |
#!/bin/bash | |
# | |
# Updated 2018-02-20 | |
# If "apt" not exist try "apt-get", because older versions not support "apt" | |
# | |
# Preparation, solve problems | |
sudo w ; \ | |
sudo killall -9 dpkg ; \ | |
# | |
sudo echo 'Acquire::ForceIPv4 "true";' | sudo tee /etc/apt/apt.conf.d/99force-ipv4 ; \ |