Thursday, June 30, 2016

5 Free Ways to Build Your Personal Brand on LinkedIn

ar-linkedin-personal-brand-600

Do you want to build your visibility on LinkedIn? Wondering which LinkedIn features can help? LinkedIn can help you build a professional presence that showcases your work to the people you most want to connect with. In this article, you’ll discover five free ways to help you build a personal brand on LinkedIn. #1: Optimize [...]

This post 5 Free Ways to Build Your Personal Brand on LinkedIn first appeared on .
- Your Guide to the Social Media Jungle


by Alexandra Rynne via

Item Reveal Animations with SVG

An experiment where grid items get revealed and unrevealed with animated, morphing SVG paths using anime.js.

The post Item Reveal Animations with SVG appeared first on jQuery Rain.


by Admin via jQuery Rain

Independence Day: My Street

Using cutting edge WebGL, combined with Google Street View API and some potentially alien interactive magic, we brought the excitement of a full scale alien invasion directly to our user’s doorsteps - literally.
by via Awwwards - Sites of the day

Wednesday, June 29, 2016

Responsive YouTube Player with Playlist : jQuery Plugin

Responsive YouTube Player with Playlist.Since Youtube API V3.0, it’s mandatory to create a YT API key in order to get the playlists contents programatically… there aren’t other ways to do this. The old XML Feed used in the V.01 of RYPP has been removed by Youtube and no longer exists.

The post Responsive YouTube Player with Playlist : jQuery Plugin appeared first on jQuery Rain.


by Admin via jQuery Rain

Developing a Content Marketing Strategy – How to Turn Engagement into ROI [INFOGRAPHIC]

Developing a Content Marketing Strategy – How to Turn Engagement into ROI

In the 21st century, we are bombarded with advertisements from all sides. This has made people go numb to the ads they see, the “recommendations” they hear and even the “studies” they read. Whenever they recognize sponsored content, people are bound to turn their heads, which means that most traditional digital marketing efforts often go to waste. This is where content marketing steps up big time. By providing your target audience with something they want to see and in a form that keeps them interested, you are managing to turn engagement into a serious ROI. Because of this, here are few tips and tricks on how to develop a solid content marketing strategy.

by Guest Author via Digital Information World

Elixir’s Ecto Querying DSL: Beyond the Basics

This article builds on the fundamentals of Ecto that I covered in Understanding Elixir’s Ecto Querying DSL: The Basics. I'll now explore Ecto's more advanced features, including query composition, joins and associations, SQL fragment injection, explicit casting, and dynamic field access.

Once again, a basic knowledge of Elixir is assumed, as well as the basics of Ecto, which I covered in An Introduction to Elixir’s Ecto Library.

Query Composition

Separate queries in Ecto can be combined together, allowing for reusable queries to be created.

For example, let's see how we can create three separate queries and combine them together to achieve DRYer and more reusable code:

SELECT id, username FROM users;
SELECT id, username FROM users WHERE username LIKE "%tp%";
SELECT id, username FROM users WHERE username LIKE "%tp%" LIMIT 10, 0;

offset = 0
username = "%tp%"

# Keywords query syntax
get_users_overview = from u in Ectoing.User,
  select: [u.id, u.username]

search_by_username = from u in get_users_overview,
  where: like(u.username, ^username)

paginate_query = from search_by_username,
  limit: 10,
  offset: ^offset

# Macro syntax
get_users_overview = (Ectoing.User
|> select([u], [u.id, u.username]))

search_by_username = (get_users_overview
|> where([u], like(u.username, ^username)))

paginate_query = (search_by_username
|> limit(10)
|> offset(^offset))

Ectoing.Repo.all paginate_query

The SQL version is quite repetitive, but the Ecto version on the other hand is quite DRY. The first query (get_users_overview) is just a generic query to retrieve basic user information. The second query (search_by_username) builds off the first by filtering usernames according to some username we are searching for. The third query (paginate_query) builds off of the second, where it limits the results and fetches them from a particular offset (to provide the basis for pagination).

It's not hard to imagine that all of the above three queries could be used together to provide search results for when a particular user is searched for. Each may also be used in conjunction with other queries to perform other application needs too, all without unnecessarily repeating parts of the query throughout the codebase.

Continue reading %Elixir’s Ecto Querying DSL: Beyond the Basics%


by Thomas Punt via SitePoint

Introduction to Developing jQuery Plugins

You've probably worked on interactive components before, like sliders, galleries or interactive forms. While you might be creating these on a site-by-site basis, one great time saver is to build your functionality as a jQuery plugin to speed up your development.

jQuery plugins let you define your functionality once and then drop it into your projects as needed, getting you up and running faster.

We're going to look at how to build your own jQuery plugin. We'll look at all the areas you need to know to get you up and running building plugins in no time.

We'll be using a plugin I've created called fancytoggle to showcase the different parts of a plugin. It's a simple plugin for toggling the visibility of nested elements, such as list items, to create accordion-style widgets for things like FAQs. The overall idea is about the concepts of plugins, but this example should help you see how it all works in practice.

See the Pen FancyToggle by SitePoint (@SitePoint) on CodePen.

A Plugin Approach: The Advantages

The core concept here is to create something extensible that you can add to your projects to give you quick functionality. jQuery's plugin functionality simplifies the process of building reusable code.

One of the strengths of these plugins is that they let the developer define several options that can be used to customize the functionality. You might create several options that change the way your plugin operates entirely, or you might just define a few to give the user a bit more control for styling or layout. With plugins, this choice will be up to you.

Developing jQuery Plugins

Let's run through the steps needed to register a new jQuery plugin. We'll use our example plugin, fancyToggle, so you can see how it's all put together.

Creating our function with $.fn

jQuery plugins work by registering a function with the name you want to call to trigger your plugin (for example, you call jQuery's inbuilt .width() or .height() functions when you want the width / height returned)

We attach our function to jQuery's $.fn object to make it available to the global $ object. This registers our function and lets it be called on objects or selections.

//registering our function
$.fn.fancytoggle = function(){
  // ...
};

That's all there is to it! You now have a new method you can call from jQuery's $ object. Right now, it won't do anything, but you can call this method wherever you like, for example on a selector:

//Call fancytoggle on this element
$('.my-element').fancytoggle(); 

You can register as many functions as you want with $.fn, however its good practice to avoid registering more than one function unless the plugin does distinctly different tasks.

Multiple collections and looping

An important thing to understand is that when your plugin is called it might be applying itself to either a single element or to several. For example with our plugin, if we are applying fancytoggle() to several different items we will have a collection to process within our function.

To process each element we just need to loop through the collection using jQuery's $.each function:

Continue reading %Introduction to Developing jQuery Plugins%


by Simon Codrington via SitePoint