Material Design (CSS-based) - Tiles ('-' * 36) Based on: Material Design by Google (http://www.google.com/design/)
Material Design Animation Timing (http://codepen.io/zavoloklom/details/Jbrho/)
A Pen by Sergey Kupletsky on CodePen.
| # Alias `rails` to `bin/rails` only inside a Rails directory | |
| rails() { | |
| if [ -n "$(find . -maxdepth 1 -name bin -type d -exec test -e '{}/rails' ';' -print -quit)" ] && [ -e Gemfile ]; then | |
| bin/rails "$@" | |
| else | |
| command rails "$@" | |
| fi | |
| } |
| table.processedcode, #sbo-rt-content .codeline, #sbo-rt-content .codeinfo { | |
| font-family: Iosevka, 'Ubuntu Mono', monospace !important; | |
| letter-spacing: 0.2px; | |
| } | |
| .scalefonts #sbo-rt-content td { | |
| font-size: 17px !important; | |
| } | |
| #sbo-rt-content .string { | |
| font-style: normal; | |
| } |
| /* Material Design Adaptive Breakpoints */ | |
| /* | |
| Below you'll find CSS media queries based on the breakpoint guidance | |
| published by the Material Design team. You can choose to use, customise | |
| or remove these breakpoints based on your needs. | |
| http://www.google.com/design/spec/layout/adaptive-ui.html#adaptive-ui-breakpoints | |
| */ | |
| /* mobile-small */ |
| // Get the active Media Query as defined in the CSS | |
| // Use the following format: | |
| // #getActiveMQ-watcher { font-family: "default"; } | |
| // @media only screen and (min-width:20em){ #getActiveMQ-watcher { font-family: "small"; } } | |
| // etc. | |
| window.getActiveMQ = function() { | |
| // Build the watcher | |
| var $watcher = document.createElement('div'), | |
| // alias getComputedStyle | |
| computed = window.getComputedStyle, |
| { | |
| "auto_complete_commit_on_tab": true, | |
| "bold_folder_labels": true, | |
| "caret_extra_bottom": 3, | |
| "caret_extra_top": 3, | |
| "caret_extra_width": 1, | |
| "caret_style": "phase", | |
| "color_scheme": "Packages/Base16 Color Schemes/Themes/base16-google-light.tmTheme", | |
| "font_size": 14, | |
| "gutter": true, |
| [ | |
| { | |
| "keys": ["tab"], | |
| "command": "expand_abbreviation_by_tab", | |
| // put comma-separated syntax selectors for which | |
| // you want to expandEmmet abbreviations into "operand" key | |
| // instead of SCOPE_SELECTOR. | |
| // Examples: source.js, text.html - source | |
| "context": [ |
| <?php | |
| class Something extends CI_Controller { | |
| # some code | |
| /** | |
| * Full Name Check, custom validation rule | |
| * How to use? : $this->form_validation->set_rules('fullName', 'Full Name', 'required|callback_fullname_check'); | |
| */ |
| <script> | |
| // test for localStorage support | |
| if(('localStorage' in window) && window['localStorage'] !== null){ | |
| var f = document.getElementById('mainform'); | |
| // test with PHP if the form was sent (the submit button has the name "sent") | |
| <?php if(isset($_POST['sent']))){?> | |
| // get the HTML of the form and cache it in the property "state" | |
| localStorage.setItem('state',f.innerHTML); |
Material Design (CSS-based) - Tiles ('-' * 36) Based on: Material Design by Google (http://www.google.com/design/)
Material Design Animation Timing (http://codepen.io/zavoloklom/details/Jbrho/)
A Pen by Sergey Kupletsky on CodePen.
| <?php | |
| /** | |
| * Return the value for a key in an array or a property in an object. | |
| * Typical usage: | |
| * | |
| * $object->foo = 'Bar'; | |
| * echo get_key($object, 'foo'); | |
| * | |
| * $array['baz'] = 'Bat'; | |
| * echo get_key($array, 'baz'); |