Skip to content

Instantly share code, notes, and snippets.

@amrvignesh
amrvignesh / designer.html
Created January 15, 2015 17:31
designer
<link rel="import" href="../topeka-elements/category-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
Responsive Youtube Video Player
http://vignesh.tk

TryStack in 8 Simple Steps

  1. Head over to trystack.org then join the facebook group to get your invite.
  2. When you get the (Somebody) approved your request to join the group TryStack notification, go login to trystack (click login using facebook and approve with facebook).
  3. Click the Security Groups tab, click Edit Rules, and add a couple rules:
    1. imcp, from port: -1, to port: -1, cidr: 0.0.0.0/0
    2. tcp, from port: 22, to port: 22, cidr: your.ip.address.here/32
  4. Click the Keypairs tab, then click Add New Keypair, name it trystack. A file will download to your computer.
  5. Click the Images tab, then click Launch next to one of the images. Fill out the form and make sure to select trystack as your Key Name and include default in the Security Groups. Click launch instance. Note the IP address you are assigned.
@amrvignesh
amrvignesh / List all members
Created August 7, 2012 11:28
The Members Loop / bp_has_members()
<?php if ( bp_has_members() ) : ?>
<div class="pagination">
<div class="pag-count" id="member-dir-count">
<?php bp_members_pagination_count() ?>
</div>
<div class="pagination-links" id="member-dir-pag">
<?php bp_members_pagination_links() ?>