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
1) Be respectful. The people in the channel have no obligation to help you and they don't receive any form of compensation for doing so | |
2) Have patience. You might understand exactly what the problem is, but other people will have to ask (basic) questions first | |
3) Be specific. What is the issue that you're having, what is the behaviour that you want to happen. Have a link ready so that people can visit the page with the problem, or make a test case on http://liveweave.com | |
4) For chatting and offtopic questions, go to #web-social | |
4.1) Chatting and off-topic discussion is fine as long as its not disrupting on-topic discussion. If someone asks you to move to #web-social, please do. | |
5) There is no "best" way of doing things | |
6) There is no "best" framework or cms | |
7) Saying something sucks or is stupid will only cause flamewars | |
8) The exception to 7 is GoDaddy. GoDaddy sucks. | |
9) If you're trying to help someone and they won't or can't do it your way, stop trying to convince them. It generally doesn't end well |
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
#include <QCoreApplication> | |
#include <SFML/Graphics.hpp> | |
#include <SFML/Network.hpp> | |
#include <vector> | |
std::vector<sf::Sprite*> getCharacterCryWalk(){ | |
//Load all textures into memory | |
sf::Texture walkState; | |
sf::Texture walkState_2; | |
sf::Texture walkState_3; |
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
#include <QCoreApplication> | |
#include <SFML/Graphics.hpp> | |
#include <SFML/Network.hpp> | |
#include <vector> | |
std::vector<sf::Sprite*> getCharacterCryWalk(){ | |
//Load all textures into memory | |
sf::Texture walkState; | |
sf::Texture walkState_2; | |
sf::Texture walkState_3; |
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
<script type="text/javascript"> | |
var OverlayJs = { | |
Init : | |
$(document).ready(function(){ | |
var p = document.createElement("div"); | |
$(p).css({ | |
"background":"rgba(255,255,255,0.7)", | |
"position":"fixed", | |
"width":"100%", | |
"height":"100%", |
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 | |
public static function ReturnPageWithResults($html) { | |
$HTMLToInject = preg_replace_callback("{#=(.*?):(.*?):(.*?)#}", function ($captures) { | |
echo "<pre>"; | |
print_r($result); | |
echo "</pre>"; | |
}, $html); | |
return $HTMLToInject; |
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
SimpleSendMail = { | |
FormComplete : true, | |
Events : { | |
SendButton_Click : $(document).on("ready",function(){ | |
$("#sendMail").on("click",function(event){ | |
$(".contact-widget :input[type='text']").each(function(){ | |
if($(this).val() === ''){ | |
SimpleSendMail.FormComplete = false; | |
$(this).effect( "shake" ); | |
} |
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 | |
class HTMLObjectFactory implements IRenderService, IHTMLTypeService { | |
public static function Create() { | |
$HTMLGenerators = array( | |
'TextInput' => function (HtmlID $ID = null, HtmlClass $Class = null) { | |
echo "This is a text input factory"; | |
}, | |
); | |
$HTMLGenerators["TextInput"](new HtmlID("FooBar"), new HtmlClass("BarFoo")); |
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
[xdebug] | |
xdebug.remote_enable = On | |
xdebug.remote_port = 9000 | |
xdebug.remote_connect_back=1 | |
xdebug.remote_handler = "dbgp" | |
xdebug.remote_host=192.168.10.22 | |
xdebug.profiler_enable = On | |
xdebug.profiler_enable_trigger = off | |
xdebug.profiler_output_name = cachegrind.out.%t.%p | |
xdebug.profiler_output_dir = "c:/wamp/tmp" |
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
private function IsNullOrEmpty(&$var){ | |
if( (isset($var)) && ($var !== null) && (!empty($var))){ | |
return true; | |
}else{ | |
return false; | |
} | |
} |
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
1. What is a variable, what does it represent, what does a variable look like in memory | |
2. What is a bit, byte? | |
3. What are primative types | |
4. Define a primative type | |
5. What is a function, what are parameters | |
6. How is code evaluated. | |
7. Which comes first in the evaluation x = y? | |
8. What is an operator | |
9. What is an identifier | |
10. What is a class |