Skip to content

Instantly share code, notes, and snippets.

View FLasH3r's full-sized avatar
💡
converting ideas to code

Roni Nes FLasH3r

💡
converting ideas to code
View GitHub Profile
@colmdoyle
colmdoyle / gist:3709424
Created September 12, 2012 19:48
FB Notifications API call
https://graph.facebook.com/<user_id>/notifications?href=/some_url.php&template=testing&access_token=<app_access_token>&method=POST
@dciccale
dciccale / README.md
Last active December 16, 2015 06:49
Cross-browser addEvent function done with 81 bytes of JavaScript

addEvent

Cross-browser function to add events on DOM elements.

@RubaXa
RubaXa / jquery.event.scroll.js
Last active December 17, 2015 06:58
jQuery extension, add support `scrollstart` and `scrollend` events.
/**
* jQuery extension, add support `scrollstart` and `scrollend` events.
*
* @author RubaXa <trash@rubaxa.org>
* @github https://gist.github.com/RubaXa/5568964
* @license MIT
*
*
* @settings
* $.special.scrollend.delay = 300; // default ms
@eklimcz-zz
eklimcz-zz / touchEventWireup
Created September 25, 2012 16:52
Cross browser touch event wireup
function inferInputModel() {
if (window.navigator.msPointerEnabled) {
return 'pointer';
} else if (window.ontouchstart !== undefined) {
return 'touch';
} else {
return 'unknown';
}
}
@CodeMyUI
CodeMyUI / index.html
Created March 17, 2017 01:15
Proof of Concept Grid/List Surveys
<span class="toggler active" data-toggle="grid"><span class="entypo-layout"></span></span>
<span class="toggler" data-toggle="list"><span class="entypo-list"></span></span>
<ul class="surveys grid">
<li class="survey-item">
<span class="survey-country list-only">
UK
</span>
@CodeMyUI
CodeMyUI / index.html
Created March 21, 2017 04:32
SVG Icon - Scale on Hover Buttons
<div id="btns">
<div class="btn" onclick="window.location='#'">
<svg class="icon">
<use xlink:href="#helmet"></use>&nbsp;</svg>
<h2>Heading</h2>
<p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</p>
</div>
<div class="btn" onclick="window.location='#'">
<svg class="icon">
<use xlink:href="#cutters"></use>&nbsp;</svg>
@dciccale
dciccale / README.md
Last active May 22, 2018 09:14
Cross-browser triggerEvent function done with 127 bytes of JavaScript

triggerEvent

Cross-browser function to trigger DOM events.

@CodeMyUI
CodeMyUI / index.html
Created May 27, 2017 10:49
Menu App Interface
<!-- Menu App Interface
<!-- Based on a Dribbble shot
<!-- that caught my eye
<!-- http://drbl.in/pWyx
<!-- ---------------------------------- -->
<div class="paper preview-1">
<div class="box">
<div class="bar">
<div class="menu">
@CodeMyUI
CodeMyUI / index.html
Last active September 20, 2019 19:01
Split Showcase
<figure id="showcase">
<section></section>
<section></section>
<section></section>
<section></section>
</figure>
@ktomk
ktomk / valid_utf8_bytes.php
Created October 4, 2011 19:10
filter valid utf-8 byte sequences
<?php
/**
* filter valid utf-8 byte sequences
*
* take over all valid bytes, drop an invalid sequence until first
* non-matching byte, start over at that byte.
*
* @param string $str
* @return string
*/