Skip to content

Instantly share code, notes, and snippets.

View AhmedKamal's full-sized avatar

Ahmed Kamal AhmedKamal

View GitHub Profile
@AhmedKamal
AhmedKamal / gist:4c00b41c8e0ac78e9206f89dc35e0273
Last active June 6, 2023 09:44
ŞİMŞEK GELDİ, OTOMOBİL YATIRIM ARACI OLMAKTAN ÇIKACAK MI? | EMRE ÖZPEYNİRCİ | EKONOMİDE SAADET
Dear viewers of Sadet YouTube, this week we have this impromptu live broadcast. Actually, we were planning to do the show on Thursday, but due to being abroad, we decided to have our broadcast tonight. I know that your minds are confused, and even before going live, we were discussing among ourselves. I said that we should sacrifice the last bit of sanity of the Turkish people to Mehmet Şimşek's Urla, and I truly understand and find it justified. Despite being professionals in the market, we are naturally drawn to these issues. We are trying to raise the level of financial literacy of the unemployed through these broadcasts and take the whole country to a certain point. So, I can't help but agree. Especially the title was chosen for him, Şimşek. It's all over now. In fact, today on social media, if there are any viewers among you, especially on Instagram and in announcements, I made the broadcast announcement with the theme song of a film that I really loved, "Kara Şimşek" (Black Lightning). Please don't keep
public enum PersonEnum {
INSTANCE;
private int age = 2;
public int getAge() {
return age;
}
public void setAge(int newAge) {
SimpleRedisConnection redisConnection = new SimpleRedisConnection(new RedisClient(new RedisURI(host, port, 2, TimeUnit.SECONDS)));
Person person = Person.createPersonAdam();
redisConnection.cache("People", "Adam", person);
Person retrievedPerson = redisConnection.get("People", "Adam");
redisConnection.clear("People", "Adam");
redis> HSET myhash field1 "Hello"
(integer) 1
redis> HGET myhash field1
"Hello"
#include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include<algorithm>
using namespace std;
int cycleLen(int n){
int cnt = 1;
while (n != 1)
var query = from i in dataModel.Items
join t in dataModel.toreadlist
on i.ItemID equals t.ItemID
select i;
@AhmedKamal
AhmedKamal / gist:f9a3d8f7e3643b54bac6
Created July 3, 2014 04:42
Exception in Cold Turkey
System.Security.Cryptography.CryptographicException: The keyset is not defined.
at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr)
at System.Security.Cryptography.Utils._AcquireCSP(CspParameters param, SafeProvHandle& hProv)
at System.Security.Cryptography.CryptoAPITransform..ctor(Int32 algid, Int32 cArgs, Int32[] rgArgIds, Object[] rgArgValues, Byte[] rgbKey, PaddingMode padding, CipherMode cipherChainingMode, Int32 blockSize, Int32 feedbackSize, Boolean useSalt, CryptoAPITransformMode encDecMode)
at System.Security.Cryptography.DESCryptoServiceProvider._NewEncryptor(Byte[] rgbKey, CipherMode mode, Byte[] rgbIV, Int32 feedbackSize, CryptoAPITransformMode encryptMode)
at System.Security.Cryptography.DESCryptoServiceProvider.CreateEncryptor(Byte[] rgbKey, Byte[] rgbIV)
at CTService.Crypto3DES.Encrypt3DES(String strString)
at CTService.Service1.resetConfigFile()System.Security.Cryptography.CryptographicException: The keyset is not defined.
Summary :
Application Achievements :
More than 11500 downloads
Featured More than 7 times on different Windows Phone markets
One of the top rated apps with 217 rating only in Egyptian Store
The app received 3 updates until now
public static List<NewsStory> GetNewsStoriesFromClusters(IQueryable<Cluster> clusters)
{
List<NewsStory> result = new List<NewsStory>();
clusters.ToList<Cluster>().ForEach(x => result.Add(new NewsStory
{
LastUpdate = x.LastUpdate
,
CategoryID = x.Category.CategoryID,
ClusterID = x.ClusterID,