This file contains 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
using System; | |
namespace FacebookGroup { | |
public class Example(){ | |
public Exemple(){ | |
Console.WriteLine("hej på dig"); | |
} | |
} | |
} |
This file contains 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 | |
function alter_comment_form_fields($fields){ | |
$commenter = wp_get_current_commenter(); | |
$fields['author'] = '<p class="comment-form-input comment-form-author"><label for="author">' . __( 'This is a fancy label', 'your-text-domain' ) . '</label><input id="author" required name="author" type="text" placeholder="Seu nome" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" aria-required="true" /></p>'; | |
return $fields; | |
} |
This file contains 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 | |
include_once dirname(__FILE__)."/Tax-meta-class/Tax-meta-class.php"; | |
class MyTax_Meta_Class extends Tax_Meta_Class { | |
public function load_scripts_styles(){ | |
parent::load_scripts_styles(); | |
// enqueue only in the right place | |
if(isset($_REQUEST['taxonomy'])) { | |
//script must have been registered previously (priority of at least 10) |
This file contains 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
<style> | |
ul { | |
list-style:none; | |
} | |
li { | |
display: inline-block; | |
padding: 5px; | |
} | |
</style> |
This file contains 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 | |
avail=/etc/httpd/sites-enabled/$1.conf | |
enabled=/etc/httpd/sites-enabled | |
site=`ls /etc/httpd/sites-enabled/` | |
if [ "$#" != "1" ]; then | |
echo "Use script: a2dissite virtual_site" | |
echo -e "\nAvailable virtual hosts: \n$site" | |
exit 0 | |
else |
This file contains 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
using System.Data.Entity; | |
using System.Data.Entity.ModelConfiguration.Conventions; | |
namespace Test.Models { | |
public DbSet<Friendship> Friendships { get; set; } | |
protected override void OnModelCreating(DbModelBuilder modelBuilder) { | |
/* USER */ | |
modelBuilder.Entity<User>().HasMany(u => u.Friends).WithMany(); |
This file contains 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
source /opt/wp-completion.bash | |
export DEV=/var/www/html | |
export EDITOR=subl | |
export PS1="\[$(tput bold)\]\[\033[38;5;58m\]\u\[$(tput sgr0)\]\[\033[38;5;15m\]@\[$(tput sgr0)\]\[\033[38;5;58m\]\H\[$(tput sgr0)\]\[$(tput sgr0)\]\[\033[38;5;15m\] [\t] \w \\$\n> \[$(tput sgr0)\]" | |
# function to set terminal title | |
function set-title() { | |
if [[ -z "$ORIG" ]]; then | |
ORIG=$PS1 |
This file contains 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
javascript: (function() { | |
var htmlStyle = document.documentElement.style; | |
var adminBarStyle = document.getElementById('wpadminbar').style; | |
if(undefined == window.hasAdminBar){ | |
window.hasAdminBar = true; | |
} | |
var cssText, display; |
This file contains 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 | |
$args = array( | |
'post_type' => 'cardapio', | |
'posts_per_page' => 999, | |
'orderby' => 'title', | |
'order' => 'ASC', | |
'tax_query' => array( | |
array( | |
'taxonomy' => 'cardapio_category', | |
'field' => 'term_id', |
OlderNewer