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 / 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]')
@blackfyre
blackfyre / bootstrap-vertical-carousel.css
Last active December 29, 2015 17:19
A vertical carousel modifcation for Twitter Bootstrap 3
@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 / 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 / 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 / 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 / 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 / README.md
Last active August 29, 2015 14:15 — forked from denji/README.md
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include "DHT.h"
#include <ArduinoJson.h>
#define MQTT_VERSION MQTT_VERSION_3_1_1
// Wifi: SSID and password
const char* WIFI_SSID = "____________";
const char* WIFI_PASSWORD = "____________";
@blackfyre
blackfyre / tool.js
Created November 12, 2018 14:42
Vuex for Laravel Nova Tools
import Vue from 'vue';
import Vuex from 'vuex';
import state from './store/state.js';
import actions from './store/actions.js';
import getters from './store/getters.js';
import mutations from './store/mutations.js';
Vue.use(Vuex);
Nova.booting((Vue, router) => {