Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Deniz SirmaXX

🏠
Working from home
Block or report user

Report or block SirmaXX

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@SirmaXX
SirmaXX / elm.sh
Last active Sep 3, 2019
elm project creator
View elm.sh
#!/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 / Main.elm
Created Aug 30, 2019
Http get and post in elm app
View Main.elm
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 / Main.elm
Last active Aug 28, 2019
Httpget with blog from blog id in rest api thanks @jessta
View Main.elm
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
Last active Aug 22, 2019
Flag example for newbies . thanks @jessta
View Main.elm
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 / Colors.elm
Created Aug 19, 2019
elm-ui example for beginners
View Colors.elm
module Colors exposing (..)
import Html exposing (Html)
import Element exposing (..)
white =
Element.rgb 1 1 1
@SirmaXX
SirmaXX / Main.elm
Last active Aug 18, 2019
elm ports thanks for attention @mzero example from :https://elmprogramming.com/
View Main.elm
port module Main exposing (..)
import Html exposing (..)
import Html.Events exposing (..)
import Browser
main =
Browser.element
@SirmaXX
SirmaXX / Main.elm
Last active Aug 14, 2019
elm json.decode thanks joelq jessta
View Main.elm
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
View gist:28d4e0142f23d124a7f3e814e00d3a6e
import Browser
import Html exposing (map,text,Html,div,p,ul,button,input,h1,li,br,h3 )
import Html.Attributes exposing (value,type_ ,checked,class,style)
import Html.Events exposing (onClick,onInput)
import Element exposing (..)
import Element.Background as Background
import Element.Border as Border
import Element.Font as Font
import Element.Input as Input
import Element.Region as Region
@SirmaXX
SirmaXX / First.elm
Created Jul 15, 2019
Elm for beginner /Acemiler için elm
View First.elm
import Browser
import Html
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (..)
-- MAIN
main: Html msg
@SirmaXX
SirmaXX / tets.c
Created Apr 8, 2019
solve sytnax problem
View tets.c
#include<stdio.h>
int main()
{
int ort;
char not;
printf("ortalama gir");
scanf("%f",&ort);
switch(not){
You can’t perform that action at this time.