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 | |
add_filter('megamenu_walker_nav_menu_start_el', function($item_output, $item, $depth, $args){ | |
if (!empty($item->description)) | |
{ | |
$item_output .= "<span class='menu-description'>{$item->description}</span>"; | |
} | |
return $item_output; |
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
let source = | |
let code = ref "" in | |
try | |
while true do | |
code := !code ^ input_line stdin | |
done; | |
!code | |
with | |
End_of_file -> !code |
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
#include<stdio.h> | |
#include<winsock2.h> | |
#include<process.h> | |
// Winsock Library | |
#pragma comment(lib, "ws2_32.lib") | |
unsigned int __stdcall handle_client(void *data); | |
void err(const char *text); |
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 | |
$data = array(); | |
$groups = BP_Groups_Group::get(array( | |
'type'=>'alphabetical', | |
'per_page'=>999 | |
)); | |
foreach ($groups as $group) | |
{ | |
$data['name'][] = array( |
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
(function(){ | |
if (typeof revapi2 === 'undefined'){ | |
return; | |
} | |
revapi2.bind("revolution.slide.onloaded",function (e,data) { | |
revapi2.bind("revolution.slide.onchange",function (e,data) { | |
var iframes = $('.rev_slider > ul > li iframe'); | |
$('.rev_slider > ul > li iframe').each(function(index, el) { |
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 get($url){ | |
// Get cURL resource | |
$curl = curl_init(); | |
// Set some options - we are passing in a useragent too here | |
curl_setopt_array($curl, array( | |
CURLOPT_RETURNTRANSFER => 1, | |
CURLOPT_URL => $url, | |
// CURLOPT_USERAGENT => 'Codular Sample cURL Request' |
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
-------------------- | |
user: WarOwl | |
color: custom | |
size: medium | |
-------------------- | |
cl_crosshairstyle 4; | |
cl_crosshairdot 0; | |
cl_crosshairusealpha 1; | |
cl_crosshairalpha 200; | |
cl_crosshaircolor 5; |
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 | |
define('offset', 8); | |
define('icon_count', 8); | |
$loop = range(0, 22); // too lazy | |
$icon = [':)',':(',':D','8=)',';)',':o',';(','(sweat)',':|',':*',':P','(yn)','(blush)',':^)','|-)','|(','(inlove)',']:)','(yawn)','(puke)','(doh)',':@','(wasntme)','(party)','(facepalm)',':S','(mm)','8-|',':x','(hi)','(devil)','(angel)','(envy)','(wait)','(bear)','(makeup)','(giggle)','(clap)','(think)','(bow)','(rofl)','(whew)','(happy)','(smirk)','(nod)','(shake)','(emo)','(y)','(n)','(handshake)','(h)','(tmi)','(heidy)','(f)','(rain)','(sun)','(music)','(coffee)','(pizza)','(cash)','(muscle)','(^)','(beer)','(d)','(dance)','(ninja)','(*)','(tumbleweed)','(bandit)']; | |
function add_space( $int ){ | |
$val = 0; | |
while ($int >= $val) { |
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
var mymodule=angular.module('myApp', []); | |
mymodule.controller('Testing', function Testing($scope,$http){ | |
$http.get('http://graph.facebook.com/627043117349800/photos/') | |
.success( function(data,status){ | |
var images=[]; | |
$.each(data.data, function(index, value){ | |
console.log(value.images[0]); |
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
if (!function_exists('update_user_status')){ | |
include(ABSPATH . "wp-admin/includes/ms.php"); | |
} | |
if (!update_user_status($user_id, 'spam', $spam_value)){ | |
return array(true, 'Unable to change spam status'); | |
} |