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
#!/usr/bin/env python | |
# | |
# No Rights Reserved | |
# http://creativecommons.org/publicdomain/zero/1.0/ | |
"""Build Bootstrap from SCSS sources with Python | |
Install Bootstrap:: | |
bower install bootstrap |
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
#!/bin/bash | |
# | |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | |
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | |
# IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES | |
# OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | |
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | |
# OTHER DEALINGS IN THE SOFTWARE. | |
# |
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
# Nginx initial proxy config for Pgweb | |
server { | |
listen 80; | |
client_max_body_size 8m; | |
server_name pgweb.domain.com; | |
keepalive_timeout 5; | |
root /var/www/pgweb; |
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
#!/usr/bin/env python | |
# | |
# No Rights Reserved | |
# http://creativecommons.org/publicdomain/zero/1.0/ | |
"""Git post-receive hook script | |
Suggested project structure:: | |
/home/$_USER/ | |
env/ |
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
/*! | |
jQuery plugin for "smart" links like back button etc. | |
Example: | |
// Handle elements with `data-href` as links | |
$('[data-href]').smartLinks('href'); | |
// Handle elements with `data-back` as back button | |
$('[data-back]').smartLinks('back'); |
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
/*! | |
Stream signle file upload with PUT octet-stream request. | |
(c) 2015 Alexey Kinev <[email protected]> | |
The MIT License, https://opensource.org/licenses/MIT | |
*/ | |
(function ( $ ) { | |
$.fn.putUpload = function( opts ) { | |
var el = $( this ); |
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
/*! | |
Classify plugin for binding elements to objects or functions ('classes') | |
and events to 'methods'. | |
Example: | |
var Navbar = { | |
signIn: function(evt, target) { ... }, | |
signUp: function(evt, target) { ... }, | |
}; |
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
// NoEmptyRowsTableViewRenderer.cs | |
// | |
// No Rights Reserved | |
// http://creativecommons.org/publicdomain/zero/1.0/ | |
// | |
// Assume you have `MyProject.MyTableView` sublass of | |
// `Xamarin.Forms.TableView` and want to hide extra | |
// empty rows at the bottom. All you need on iOS is to set | |
// `TableFooterView` to empty `UIView` in custom renderer. | |
// |
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
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.example.hellofire"> | |
<!-- the android:debuggable="true" attribute is overwritten by the compiler when the debug info option is set --> | |
<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" /> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<application | |
android:label="@string/app_name" | |
android:icon="@drawable/icon" | |
android:debuggable="true"> |