Skip to content

Instantly share code, notes, and snippets.

View armed's full-sized avatar
🏠
Working from home

Artem Medeu armed

🏠
Working from home
View GitHub Profile
@armed
armed / gist:743542
Created December 16, 2010 15:44
Сортировка адресов на клиенте
var addresses = ['Метрополь', '2', '1', '2a', '1/10', '2b/21/3', '4', '3в', '11b', '3b/4', '№3a/4'];
function compareAddresses(adr1, adr2) {
var nums = getNumberArray(adr1);
var nums2 = getNumberArray(adr2);
var res = compareArrays(nums, nums2);
if (res == 0) {
res = compareStrings(adr1, adr2);
@dmorgantini
dmorgantini / AddNumbersService.java
Created August 13, 2012 14:37
Use SOAP with dropwizard
package com.example.helloworld.resources;
import javax.jws.WebMethod;
@javax.jws.WebService(
name = "AddNumbersPortType",
serviceName = "AddNumbersService",
targetNamespace = "http://duke.example.org")
@javax.jws.soap.SOAPBinding(
style = javax.jws.soap.SOAPBinding.Style.DOCUMENT,
@armed
armed / clean-up-boot-partition-ubuntu.md
Created March 5, 2019 05:02 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
@smpallen99
smpallen99 / constants.ex
Created April 5, 2014 18:22
Approach for constants shared between modules in Elixir
defmodule Constants do
@moduledoc """
An alternative to use @constant_name value approach to defined reusable
constants in elixir.
This module offers an approach to define these in a
module that can be shared with other modules. They are implemented with
macros so they can be used in guards and matches
## Examples:
@bitemyapp
bitemyapp / gist:8739525
Last active May 7, 2021 23:22
Learning Haskell
@ardcore
ardcore / atom-events
Last active October 13, 2021 20:35
atom.io events
application:open-your-keymap
application:open-your-stylesheet
autocomplete:attach
autoflow:reflow-paragraph
bookmarks:clear-bookmarks
bookmarks:jump-to-next-bookmark
bookmarks:jump-to-previous-bookmark
bookmarks:toggle-bookmark
bookmarks:view-all
check:correct-misspelling
@armed
armed / git-cheat-sheet.txt
Last active June 11, 2023 12:08 — forked from maxim-oleinik/git-cheat-sheet.txt
GIT cheat sheet
Git
================================================================================
Ссылки
------
* Книга "Pro Git"
http://progit.org/book/
* Книга "Git Community Book"
http://book.git-scm.com/
* Книга "Git Magic"
@denji
denji / README.md
Last active February 11, 2025 10:01 — forked from istepanov/gist:3950977
Remove/Backup – settings & cli for macOS (OS X) – DataGrip, AppCode, CLion, Gogland, IntelliJ, PhpStorm, PyCharm, Rider, RubyMine, WebStorm
@rbishop
rbishop / README.md
Last active April 11, 2025 17:56
A super simple Elixir server for sending Server Sent Events to the browser.

Generate a new Elixir project using mix and add cowboy and plug as dependencies in mix.exs:

  defp deps do
    [
      {:cowboy, "~> 1.0.0"},
      {:plug, "~> 0.8.1"}
    ]
  end