Skip to content

Instantly share code, notes, and snippets.

View Maharramoff's full-sized avatar
🇦🇿

Maharramoff

🇦🇿
View GitHub Profile
@Maharramoff
Maharramoff / gist:128b5bd6b7df62e62dbab66ac14521c8
Created April 8, 2018 14:42 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
<!DOCTYPE html>
<html>
<head>
<title>Canvas / Javascript Game Template</title>
</head>
<body>
<style type="text/css">
html, body {
margin: 0;
padding: 0;
@Maharramoff
Maharramoff / jquery.sum.js
Created May 14, 2018 11:13 — forked from kim3er/jquery.sum.js
Sum, Max & Min functions in jQuery
(function ($) {
// DOM
if (!Array.prototype.sum)
Array.prototype.sum = function () {
for (var i = 0, l = this.length, sum = 0; i < l; sum += this[i++]);
return sum;
};
if (!Array.prototype.max)
Array.prototype.max = function () {
@Maharramoff
Maharramoff / vanilla-js-cheatsheet.md
Created December 12, 2018 16:18 — forked from thegitfather/vanilla-js-cheatsheet.md
Vanilla JavaScript Quick Reference / Cheatsheet
@Maharramoff
Maharramoff / .bash_aliases
Created March 5, 2019 13:01 — forked from roni-estein/.bash_aliases
Shortcuts for Laravel & PHP Storm
export PATH="~/.composer/vendor/bin:$PATH"
export EDITOR='subl -w'
# export CLICOLOR=1
# export LSCOLORS=ExFxCxDxBxegedabagacad
#ALIASES
#COMMANDS
@Maharramoff
Maharramoff / MakeViewCommand.php
Created March 5, 2019 13:01 — forked from roni-estein/MakeViewCommand.php
Make View Command for Laravel 5.6, place in app/Console/Commands/ you need to register it in 5.5 and below.
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class MakeViewCommand extends Command
{
/**
* The name and signature of the console command.
@Maharramoff
Maharramoff / API.md
Created April 4, 2019 21:22 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

@Maharramoff
Maharramoff / baseof.html
Created January 9, 2020 16:14 — forked from jeremybise/baseof.html
Google Fonts via config with Hugo
<!-- Wherever your head tag is located, add the new partial -->
<head>
{{ partial "google-fonts" . }}
</head>
@Maharramoff
Maharramoff / readable_random_string.php
Created January 27, 2020 20:07 — forked from sepehr/readable_random_string.php
PHP: Human-readable Random String
<?php
/**
* Generates human-readable string.
*
* @param string $length Desired length of random string.
*
* retuen string Random string.
*/
function readable_random_string($length = 6)

Haskell, Stack and Intellij IDEA IDE setup tutorial how to get started

Upon completion you will have a sane, productive Haskell environment adhering to best practices.

Basics

  • Haskell is a programming language.
  • Stack is tool for Haskell projects. (similar tools for other languages include Maven, Gradle, npm, RubyGems etc)
  • Intellij IDEA IDE is a popular IDE.

Install required libraries

sudo apt-get install libtinfo-dev libghc-zlib-dev libghc-zlib-bindings-dev