https://ti.to/event-loop/cascadiajs-2019/discount/FREECODECAMP
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
Chaitra: Hello! Welcome to Adobe Customer Service. | |
Me: Hello | |
Chaitra: Hi Devon | |
Chaitra: I understand that you wish to cancel your subscription, let me help you with that. | |
Chaitra: May I know the reason for cancellation please? | |
Me: I'm not using the software enough to justify the cost. | |
Chaitra: Thank you for the information. | |
Me: No problem! | |
Chaitra: I have checked and see that you have Creative Cloud membership (one-year) subscription, which was purchased on 18 Jun 2013. | |
Chaitra: Before you decide to cancel your subscription, let me give you an offer. |
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
(function ($) { | |
var _original = $.fn.modal.Constructor.prototype.show; | |
function trigger(target, name, relatedTarget) { | |
target.trigger($.Event(name, { relatedTarget: relatedTarget })); | |
} | |
$.extend($.fn.modal.Constructor.prototype, { | |
show: function (_relatedTarget) { | |
var thisModal = this; |
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
function vimp() { | |
changed=false | |
for plugin | |
do | |
if grep -q "$plugin" ~/.vimrc.bundles* | |
then | |
echo "$plugin already installed" | |
else | |
echo "Adding $plugin to bundles config" | |
echo Bundle \"$plugin\" >> ~/.vimrc.bundles.local |
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
var gulp = require('gulp'); | |
// Using this plugin, you won't manually have to require each plugin you add. This does the work for you. | |
// Just remember you'll have to prepend 'plugins' to your plugin function when you build your tasks. | |
var gulpLoadPlugins = require('gulp-load-plugins'); | |
// Turn lazy loading of plugins off to make the connect plugin work | |
var plugins = gulpLoadPlugins({lazy: false}); | |
// Check out the autoprefixer docs to see how to build settings for gulp-autoprefixer | |
// https://github.com/ai/autoprefixer | |
var prefixerSetting = ['last 1 versions', '> 1%']; |
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
// Opens accordion automatically if an accordion target is accessed from another page | |
// Assumes the accordion-group is the target linked to | |
function openAnchorAccordion() { | |
if (window.location.hash) { | |
var $target = $('body').find(window.location.hash); | |
if ($target.hasClass('accordion-group')) { | |
var $targetAccordion = $target.find('.collapse'); | |
$targetAccordion.collapse('show'); | |
} | |
} |
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
// Creates an attribute pseudo-selector allowing for wildcards | |
jQuery.expr.pseudos.attr = $.expr.createPseudo(function(arg) { | |
var regexp = new RegExp(arg); | |
return function(elem) { | |
for(var i = 0; i < elem.attributes.length; i++) { | |
var attr = elem.attributes[i]; | |
if(regexp.test(attr.name)) { | |
return true; | |
} | |
} |
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
function mcd() { | |
mkdir "$@" && cd "$@" | |
} |
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
RECEIPT_FILE=/var/db/receipts/com.apple.pkg.DeveloperToolsCLI.bom | |
RECEIPT_PLIST=/var/db/receipts/com.apple.pkg.DeveloperToolsCLI.plist | |
if [ ! -f "$RECEIPT_FILE" ] | |
then | |
echo "Command Line Tools not installed." | |
exit 1 | |
fi | |
echo "Command Line Tools installed, removing ..." |
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
require 'net/http' | |
require 'uri' | |
require 'xmlsimple' | |
require 'json' | |
require 'pry' | |
def get_rss(url) | |
# Fetches an RSS feed from the URL | |
# Returns it as a Ruby object | |
uri = URI.parse(url) |
NewerOlder