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
import XCTest | |
@testable import Example | |
class MatesTests: XCTestCase { | |
let mates = Mates() | |
override func setUp() { | |
super.setUp() | |
} |
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
sp_who2 | |
GO |
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 | |
if(!class_exists('Memcached')){ | |
die('class Memcached not found.'); | |
} | |
$mc = new Memcached(); | |
$mc->addServer('127.0.0.1', 11211); | |
if(!$mc){ | |
die('Memcached connection error.'); |
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
\definecolor{Code}{rgb}{0,0,0} | |
\definecolor{Decorators}{rgb}{0.5,0.5,0.5} | |
\definecolor{Numbers}{rgb}{0.5,0,0} | |
\definecolor{MatchingBrackets}{rgb}{0.25,0.5,0.5} | |
\definecolor{Keywords}{rgb}{0,0,1} | |
\definecolor{self}{rgb}{0,0,0} | |
\definecolor{Strings}{rgb}{0,0.63,0} | |
\definecolor{Comments}{rgb}{0,0.63,1} | |
\definecolor{Backquotes}{rgb}{0,0,0} | |
\definecolor{Classname}{rgb}{0,0,0} |
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
Display display = getWindowManager().getDefaultDisplay(); | |
String displayName = display.getName(); // minSdkVersion=17+ | |
Log.i(TAG, "Pantalla = " + displayName); | |
// Tamaño en píxeles |
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
<touchégg> | |
<settings> | |
<property name="composed_gestures_time">0</property> | |
</settings> | |
<application name="All"> | |
<gesture type="TAP" fingers="2" direction=""> |
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
<touchégg> | |
<settings> | |
<property name="composed_gestures_time">0</property> | |
</settings> | |
<application name="All"> | |
<gesture type="TAP" fingers="2" direction=""> | |
<action type="MOUSE_CLICK">BUTTON=3</action> |
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 | |
foreach(glob('./imagenes/*.jpg') as $filename){ | |
echo rename($filename, substr_replace($filename, '.jpg', -9, 9)); | |
} | |
?> |
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 <string.h> | |
#include <omnetpp.h> | |
class computer : public cSimpleModule { | |
protected: | |
virtual void initialize(); | |
virtual void handleMessage(cMessage *msg); | |
}; | |
Define_Module(computer); |
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
import java.util.Arrays; | |
/** | |
* | |
* @author mario <[email protected]> | |
*/ | |
public class MainClass { | |
static class Persona implements Comparable<Persona> { |
NewerOlder