Skip to content

Instantly share code, notes, and snippets.

View blackfyre's full-sized avatar
🏠
Working from home

Miklós Galicz blackfyre

🏠
Working from home
View GitHub Profile
@blackfyre
blackfyre / swal-angular-example.js
Last active January 12, 2016 08:23
sweetAlert Angular.js service example
/* Create the sweetAlert Service singleton */
function sweetAlertService() {
this.success = function(title, message) {
swal(title, message,'success');
};
this.error = function(title, message) {
swal(title, message,'error');
};
@blackfyre
blackfyre / intervalManager.js
Created May 23, 2014 11:28
An interval manager for javascript
/**
* Original by Zirak @ http://stackoverflow.com/a/8636050/1012431
*
* Had some issues with the clear function
*
* @type {{intervals: Array, make: make, clear: clear, clearAll: clearAll}}
*/
var interval = {
//to keep a reference to all the intervals
intervals : [],
@blackfyre
blackfyre / bootTable.php
Created April 29, 2014 19:05
Bootstrap Table generation from PHP
<?php
class bootTable {
/**
* @param array $attributes
* @return null|string
*/
static function parseAttributes($attributes = array())
{
@blackfyre
blackfyre / Font Awesome 4 icons
Created January 20, 2014 15:13
This is a php array of all the icons found in Font Awesome 4.0.3
<?php
$icon[] = 'fa-glass';
$icon[] = 'fa-music';
$icon[] = 'fa-search';
$icon[] = 'fa-envelope-o';
$icon[] = 'fa-heart';
$icon[] = 'fa-star';
$icon[] = 'fa-star-o';
$icon[] = 'fa-user';
@blackfyre
blackfyre / bootstrap-media-queries.css
Created November 29, 2013 09:56
Media queries made by Twitter Bootstrap 3
@media(max-width:767px){}
@media(min-width:768px){}
@media(min-width:992px){}
@media(min-width:1200px){}
@blackfyre
blackfyre / bootstrap-vertical-carousel.css
Last active December 29, 2015 17:19
A vertical carousel modifcation for Twitter Bootstrap 3
@blackfyre
blackfyre / placeholder.js
Created July 17, 2012 13:04 — forked from pjeweb/jQuery HTML5 placeholder fix.js
jQuery HTML5 placeholder fix with compability check
// Released under MIT license: http://www.opensource.org/licenses/mit-license.php
placeholderSupport = ("placeholder" in document.createElement("input"));
if (!placeholderSupport) {
(function ($) {
'use strict';
$(function () {
$('[placeholder]')