Skip to content

Instantly share code, notes, and snippets.

@AliYmn
AliYmn / main.js
Created October 9, 2019 18:52
react-google-maps
import React, { Component } from 'react';
import { withGoogleMap, GoogleMap, withScriptjs, InfoWindow, Marker } from "react-google-maps";
import Geocode from "react-geocode";
Geocode.setApiKey("*****");
Geocode.enableDebug();
class Map extends Component {
constructor(props) {
super(props);
import React from 'react';
import {
SafeAreaView,
TouchableOpacity,
FlatList,
StyleSheet,
Text,
} from 'react-native';
import Constants from 'expo-constants';
@AliYmn
AliYmn / postgres-brew.md
Created September 14, 2019 16:55 — forked from ibraheem4/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
@AliYmn
AliYmn / index.html
Created August 22, 2019 20:12 — forked from jeffposnick/index.html
beforeinstallprompt demo
<html>
<head>
<title>Test</title>
<link rel="manifest" href="manifest.json">
</head>
<body>
<p>
If the <code>beforeinstallprompt</code> event fires, there will be a button displayed allowing
you to use <code>prompt()</code> on the deferred event.
</p>
@AliYmn
AliYmn / main.py
Created August 2, 2019 10:32
djange change pasword
from django.contrib.auth import get_user_model
User = get_user_model()
u = User.objects.get(email='[email protected]')
u.set_password('new password')
u.save()
<!DOCTYPE html>
<html lang="en">
<head>
<title>instacekilis.com</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="http://www.instacekilis.com/lib/jquery/jquery.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<style>
/* Preloader */
from django.shortcuts import render,HttpResponse
from instagram import inst
from django.db import connection
from threading import Thread
#from django.views.decorators.csrf import csrf_exempt
import ftplib
import time
from django.views.decorators.clickjacking import xframe_options_exempt
# Create your views here.
@AliYmn
AliYmn / main.py
Created December 21, 2017 04:20
son hali
# -*- coding: utf-8 -*-
import subprocess # Terminal'den komut girmek için kullandığımız komuttur.
# Sıkıştırma İşlemleri
class Compression():
"Sıkıştırma işlemlerini yapan, sınıftır."
def __init__(self,file_path):
self.file_path = file_path # sıkıştırılacak dosyalarımızı bu değişkene aktarıyoruz.
import subprocess # Terminal'den komut girmek için kullandığımız komuttur.
# Sıkıştırma İşlemleri
class Compression():
"Sıkıştırma işlemlerini yapan, sınıftır."
def __init__(self,file_path):
self.file_path = file_path # sıkıştırılacak dosyalarımızı bu değişkene aktarıyoruz.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import subprocess # Terminal'den komut girmek için kullandığımız komuttur.
# Sıkıştırma İşlemleri
class Compression():
"Sıkıştırma işlemlerini yapan, sınıftır."
def __init__(self,file_path):