Skip to content

Instantly share code, notes, and snippets.

@agrhn
agrhn / alexnet_tensorflow.ipynb
Created January 19, 2021 19:59
AlexNet_TensorFlow.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@josemmo
josemmo / repair-mysql-data.ps1
Created August 28, 2020 18:48
Repair MySQL data directory (for XAMPP)
# Based on this answer: https://stackoverflow.com/a/61859561/1956278
# Backup old data
Rename-Item -Path "./data" -NewName "./data_old"
# Create new data directory
Copy-Item -Path "./backup" -Destination "./data" -Recurse
Remove-Item "./data/test" -Recurse
$dbPaths = Get-ChildItem -Path "./data_old" -Exclude ('mysql', 'performance_schema', 'phpmyadmin') -Recurse -Directory
Copy-Item -Path $dbPaths.FullName -Destination "./data" -Recurse
@daopk
daopk / git-config-http-version.md
Last active February 22, 2025 09:40
Fix error : RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
git config --global http.version HTTP/1.1
git config --global http.postBuffer 157286400
@avivace
avivace / telegramRestore.md
Last active July 6, 2025 10:39
Restore deleted Telegram messages from groups

Restore deleted Telegram messages, medias and files from groups

There's not telegram API method for this, we need to call MTProto methods to retrieve messages from the "Recent Actions" (Admin Log) since deleted messages (and medias) gets moved there for 48 hours before the permanent deletion.

from telethon import TelegramClient, events, sync
from telethon.tl.types import InputChannel, PeerChannel

Behavioral Interviewing

While there are a number of definitions, for our purposes, soft skills are all of the skills that are not technical. Meaning - the you that shows up the interview, as well as your technical ability. Your interview is composed of your technical prowess, as well as your soft-skills and ability to answer non-technical questions around teamwork, leadership, failure (yes), ability to adapt, timeliness, and communication skills.

If you have heard of the airport test - when hiring managers ask themselves would I want to be stuck in an airport with this person? - your non-technical stories will help them answer that question. In short: non-technical questions will ask you to tell a number of stories that supplement your technical mastery.

Interviews are subjective, based off of who’s interviewing you. When you prepare for soft-skill questions, understand the value that you can bring to a company as well as your goals and interests. You will deliver better answers and be more con

@sr6033
sr6033 / dfs_stl.cpp
Created August 12, 2018 06:13
Depth First Search using C++ STL
#include <bits/stdc++.h>
using namespace std;
vector< vector <int>> g;
vector<bool> v;
// Undirected graph
void addEdge(int a, int b)
{
g[a].push_back(b);
package com.nickrout.actionmode
import android.view.MenuItem
interface OnActionItemClickListener {
fun onActionItemClick(item: MenuItem)
}
package com.nickrout.actionmode
import android.graphics.Rect
import android.os.Build
import android.support.annotation.MenuRes
import android.support.annotation.RequiresApi
import android.view.ActionMode
import android.view.Menu
import android.view.MenuItem
import android.view.View
@ricknout
ricknout / CanvasMultilineText.kt
Last active October 13, 2022 12:01
A set of Kotlin extension functions and helper classes for drawing multiline text to Canvas on Android
package com.nickrout.canvasmultilinetext
import android.graphics.Canvas
import android.os.Build
import android.support.annotation.RequiresApi
import android.text.*
import androidx.core.graphics.withTranslation
import androidx.core.util.lruCache
@RequiresApi(Build.VERSION_CODES.O)
@Krazybug
Krazybug / omercy.py
Last active April 20, 2025 01:11
O'Reilly free ebooks downloader
'''
O'Meirrcy !!!! Download free ebooks from O'Reilly
Usage:
> git clone https://gist.github.com/Krazybug/1ae50814d25b0a1d862dfdf7161ee503
> mv 1ae50814d25b0a1d862dfdf7161ee503 omercy
> cd omercy
> pip install requests
> pip install bs4
> python omercy.py