Skip to content

Instantly share code, notes, and snippets.

View dugajean's full-sized avatar

Dugi dugajean

View GitHub Profile
@dugajean
dugajean / gist:8077356
Last active January 1, 2016 02:09
Dropdown menu item
<script>
$(function(){
$(window).resize(function(){
if ($(window).width() < 768)
{
$('.account-li').text('').append('<span class="glyphicon glyphicon-cog"></span> Account');
}
else
{
$('.account-li').text('').append('<span class="glyphicon glyphicon-cog"></span>');
.navbar-default {
background-color: @dry-red;
background-image: -moz-linear-gradient(top, @dry-red, @mid-red);
background-image: -ms-linear-gradient(top, @dry-red, @mid-red);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@dry-red), to(@mid-red));
background-image: -webkit-linear-gradient(top, @dry-red, @mid-red);
background-image: -o-linear-gradient(top, @dry-red, @mid-red);
background-image: linear-gradient(top, @dry-red, @mid-red);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='@dry-red', endColorstr='@mid-red', GradientType=0);
[{"ID":"25550","DN":"1","DIN":"42","Clock":"2016-09-05 07:08:09","VerifyMode":"0","Action":"1","AttTypeId":"H01","CollectDate":"2016-09-05 07:30:43","JobCode":"0","Antipassback":"0","LastUpdatedUID":"0","LastUpdatedDate":"2016-09-05 07:30:43","Remark":""},{"ID":"25551","DN":"1","DIN":"42","Clock":"2016-09-05 07:28:49","VerifyMode":"0","Action":"1","AttTypeId":"H01","CollectDate":"2016-09-05 07:30:43","JobCode":"0","Antipassback":"0","LastUpdatedUID":"0","LastUpdatedDate":"2016-09-05 07:30:43","Remark":""},{"ID":"25552","DN":"2","DIN":"42","Clock":"2016-09-05 07:06:04","VerifyMode":"0","Action":"1","AttTypeId":"H01","CollectDate":"2016-09-05 07:30:45","JobCode":"0","Antipassback":"0","LastUpdatedUID":"0","LastUpdatedDate":"2016-09-05 07:30:45","Remark":""},{"ID":"25553","DN":"2","DIN":"42","Clock":"2016-09-05 07:15:27","VerifyMode":"0","Action":"1","AttTypeId":"H01","CollectDate":"2016-09-05 07:30:45","JobCode":"0","Antipassback":"0","LastUpdatedUID":"0","LastUpdatedDate":"2016-09-05 07:30:45","Remark":""},{
[{"UID":"11","DIN":"10","PIN":"10","UserName":"Dugi","Sex":"","Password":"","PasswordQuestion":"","PasswordAnswer":"","IsApproved":"1","IsLockedOut":"1","CreateDate":"2015-11-17 17:30:19","LastLoginDate":"2010-08-03 08:08:08","DeptId":"AA","AttId":"","RuleId":"R001","WeekendId":"W000","LastUpdatedUID":"0","LastUpdatedDate":"2016-04-16 12:45:14","Comment":""},{"UID":"19","DIN":"15","PIN":"15","UserName":"Sinan","Sex":"","Password":"","PasswordQuestion":"","PasswordAnswer":"","IsApproved":"1","IsLockedOut":"1","CreateDate":"2015-11-26 17:26:59","LastLoginDate":"2010-08-03 08:08:08","DeptId":"AA","AttId":"","RuleId":"R001","WeekendId":"W000","LastUpdatedUID":"0","LastUpdatedDate":"2016-04-16 12:45:22","Comment":""},{"UID":"17","DIN":"22","PIN":"22","UserName":"Soheil","Sex":"","Password":"","PasswordQuestion":"","PasswordAnswer":"","IsApproved":"1","IsLockedOut":"1","CreateDate":"2015-11-22 15:52:24","LastLoginDate":"2010-08-03 08:08:08","DeptId":"AA","AttId":"","RuleId":"R001","WeekendId":"W000","LastUpdatedUID
// Credits go to Jeffrey Way.
(function() {
var laravel = {
initialize: function() {
this.methodLinks = $('a[data-method]');
this.registerEvents();
},
@dugajean
dugajean / ApiRespond.php
Created November 15, 2016 14:26
Trait for easy creation of API responses
<?php
namespace App\Traits;
use Illuminate\Http\Request;
use Symfony\Component\HttpFoundation\Response as SymfonyResponse;
trait ApiRespond
{
/**
@dugajean
dugajean / install_oci8_ubuntu_16.04_php7.1.md
Created November 7, 2017 15:40 — forked from hewerthomn/install_oci8_ubuntu_16.04_php7.1.md
How to install OCI8 on Ubuntu 16.04 and PHP 7.1
@dugajean
dugajean / tags.json
Created June 13, 2019 08:46
Tags JSON
[{"id":"html","text":"html"},{"id":"php","text":"php"},{"id":"css","text":"css"},{"id":"python","text":"python"},{"id":"symfony","text":"symfony"},{"id":"ruby","text":"ruby"},{"id":"test","text":"test"}]
[Nest] 10664 - 08/04/2019, 02:34 [ExceptionHandler] No metadata for "Task" was found. +3ms
EntityMetadataNotFound: No metadata for "Task" was found.
at new EntityMetadataNotFoundError (C:\Users\John\Code\node\task-management\node_modules\typeorm\error\EntityMetadataNotFoundError.js:10:28)
at Connection.getMetadata (C:\Users\John\Code\node\task-management\node_modules\typeorm\connection\Connection.js:340:19)
at EntityManager.getCustomRepository (C:\Users\John\Code\node\task-management\node_modules\typeorm\entity-manager\EntityManager.js:597:84)
@dugajean
dugajean / introrx.md
Created August 8, 2019 09:41 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing