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 sendSmtpMail = require('simple-parse-smtp-adapter')({ | |
fromAddress: '[email protected]', | |
user: '[email protected]', | |
password: 'AwesomePassword', | |
host: 'your.smtp.host', | |
isSSL: true, | |
port: 465, | |
emailField: 'email' | |
}).sendMail; |
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
package com.parse4cn1; | |
import ca.weblite.codename1.json.JSONException; | |
import ca.weblite.codename1.json.JSONObject; | |
import com.codename1.io.websocket.WebSocket; | |
import com.codename1.io.websocket.WebSocketState; | |
import com.parse4cn1.*; | |
import java.util.HashMap; | |
import java.util.Map; |
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
package com.mycompany.myapp; // change to your package | |
// goto line 48 | |
import com.codename1.googlemaps.MapContainer; | |
import com.codename1.io.ConnectionRequest; | |
import com.codename1.io.JSONParser; | |
import com.codename1.io.NetworkManager; | |
import com.codename1.maps.Coord; | |
import com.codename1.maps.providers.GoogleMapsProvider; | |
import com.codename1.ui.Display; | |
import com.codename1.ui.FontImage; |
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
package com.g_ara.gara.controller; | |
import com.codename1.ui.Image; | |
import com.codename1.ui.Label; | |
/** | |
* Created by ahmedengu. | |
*/ | |
public class Countdown extends Label { | |
long lastRenderedTime = 0L; |
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
public class Main { | |
public static void main(String[] args) { | |
Fact fact = new Fact(); | |
Rooms one = fact.getRoom(1); | |
Rooms two = fact.getRoom(2); | |
Rooms three = fact.getRoom(3); | |
System.out.println(one.getBed() + " " + one.getCost()); | |
System.out.println(two.getBed() + " " + two.getCost()); | |
System.out.println(three.getBed() + " " + three.getCost()); |
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
import com.codename1.maps.*; | |
import com.codename1.maps.providers.TiledProvider; | |
import com.codename1.ui.geom.Dimension; | |
//TODO: fix tileFor() | |
public class YandexMapsProvider extends TiledProvider { | |
/** |
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
SELECT MD5( 'security' ) | |
> e91e6348157868de9dd8b25c81aebfb9 | |
SELECT AES_ENCRYPT( 'secret', 'security' ) | |
> f98e8eee1c6099254dad1ae1f9a7d8ed | |
SELECT DES_ENCRYPT( 'secret', 'security' ) | |
> ff32603bf12affd3f1 | |
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
/* | |
* Created by ahmedengu. | |
*/ | |
object CaesarCipher { | |
def main(args: Array[String]): Unit = { | |
while (0 != (scala.io.StdIn.readLine( | |
"Choose the ceaser cipher implemintion:\n" + | |
"1) With spicial characters \n" + | |
"2) With key sets\n" + |
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
import javax.crypto.Cipher; | |
import javax.crypto.KeyGenerator; | |
import javax.crypto.SecretKey; | |
class DesEncrypter { | |
Cipher ecipher, dcipher; | |
DesEncrypter(SecretKey key) throws Exception { | |
ecipher = Cipher.getInstance("DES"); | |
dcipher = Cipher.getInstance("DES"); | |
ecipher.init(Cipher.ENCRYPT_MODE, key); |
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
/** | |
* Created by ahmedengu. | |
*/ | |
object main { | |
def main(args: Array[String]) { | |
println("Enter the key:") | |
val key = scala.io.StdIn.readLine() | |
val matrix = Array.ofDim[Char](key.length, key.length) | |
println("Enter the PT") |