Skip to content

Instantly share code, notes, and snippets.

$(document).ready(function(){
$(".owl-carousel").owlCarousel(
{
loop:true,
nav:true,
margin: 25,
navText: ["<i class='ion ion-chevron-left'></i>", "<i class='ion ion-chevron-right'></i>"],
responsive:{
0:{
items:1
@WanderGink
WanderGink / index.html
Last active October 23, 2016 03:14
Promo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="ico/favicon.png">
<title>Jumbotron Template for Bootstrap</title>
<!-- Bootstrap core CSS -->
@WanderGink
WanderGink / google-img-resize.mdown
Created November 1, 2016 14:00
Google’s authentication-less on-the-fly image resizing service

Google's authentication-less on-the-fly image resizing service

I found it while poking around the Google+ HTML. Jotting down some notes felt like a good idea, so here goes. If you know more about this API, let me know, please!

(Word of warning: I spent ~30 minutes on both my experimentation and this here write-up, so it might not be the most thought-provoking, brilliant thing you read today.)

package library_tkxdpm18.library.controller;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.sql.Date;
import java.util.List;
import library_common.Constant;
import java.util.logging.Level;
package library_common;
/**
* @author Quan
*/
public class Constant {
public static final String ID_CARD = "id_card";
public static final String RELEASE_DATE = "ngayphathanh";
public static final String EXPIRED_DATE = "ngayhethan";
public static final String USER_ID = "userid";
package library_tkxdpm18.library.view;
import java.sql.SQLException;
import java.text.ParseException;
import java.util.Date;
import java.text.SimpleDateFormat;
import java.util.logging.Level;
import java.util.logging.Logger;
import library_tkxdpm18.library.controller.QueryBook;
@WanderGink
WanderGink / zsh.md
Created December 22, 2016 07:49 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu
@WanderGink
WanderGink / Rake Database.md
Created January 7, 2017 14:45 — forked from stevenyap/Rake Database.md
List of rake commands to manage database

Create database

rake db:create

Create database table

This will creates a migration file in /db/migrate without table definition.

rails g migration create_<TABLE>
@WanderGink
WanderGink / web-fonts-asset-pipeline.md
Created February 14, 2017 11:47 — forked from anotheruiguy/web-fonts-asset-pipeline.md
Custom Web Fonts and the Rails Asset Pipeline

Web fonts are pretty much all the rage. Using a CDN for font libraries, like TypeKit or Google Fonts, will be a great solution for many projects. For others, this is not an option. Especially when you are creating a custom icon library for your project.

Rails and the asset pipeline are great tools, but Rails has yet to get caught up in the custom web font craze.

As with all things Rails, there is more then one way to skin this cat. There is the recommended way, and then there are the other ways.

The recommended way

Here I will show how to update your Rails project so that you can use the asset pipeline appropriately and resource your files using the common Rails convention.