This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "lcd.h" | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <linux/i2c-dev.h> | |
#include <sys/ioctl.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Check whether we are in browser or node.js | |
var _self = (typeof window !== 'undefined') ? window : {}; | |
// Scoping with anonymous closure for browser | |
var Foo = (function(){ | |
var _ = _self.Foo = { | |
init: function() { | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"startUrl": "https://del.icio.us/<your username>?&page=[1-100]", | |
"selectors": [{ | |
"parentSelectors": ["_root"], | |
"type": "SelectorElement", | |
"multiple": true, | |
"id": "bookmark", | |
"selector": "div.articleThumbBlockOuter", | |
"delay": "" | |
}, { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.2 | |
Flickable { | |
id: flickable | |
anchors.fill: parent | |
contentWidth: flickable.width * 2 | |
contentHeight: 0 | |
boundsBehavior: Flickable.StopAtBounds | |
flickableDirection: Flickable.HorizontalFlick | |
onMovementEnded: snapPage(this) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<style-scheme version="1.0" name="Monokai"> | |
<style name="Text" foreground="#f8f8f2" background="#272822"/> | |
<style name="Link" foreground="#0055ff"/> | |
<style name="Selection" foreground="#f8f8f2" background="#49483e"/> | |
<style name="LineNumber" foreground="#888888" background="#232323"/> | |
<style name="SearchResult" foreground="#000000" background="#ffe792"/> | |
<style name="SearchScope" background="#222200"/> | |
<style name="Parentheses" foreground="#ff5555" background="#333333"/> | |
<style name="CurrentLine"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
remove Lock = Caps_Lock | |
keysym Caps_Lock = Escape |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This function generates a password salt as a string of x characters | |
* ranging from a-zA-Z0-9. | |
* | |
* @param $max integer The number of characters in the string | |
* @author AfroSoft <[email protected]> | |
*/ | |
function generate_salt($max = 40) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function filterSign($var) | |
{ | |
return strlen($var) < 2 ? false : true; | |
} | |
function getCombinations($values) | |
{ | |
$perms = array(null); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* UUID class | |
* | |
* The following class generates VALID RFC 4122 COMPLIANT | |
* Universally Unique IDentifiers (UUID) version 3, 4 and 5. | |
* | |
* UUIDs generated validates using OSSP UUID Tool, and output | |
* for named-based UUIDs are exactly the same. This is a pure | |
* PHP implementation. |
NewerOlder