We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
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
| mr Marathi | |
| bs Bosnian | |
| ee_TG Ewe (Togo) | |
| ms Malay | |
| kam_KE Kamba (Kenya) | |
| mt Maltese | |
| ha Hausa | |
| es_HN Spanish (Honduras) | |
| ml_IN Malayalam (India) | |
| ro_MD Romanian (Moldova) |
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
| //returns an assoc array with bitRate (kbps) and sampleRate (hz) | |
| function getMP3BitRateSampleRate($filename) | |
| { | |
| if (!file_exists($filename)) { | |
| return false; | |
| } | |
| $bitRates = array( | |
| array(0,0,0,0,0), | |
| array(32,32,32,32,8), |
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
| (function ($) { | |
| /* Twitter Bootstrap Message Helper | |
| ** Usage: Just select an element with `alert` class and then pass this object for options. | |
| ** Example: $("#messagebox").message({text: "Hello world!", type: "error"}); | |
| ** Author: Afshin Mehrabani <[email protected]> | |
| ** Date: Monday, 08 October 2012 | |
| */ | |
| $.fn.message = function(options) { | |
| //remove all previous bootstrap alert box classes | |
| this[0].className = this[0].className.replace(/alert-(success|error|warning|info)/g , ''); |
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
| $ redis-cli | |
| > config set stop-writes-on-bgsave-error no |
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
| /** | |
| * Several macros simplifying use of weak references to self inside blocks | |
| * which goal is to reduce risk of retain cycles. | |
| * | |
| * Example: | |
| * @code | |
| @interface Example : NSObject{ | |
| int _i; | |
| } |
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
| // Needed in AndroidManifest: | |
| <!-- Permission for using NFC hardware --> | |
| <uses-permission android:name="android.permission.NFC"/> | |
| <!-- Forcing device to have NFC hardware --> | |
| <uses-feature android:name="android.hardware.nfc" android:required="true"/> | |
| <!-- Registering app for receiving NFC's TAG_DISCOVERED intent --> | |
| <intent-filter> | |
| <action android:name="android.nfc.action.TAG_DISCOVERED"/> | |
| <category android:name="android.intent.category.DEFAULT"/> | |
| </intent-filter> |
This gist outlines how to resize a view when a keyboard appears using Auto Layout (there are a bunch of code samples out there that manually adjust the view's frame, but that's just so 2013). The method I outline below works universally on both iPhone and iPad, portrait and landscape, and is pretty darn simple.
The first thing to do is to define our containing view controller, the view, and the bottom constraint that we'll use to adjust its size.
Here's HeightAdjustingViewController.h. We don't need to expose any public properties, so it's pretty bare.
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
| // default exports | |
| export default 42; | |
| export default {}; | |
| export default []; | |
| export default foo; | |
| export default function () {} | |
| export default class {} | |
| export default function foo () {} | |
| export default class foo {} |
OlderNewer

