Skip to content

Instantly share code, notes, and snippets.

View umefarooq's full-sized avatar
🎯
Focusing

Umer Farooq umefarooq

🎯
Focusing
View GitHub Profile
cordova plugin add https://github.com/brodysoft/Cordova-SQLitePlugin.git
@asika32764
asika32764 / mysql-rand-between-two-values.sql
Created August 16, 2014 07:41
Mysql Rand() between 2 values
ROUND((RAND() * (max-min))+min)
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
* An open source application development framework
*
* @package CodeIgniter * @author Rick Ellis
* @copyright Copyright (c) 2006, EllisLab, Inc.
* @license http://www.codeignitor.com/user_guide/license.html
* @link http://www.codeigniter.com * @since Version 1.0
*/
@malixsys
malixsys / app.scss
Last active July 11, 2016 07:42
ionic framework validation
form i.icon.error {
color: $assertive;
}
form input + i.icon.error {
display: none;
margin-left: 8px;
}
form.ng-submitted input.ng-invalid + i.icon.error {
@JeffreyWay
JeffreyWay / laravel.js
Last active April 6, 2024 20:12
Want to send a DELETE request when outside of a form? This will handle the form-creation bits for you dynamically, similar to the Rails implementation. (Requires jQuery, but doesn't have to.) To use, import script, and create a link with the `data-method="DELETE"` attribute.
/*
<a href="posts/2" data-method="delete"> <---- We want to send an HTTP DELETE request
- Or, request confirmation in the process -
<a href="posts/2" data-method="delete" data-confirm="Are you sure?">
*/
(function() {
@ocean90
ocean90 / box-shadow.html
Last active April 11, 2024 13:54
CSS3 Box Shadow, only top/right/bottom/left and all
<!DOCTYPE html>
<html>
<head>
<title>Box Shadow</title>
<style>
.box {
height: 150px;
width: 300px;
margin: 20px;
@minipai
minipai / Less Grid.less
Created December 24, 2010 06:08
960 style grid in LESS
@grid_width: 60px;
@grid_num: 12;
@gutter: 10px;
@total_width: (@grid_width + @gutter * 2) * @grid_num;
.grid_width (@grid_num: 1) {
width: (@grid_width + @gutter * 2) * @grid_num - @gutter * 2;
}