Skip to content

Instantly share code, notes, and snippets.

View AliYmn's full-sized avatar
🐍
I'm probably writing Python right now....

Ali Yaman AliYmn

🐍
I'm probably writing Python right now....
View GitHub Profile
{"name":"vscode","settings":"{\"settings\":\"{\\n \\\"editor.cursorBlinking\\\": \\\"smooth\\\",\\n \\\"files.autoSave\\\": \\\"onFocusChange\\\",\\n \\\"editor.fontSize\\\": 14,\\n \\\"editor.fontFamily\\\": \\\"JetBrainsMono Nerd Font Propo\\\",\\n \\\"terminal.integrated.fontFamily\\\": \\\"JetBrainsMono Nerd Font Propo\\\",\\n \\\"files.trimTrailingWhitespace\\\": true,\\n \\\"workbench.editor.highlightModifiedTabs\\\": true,\\n \\\"workbench.iconTheme\\\": \\\"eq-material-theme-icons-palenight\\\",\\n \\\"python.analysis.addImport.exactMatchOnly\\\": true,\\n \\\"python.analysis.autoFormatStrings\\\": true,\\n \\\"python.analysis.addImport.heuristics\\\": true,\\n \\\"python.analysis.autoImportCompletions\\\": true,\\n \\\"python.analysis.extraCommitChars\\\": true,\\n \\\"python.terminal.activateEnvInCurrentTerminal\\\": true,\\n \\\"editor.minimap.maxColumn\\\": 70,\\n \\\"workbench.colorTheme\\\": \\\"Dracula Pro\\\",\\n \\\"indentRainbow.indicatorSty
@AliYmn
AliYmn / settings.json
Last active June 15, 2020 10:56
my vscode settings
{
"git.autofetch": true,
"workbench.iconTheme": "material-icon-theme",
"editor.formatOnSave": true,
"files.autoSave": "afterDelay",
"python.linting.pylintEnabled": true,
"python.linting.pylintArgs": [
"--disable=C0111",
"--load-plugins=pylint_django,pylint_celery",
],
@AliYmn
AliYmn / note.txt
Last active January 15, 2020 12:03
undo git commit
git reset --hard commit_id
git push --force
@AliYmn
AliYmn / SelectionSort.c
Created December 26, 2019 03:05
Selection Sort Basic Example
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#define N 10
void selection_sort(int arr[], int size);
void swap(int arr[], int firstIndex, int secondIndex);
int main()
{
@AliYmn
AliYmn / scroll.js
Created December 4, 2019 21:02
React Custom Scrollbars Example
import { Scrollbars } from 'react-custom-scrollbars';
<Scrollbars
autoHide={false}
autoHeight={true}
style={{ height: 150 }}
>
// your component here
@AliYmn
AliYmn / azureContainers.py
Created December 3, 2019 19:41
how i set new permission for containers?
from azure.storage.blob import BlockBlobService
from azure.storage import AccessPolicy
accountName = "*"
accountKey = "*"
def containersToUnPublic():
block_blob_service = BlockBlobService(account_name=accountName,
@AliYmn
AliYmn / country_and_langs.json
Created October 11, 2019 20:37
country and country of langs json format
{
"afghanistan": "af",
"albania": "al",
"algeria": "dz",
"american samoa": "as",
"andorra": "ad",
"angola": "ao",
"antarctica": "aq",
"antigua and barbuda": "ag",
"argentina": "ar",
@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