Skip to content

Instantly share code, notes, and snippets.

View SirmaXX's full-sized avatar
🏠
Working from home

Deniz Balcı SirmaXX

🏠
Working from home
View GitHub Profile
@SirmaXX
SirmaXX / Main.elm
Last active August 14, 2019 16:49
elm json.decode thanks joelq jessta
module Main exposing (Model(..), Msg(..), Point, getCoordinates, init, main, pointDecoder, subscriptions, update, view, viewCoordinates, viewPoint)
import Browser
import Html exposing (div,pre,text,Html,h2)
import Http
import Json.Decode exposing (Decoder, field, float, map2)
-- MAIN
@SirmaXX
SirmaXX / Main.elm
Last active August 18, 2019 18:04
elm ports thanks for attention @mzero example from :https://elmprogramming.com/
port module Main exposing (..)
import Html exposing (..)
import Html.Events exposing (..)
import Browser
main =
Browser.element
@SirmaXX
SirmaXX / Colors.elm
Created August 19, 2019 08:58
elm-ui example for beginners
module Colors exposing (..)
import Html exposing (Html)
import Element exposing (..)
white =
Element.rgb 1 1 1
@SirmaXX
SirmaXX / Main.elm
Last active August 22, 2019 18:03
Flag example for newbies . thanks @jessta
module Main exposing (main)
import Browser
import Html exposing (Html, button, div, text)
--thanks jessta
type alias Model =
{ name : String }
init : {name: String} -> ( Model, Cmd Msg )
@SirmaXX
SirmaXX / Main.elm
Last active August 28, 2019 06:09
Httpget with blog from blog id in rest api thanks @jessta
module Main exposing (Msg(..), Post, init, main, postBlog, postBlogFromid, postDecoder, subscriptions, update, view, viewPost, viewPosts)
import Browser
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (..)
import Http exposing (Error(..))
import Json.Decode exposing (Decoder, field, float, int, map2, string)
@SirmaXX
SirmaXX / Main.elm
Created August 30, 2019 05:03
Http get and post in elm app
module Main exposing (Msg(..), Post, init, main, postBlog, postBlogFromid, postDecoder, sendPost, subscriptions, update, view, viewPost, viewPosts, viewedit)
import Browser
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (..)
import Http exposing (Error(..))
import Json.Decode exposing (Decoder, field, float, int, map2, string)
import Json.Encode as Encode
@SirmaXX
SirmaXX / elm.sh
Last active September 3, 2019 16:02
elm project creator
#!/bin/sh
# Author : Deniz Balcı
# Project: Elm Project Creator
# Date : 02/09/2019
echo "proje ismi nedir ?"
read projectname
mkdir $projectname
cd $projectname
yes Y |elm init
yes Y |elm install elm/http
@SirmaXX
SirmaXX / calculate.py
Created January 19, 2020 15:38
dökümantasyon için kod örneği
#calculate.py
# -*- coding: utf-8 -*-
"""
ornek dökümantasyon için hesaplama sınıfı hazırladık
"""
class Calculation:
"""
Parametreler
------------
@SirmaXX
SirmaXX / game.c
Last active July 22, 2021 14:37
duel game in c ,Deniz Balcı
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct character
{
char charname[50];
int power ;
char weapon[50];
@SirmaXX
SirmaXX / solution.tex
Created March 25, 2020 22:02
problem solution
\documentclass[10pt]{article}
\usepackage[utf8]{inputenc} %Türkçe karakterler
\usepackage{amsmath} %matematik kütüphanesi
\usepackage{graphicx} %grafik kütüphanesi
\begin{document}
$$\frac{
15+\sqrt{15}+\sqrt{45}+\sqrt{75} }