Open terminal
'command + spacebar' search for "terminal"
vi kill_sophos
Copy text below, right-click on terminal window and select 'Paste':
#!/bin/bash
sudo rm -R /Library/Sophos\ Anti-Virus/
sudo rm -R /Library/Application\ Support/Sophos/
sudo rm -R /Library/Preferences/com.sophos.*
sudo rm /Library/LaunchDaemons/com.sophos.*
This file contains 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
1. Install groovysdk: | |
brew remove groovy | |
brew install groovysdk | |
2. Set GROOVY_HOME, otherwise Intellij reports as broken installation: | |
export GROOVY_HOME=/usr/local/opt/groovysdk/libexec | |
3. Point IntelliJ to the installed directory, e.g.: /usr/local/Cellar/groovysdk/2.5.7/libexec | |
This file contains 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
1. Basi | |
a. Clone/Commit/Push/Pull | |
b. Branch (local/remote/link) | |
c. Stash | |
d. Remotes | |
e. Merge | |
2. Avanzato | |
a. Merge squash | |
b. Rebase | |
c. Cherry-pick |
This file contains 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
{ | |
"name": "dwx-widget-chat", | |
"version": "8.0.1", | |
"authors": [ | |
"Objectway" | |
], | |
"ignore": [], | |
"dependencies": { | |
"ofsui": "^6.x", | |
"typedefinitions": "^4.x", |
This file contains 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
// main.ts | |
const debuggerOn = true; | |
Observable.prototype.debug = function(message: string) { | |
return this.do( | |
nextValue => { | |
if(debuggerOn) console.log(message, nextValue); | |
}, | |
error => { | |
if(debuggerOn) { |
This file contains 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
const path = require('path'); | |
const webpack = require("webpack"); | |
const CommonsChunkPlugin = require(path.resolve(__dirname, "node_modules/webpack/lib/optimize/CommonsChunkPlugin")); | |
module.exports = { | |
entry: { | |
'customer-application': './src/customer-application', | |
'dwx-widget-dev-menu': './src/app_components/dwx-widget-dev-menu/dwx-widget-dev-menu', | |
'dwx-widget-goal-dashboard-b': './src/app_components/dwx-widget-goal-dashboard-b/dwx-widget-goal-dashboard-b', | |
}, |
This file contains 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
whenReady = angular.module('whenReady', []) | |
# WHEN READY ALLOWS YOU TO FIRE AN EVENT FROM THE VIEW WHEN SOME DATA IS READY | |
# IT USES WATCHERS TO ACCOMPLISH THIS, THEN THE WATCHER IS DESTROYED | |
# ELEMENT USAGE: <whenready watch="user.id" do="callme()"> </whenready> # BE SURE U ADD COMPATIBILITY FOR IE | |
# ATTRIBUTE USAGE: <div whenready="user.id" whenready-do="callme()"> </div> | |
whenReady.directive('whenready', -> | |
restrict: "E" |
This file contains 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
$(document).ready( function() { | |
$("selector").click( function(e) { | |
e.preventDefault(); | |
window['optimizely'] = window['optimizely'] || []; | |
window.optimizely.push(["trackEvent", "custom_event_id"]); | |
alert("Hello there"); | |
}); | |
}); |
This file contains 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
# | |
# REWRITTEN NG-SUBMIT DIRECTIVE | |
# TO FIX THE SAFARI'S HTML5 'REQUIRED' TAG | |
# NON-TOLLERANCE | |
# | |
angular.module("powerhtml").directive("ngSubmit", -> | |
restrict: "A" | |
priority: 1 | |
link: (scope, elm, attrs) -> |