Skip to content

Instantly share code, notes, and snippets.

View mehmetakifakkus's full-sized avatar

Mehmet Akif AKKUŞ mehmetakifakkus

View GitHub Profile
window.botpress.init({
"botId": "1c0b073a-bf05-4315-9869-959937cb0693",
"configuration": {
"composerPlaceholder": "Sorunuzu yazın...",
"botName": "Araç Değer Kaybı Motoru",
"botDescription": "Aracınızda değer kaybı olduğunuzu düşünüyorsanız, eski değerini almada size yardımcı olalım.\n",
"website": {
"title": "https://aracimdegerli.com",
"link": "https://aracimdegerli.com"
},
@mehmetakifakkus
mehmetakifakkus / einsteinsRiddle.als
Last active November 9, 2023 20:14
Einstein's Riddle (Alloy Solution)
open util/ordering[House]
enum Color {Red, White, Blue, Green, Yellow}
enum Pet {Birds, Cats, Dogs, Fish, Horses}
enum Cigar {Blend, BlueMaster, Dunhill, PallMall, Prince}
enum Beverage {Beer, Coffee, Milk, Tea, Water}
sig House {
color: disj Color
}
// These were written specifically for the Adafruit 8x8 LED matrix,
// https://www.adafruit.com/product/870 but they could be used anywhere you need
// 64 bit character representations. I wasn't happy with any of the characters I
// found, so I created these. They're nice and bold, not silly line letters.
B00110000,B01111000,B11001100,B11001100,B11111100,B11001100,B11001100,B00000000,25, // A
B11111100,B01100110,B01100110,B01111100,B01100110,B01100110,B11111100,B00000000,25, // B
B00111100,B01100110,B11000000,B11000000,B11000000,B01100110,B00111100,B00000000,25, // C
B11111000,B01101100,B01100110,B01100110,B01100110,B01101100,B11111000,B00000000,25, // D
B11111110,B01100010,B01101000,B01111000,B01101000,B01100010,B11111110,B00000000,25, // E
@mehmetakifakkus
mehmetakifakkus / grammer.pegjs
Last active June 12, 2017 12:13
If Else Parser
/*
/*
* Simple Selection Grammar
* ==========================
* Simple IF ELSE Statement
*/
{
var time = 1;
function drawLine(line){
""" Siamese implementation using Tensorflow with MNIST example.
This siamese network embeds a 28x28 image (a point in 784D)
into a point in 2D.
By Youngwook Paul Kwon (young at berkeley.edu)
"""
from __future__ import absolute_import
from __future__ import division
@mehmetakifakkus
mehmetakifakkus / charFreq.cpp
Last active November 23, 2016 13:08
Character frequency in a text
// Example program
#include <iostream>
#include <string>
#include <map>
#include <cstddef>
int main()
{
std::string text = "Mr Trump, who has flown to Florida for the Thanksgiving holiday on Thursday, is still assembling his White House team. One of America's top generals, David Petraeus, has told the BBC he would be willing to serve under him.";
// Example program
#include <iostream>
#include <string>
using namespace std;
struct Node
{
int data;
struct Node *next;