Skip to content

Instantly share code, notes, and snippets.

View h0r0m4n's full-sized avatar
:octocat:

Roman Horokhovatskyy h0r0m4n

:octocat:
View GitHub Profile
@h0r0m4n
h0r0m4n / index.html
Last active October 24, 2017 19:45
Init functions on window width (document ready + resize delay) 👉
<p>Window width is: <span class="value1"></span> and is <span class="value2"></span></p>
@h0r0m4n
h0r0m4n / README.md
Last active August 14, 2017 19:02
Dell XPS 13 9360 (non dev) linux only install
  1. IDE to AHCI
    1. Run Command Prompt (windows) as Admin
    2. Invoke a Safe Mode boot: bcdedit /set {current} safeboot minimal
    3. Restart and enter the BIOS: F2
    4. Go to Settings > System Configuration > SATA Operation
    5. Enable ACHI
    6. Save & Exit, after that windows will launch in “Safe Mode”.
    7. Cancel Safe Mode booting with the command: bcdedit /deletevalue {current} safeboot, then restart again
  2. UEFI legacy mode
  3. Enter the BIOS: F2
@h0r0m4n
h0r0m4n / mailchimp.html
Created December 16, 2016 11:34 — forked from joeswann/mailchimp.html
Mailchimp ajax
<form class="newsletter" action="https://example.us2.list-manage.com/subscribe/post-json?u=xxxxxxx&id=xxxxxxxx&c=?" method="get" >
<div class="close"></div>
<div class="success">
Thankyou for signing up!
</div>
<div class="error">
Please check your email address is correct.
</div>
<input name="NAME" type="text" placeholder="Full Name" />
<input name="EMAIL" type="text" placeholder="Email Address" />
@h0r0m4n
h0r0m4n / related.html
Last active November 22, 2016 21:01 — forked from satoyos/gist:17b59bb858d81a069f83
Jekyll Related Posts
@h0r0m4n
h0r0m4n / jekyll.ssh
Created October 29, 2016 15:10
Jekyll install with default minima theme
mkdir your-jekyll-project
cd your-jekyll-project
jekyll new . --force
bundle show minima
cd to minima full path
scp -rp * full path to your-jekyll-project
@h0r0m4n
h0r0m4n / download_wp.ssh
Created October 9, 2016 17:59
Download WordPress
tar xfz latest.tar.gz && tar xfz latest.tar.gz && cd wordpress
@h0r0m4n
h0r0m4n / admin.php
Created July 12, 2016 20:17 — forked from baptistebriel/admin.php
[WordPress] - Collection of WordPress Snippets
<?php
// Show something only if the user is logged / admin.
// To be used in the current theme files - front.
if (current_user_can('manage_options')){ ?>
<div class="work">
<div class="work_layer">
<div class="device-content row">
<div class="work_content right">
<span class="f_13 uppercase sub_title">Web</span>
@h0r0m4n
h0r0m4n / gist:f4ac429643458e5c2d9ee7461f34ba57
Created July 12, 2016 20:14 — forked from stresslimit/gist:2931849
WordPress: get_posts() grouped by category
<?php
/*
* This class returns you an object that you can foreach() loop through, passing regular
* get_posts() args, and the results will be grouped by category or custom taxonomy.
* It's designed right now to work with posts in only one category [taxonomy term].
*
* Usage:
$args = array(
'taxonomy' => 'my_taxonomy',
using System;
namespace InControl
{
// @cond nodoc
[AutoDiscover]
public class SteelSeriesStratusXLAndroidProfile : UnityInputDeviceProfile
{
// WARNING: The DPad doesn't work. I'm very surprised this actually works at all.
// https://github.com/pbhogan/InControl/issues/203
@h0r0m4n
h0r0m4n / .block
Created May 14, 2016 15:16 — forked from micahstubbs/.block
aframe + d3 experiment
license: CC0-1.0