Skip to content

Instantly share code, notes, and snippets.

/**** global css ****/
body{font-family:Arial, Helvetica, sans-serif;}
a {text-decoration:none; color:#5fa6d8;}
a:hover{color:#84ddf2;}
p{line-height:1.45em;}
.left{float: left;}
.right{float: right;}
@dinhnguyen
dinhnguyen / gist:035b7f07304b69125db5
Created July 30, 2015 01:57
Fixing xcrun: error: invalid active developer path (/usr/bin), missing xcrun at: /usr/bin/usr/bin/xcrun in OSX 10.9 Mavericks
Fixing xcrun: error: invalid active developer path (/usr/bin), missing xcrun at: /usr/bin/usr/bin/xcrun in OSX 10.9 Mavericks
When using git for the first time in OSX Mavericks you may run into a problem where you get the following error:
xcrun: error: invalid active developer path (/usr/bin), missing xcrun at: /usr/bin/usr/bin/xcrun
This error indicates can be fixed by running the following commands:
sudo xcode-select --install
@dinhnguyen
dinhnguyen / xxx
Created September 14, 2015 03:06
xxx
{% include 'breadcrumb' %}
<div itemscope itemtype="http://schema.org/Product">
<meta itemprop="url" content="{{ shop.url }}{{ product.url }}">
<meta itemprop="image" content="{{ product.featured_image.src | product_img_url: 'grande' }}">
<meta itemprop="shop-currency" content="{{ shop.currency }}">
<section class="main-container col1-layout">
<div class="main container">
<div class="col-main">
<div class="row">
<div class="product-view">
{% include 'breadcrumb' %}
<div itemscope itemtype="http://schema.org/Product">
<meta itemprop="url" content="{{ shop.url }}{{ product.url }}">
<meta itemprop="image" content="{{ product.featured_image.src | product_img_url: 'grande' }}">
<meta itemprop="shop-currency" content="{{ shop.currency }}">
<section class="main-container col1-layout">
<div class="main container">
<div class="col-main">
<div class="row">
<div class="product-view">
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
{% if settings.enable_favicon %}
<link rel="shortcut icon" href="{{ 'favicon.png' | asset_url }}" type="image/png">
{% endif %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
{% if settings.enable_favicon %}
<link rel="shortcut icon" href="{{ 'favicon.png' | asset_url }}" type="image/png">
{% endif %}
<meta property="og:url" content="{{ canonical_url }}">
<meta property="og:site_name" content="{{ store.name }}">
{% if template contains 'product' %}
<meta property="og:type" content="product">
<meta property="og:title" content="{{ product.name | strip_html }}">
{% for image in product.images limit:1 %}
<meta property="og:image" content="http:{{ image.src | img_url: 'grande' }}">
<meta property="og:image:secure_url" content="https:{{ image.src | img_url: 'grande' }}">
{% endfor %}
<meta property="og:price:amount" content="{{ product.price | money_without_currency }}">
<meta property="og:url" content="{{ canonical_url }}">
<meta property="og:site_name" content="{{ store.name }}">
{% if template contains 'product' %}
<meta property="og:type" content="product">
<meta property="og:title" content="{{ product.name | strip_html }}">
{% for image in product.images limit:1 %}
<meta property="og:image" content="http:{{ image.src | img_url: 'grande' }}">
<meta property="og:image:secure_url" content="https:{{ image.src | img_url: 'grande' }}">
{% endfor %}
<meta property="og:price:amount" content="{{ product.price | money_without_currency }}">
<ul id="products">
{% for product in products %}
<li>
<h2>{{ product.name }}</h2>
Chỉ từ {{ product.price | money }}
<p>{{ product.description | truncatewords: 200 }}</p>
</li>
{% endfor %}
</ul>
DO
$do$
DECLARE startValue integer := 41;
DECLARE endValue integer := 60;
DECLARE counter integer;
DECLARE prefix text = 'bonotox';
BEGIN
counter := startValue;
LOOP exit when counter > endValue;
insert into hq_user(id, username, email, fullname, password, created_by, created_at)