Skip to content

Instantly share code, notes, and snippets.

View mervick's full-sized avatar

Andrey Izman mervick

View GitHub Profile
@scottfrazer
scottfrazer / commons-codec-1.10.jar
Last active September 7, 2019 03:29
Scala AES 256 encryption
@dfeng
dfeng / carbon.css
Last active June 21, 2019 18:11
Reddit Carbon
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain('reddit.com') {
body{
background:#1a1a1a;
color:#ddd
}
.comment .usertext .md p>a:visited,.md a,.res.res-nightmode .tagline a,a,h2 a:visited{
color:#3498db;
@protrolium
protrolium / ffmpeg.md
Last active December 1, 2025 21:36
ffmpeg guide

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

You can get the list of installed codecs with:

@itarato
itarato / Doxygen
Created May 1, 2015 14:23
Doxygen example for PHP code
# Doxyfile 1.8.9
#---------------------------------------------------------------------------
# Project related configuration options
#---------------------------------------------------------------------------
DOXYFILE_ENCODING = UTF-8
PROJECT_NAME = "Cameron & Wilding Tool"
PROJECT_NUMBER =
PROJECT_BRIEF = "Drupal 7 Architecture tool"
PROJECT_LOGO = /Users/itarato/Desktop/logo.png
@dkandalov
dkandalov / plugin.groovy
Last active January 15, 2025 11:51
Prototype of google popup search mini-plugin
import com.intellij.ide.BrowserUtil
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.progress.ProgressIndicator
import groovy.json.JsonSlurper
import static liveplugin.PluginUtil.registerAction
import static liveplugin.PluginUtil.show
import static liveplugin.PluginUtil.showPopupSearch
registerAction("GoogleSearchAction", "ctrl alt shift G") { AnActionEvent event ->
import sys, cv2
# Refactored https://realpython.com/blog/python/face-recognition-with-python/
def cascade_detect(cascade, image):
gray_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
return cascade.detectMultiScale(
gray_image,
scaleFactor = 1.15,
minNeighbors = 5,
@mark-adams
mark-adams / aes_example.cs
Created December 12, 2014 15:02
AES String Encryption (CBC) Example Code for C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
namespace aes_example
{
using System;
@jackyliang
jackyliang / Baidu Maps API
Last active September 9, 2021 07:17
Baidu Maps API
Baidu Maps API Detailed Explanation
-
Explanation of [drawing Objects onto Baidu Maps](http://developer.baidu.com/map/jsdemo.htm#f0_7).
Draw Shit Onto Baidu Map:
-
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
@leommoore
leommoore / nano_js_syntax_highlighting.md
Last active October 5, 2023 21:21
nano javascript syntax highlighting

#nano javascript syntax highlighting

The existing syntax highlighting is located in /usr/share/nano/

To add a new language

sudo nano /usr/share/nano/javascript.nanorc

Put the following in the contents:

@mturnwall
mturnwall / SassMeister-output.css
Last active May 6, 2020 18:54
SASS mixin for styling input placeholder text
::-moz-placeholder {
color: red;
font-weight: 300;
padding-top: 5px;
}
::-webkit-input-placeholder {
color: red;
font-weight: 300;
padding-top: 5px;