Herramientas- Editor de texto
- Git
Frameworks- Bootstrap
- Resets
- jQuery
CSS- CSS 3
- Reset
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
| bind: function( fn, context ) { | |
| return function() { | |
| return fn.apply( context, arguments ); | |
| } | |
| } |
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
| <?php | |
| /** | |
| * TODO: Write example | |
| */ | |
| public static function thumb( $list_id, $size ) { | |
| $post_id = Arr::head( List_Model::make( $list_id )->get_items() ); |
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
| <?php | |
| /** | |
| * Get the post thumbnail src | |
| * | |
| * <code> | |
| * | |
| * // Print post thumbnail | |
| * <img src="<?php echo Post_Model::thumb(); ?>" /> |
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
| <?php | |
| /** | |
| * | |
| * Mustache model | |
| */ | |
| /** | |
| * Mustache model class |
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
| <?php | |
| /** | |
| * Return the body of a notification | |
| * | |
| * @param { str } notification slug | |
| * @param { arr } arguments to pass to the notification | |
| * @return { str || bool } email body, or false on error | |
| */ | |
| function get_notification_body( $slug = null, $args = array() ) { |
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
| <?php | |
| // Additional images | |
| // Note: after line 107 of 'controllers/bookmarklet.php' | |
| if ( $req->additional_images ) | |
| Post_Meta::update( $id, ADDITIONAL_IMAGES, $req->additional_images ); |
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
| # -*- coding: utf-8 -*- | |
| from django import forms | |
| from crispy_forms.helper import FormHelper | |
| from crispy_forms.layout import Layout, Div, Submit, HTML, Button, Row, Field | |
| from crispy_forms.bootstrap import AppendedText, PrependedText, FormActions | |
| class MessageForm(forms.Form): | |
| text_input = forms.CharField() |
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
| # views.py | |
| class UserProfileUpdate(LoginRequiredMixin, UpdateView): | |
| # ... | |
| # Pass current user to form through `initial` | |
| def get_form_kwargs(self, **kwargs): | |
| kwargs = super(UserProfileUpdate, self).get_form_kwargs(**kwargs) | |
| kwargs['initial']['user']=self.request.user | |
| return kwargs |
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
| <snippet> | |
| <content><![CDATA[base(this, '${1:method}'${2});${0}]]></content> | |
| <tabTrigger>base</tabTrigger> | |
| <scope>source.js</scope> | |
| <description>Base method call</description> | |
| </snippet> |
OlderNewer