This file contains hidden or 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
| /** | |
| * Search into object where for value what | |
| * | |
| * @param {Object} where | |
| * @param {String|Regexp} what | |
| * | |
| * @return display matching keys | |
| * | |
| * Sample: | |
| * include('deepSearch'); |
This file contains hidden or 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
| config interface 'loopback' | |
| option ifname 'lo' | |
| option proto 'static' | |
| option ipaddr '127.0.0.1' | |
| option netmask '255.0.0.0' | |
| config globals 'globals' | |
| option ula_prefix 'fdxx:xxxx:xxxx::/48' | |
| config interface 'lan' |
This file contains hidden or 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
| var _ = require('lodash'); | |
| /** | |
| * `isValidationError` | |
| * | |
| * Is this a waterline validation error? | |
| */ | |
| function isWaterlineValidationError (err) { | |
| if (_.isPlainObject(err)) { |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
- Install USB device support;
opkg install kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-storage e2fsprogs fdisk usbutils mount-utils block-mount kmod-fs-ext4 kmod-fs-vfat kmod-nls-utf-8 kmod-nls-cp437 kmod-nls-iso8859-1
reboot- Install
blkid, runopkg update && opkg install blkid; - Copy
block.shto directory/lib/functions; - Copy
10-mountand20-swapto directory/etc/hotplug.d/block; - That's it! run
logread -fcommand then plug in a USB stick to test.
This file contains hidden or 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
| The MIT License (MIT) | |
| Copyright (c) 2014 Tomas Kafka | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
This post described how to create an application with mithril 0.2.x. Now that ver 1.0 is out, some things are a little differnent.
The example is updated with the current version of mithril, though.
This file contains hidden or 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
| // IE polyfills needed by mithril for IE8 and below | |
| // array.indexOf - https://gist.github.com/revolunet/1908355 | |
| if (!Array.prototype.indexOf) | |
| { | |
| Array.prototype.indexOf = function(elt /*, from*/) | |
| { | |
| var len = this.length >>> 0; | |
| var from = Number(arguments[1]) || 0; | |
| from = (from < 0) |
OlderNewer

