Skip to content

Instantly share code, notes, and snippets.

View aligoren's full-sized avatar
😥
130K

Ali GÖREN aligoren

😥
130K
View GitHub Profile
@aligoren
aligoren / cancelation.go
Created May 29, 2022 19:37
cancelation.go
package main
import (
"context"
"errors"
"fmt"
"time"
)
func AmirimOlayYerine(ctx context.Context) error {
package main
func main() {
var ornek chan int
ornek2 := make(chan int)
}
@aligoren
aligoren / http_calls_concurrent.go
Created May 19, 2022 14:43
http_calls_concurrent
package main
import (
"fmt"
"github.com/PuerkitoBio/goquery"
"io"
"net/http"
"sync"
"time"
)
@aligoren
aligoren / fetch_sites_non_concurrent.go
Created May 19, 2022 14:37
fetch_sites_non_concurrent
package main
import (
"fmt"
"github.com/PuerkitoBio/goquery"
"io"
"net/http"
"time"
)
@aligoren
aligoren / php_simple_cron.php
Created July 9, 2020 07:27
PHP Simple Cron Logic (Really Bad)
<?php
class Cron {
function __construct() {
$this->tasks = [];
$this->taskArr = [];
}
@aligoren
aligoren / logger.ts
Last active March 6, 2020 09:05
typescript logger ( basit örnek deneme ) ( berbat ama düzeltilir )
enum LogLevels {
Verbose = 'verbose',
Debug = 'debug',
Information = 'info',
Warning = 'warning',
Error = 'error',
Fatal = 'fatal'
}
interface ILoggerConfiguration {
@aligoren
aligoren / publish-ghpages.md
Created December 7, 2019 10:18 — forked from tduarte/publish-ghpages.md
If you need to force push an subtree
git checkout master # you can avoid this line if you are in master...
git subtree split --prefix dist -b gh-pages # create a local gh-pages branch containing the splitted output folder
git push -f origin gh-pages:gh-pages # force the push of the gh-pages branch to the remote gh-pages branch at origin
git branch -D gh-pages # delete the local gh-pages because you will need it: ref
@aligoren
aligoren / gh-pages-deploy.md
Created December 6, 2019 21:08 — forked from cobyism/gh-pages-deploy.md
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

const store = new Vuex.Store({
state: {
kullanicilar: []
},
mutations: {
FETCH_KULLANICILAR(state, kullanicilar) {
state.kullanicilar = kullanicilar
}
},
actions: {
html,
body {
margin: 0;
padding: 0;
}
button {
margin: 0;
padding: 0;
border: 0;