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
| /** | |
| * Convert html into correct element | |
| * @param html | |
| */ | |
| html2element:function(html) { | |
| var $template, attributes = {}, | |
| template = html; | |
| $template = $(template(this.model.toJSON()).trim()), _.each($template.get(0).attributes, function(attr) { | |
| attributes[attr.name] = attr.value | |
| }), this.$el.attr(attributes).html($template.html()), this.setContent(), this.renderContent() |
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
| body.login {} | |
| body.login div#login {} | |
| body.login div#login h1 {} | |
| body.login div#login h1 a {} | |
| body.login div#login form#loginform {} | |
| body.login div#login form#loginform p {} | |
| body.login div#login form#loginform p label {} | |
| body.login div#login form#loginform input {} | |
| body.login div#login form#loginform input#user_login {} | |
| body.login div#login form#loginform input#user_pass {} |
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 make_list_shortcode() { | |
| $subsites = get_sites(array('orderby' => 'registered', 'order' => 'DESC' )); | |
| if ( ! empty ( $subsites ) ) { | |
| $html = '<ul class="subsites">'; | |
| foreach( $subsites as $subsite ) { |
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
| [remote "origin"] | |
| url = "https://github.com/user/repository" |
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
| /* comando en Símbolo de Sistema */ | |
| wmic path softwarelicensingservice get OA3xOriginalProductKey |
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
| /* Esperamos a que cargue la página */ | |
| window.onload = function() { | |
| /* Seleccionamos por target, class, etc*/ | |
| listMenu = document.querySelectorAll('[attr="value"]'); | |
| /* Recorremos listado de elementos */ | |
| for (var i = 0; i < listMenu.length; i++) { | |
| /* Prevenimos evento por defecto del elemento */ | |
| listMenu[i].addEventListener("click", function(event){ | |
| event.preventDefault() | |
| }); |
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
| SELECT sysobjects.name AS table_name, syscolumns.name AS column_name, | |
| systypes.name AS datatype, syscolumns.LENGTH AS LENGTH | |
| FROM sysobjects INNER JOIN | |
| syscolumns ON sysobjects.id = syscolumns.id INNER JOIN | |
| systypes ON syscolumns.xtype = systypes.xtype | |
| WHERE (sysobjects.xtype = 'U') | |
| and (UPPER(syscolumns.name) like upper('%field_name%')) | |
| ORDER BY sysobjects.name, syscolumns.colid |
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
| error_log( print_r( $log, true ) ); |
OlderNewer