rails new rails-6-svelte --webpack=svelte
cd rails-6-svelte
rails generate controller welcome index
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Converts text from | |
* "thing + (Beep) $%^boop" | |
* to | |
* "thing-beep-boop" | |
* | |
* @author Richard de Wit | |
* @link https://gist.github.com/richarddewit/06692629a1503f931ff9d54002ffc14e | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Paste this in your JavaScript console: | |
var width = 1440; | |
var height = 500; | |
var minWidth = 1000; | |
var maxWidth = 1500; | |
var ar = height / width; | |
for (var i = minWidth; i < maxWidth; i++) { | |
if (ar * i % 1 === 0) { | |
console.log(i + 'x' + (i * ar)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Redirect output to stderr. | |
exec 1>&2 | |
# enable user input | |
exec < /dev/tty | |
consoleregexp='^\+.*console\.log(' | |
# CHECK | |
if test $(git diff --cached | grep $consoleregexp | wc -l) != 0 | |
then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/scry/completion_provider.cr b/src/scry/completion_provider.cr | |
index 29e0d36..f67438c 100644 | |
--- a/src/scry/completion_provider.cr | |
+++ b/src/scry/completion_provider.cr | |
@@ -1,4 +1,5 @@ | |
require "./log" | |
+require "compiler/crystal/codegen/target" | |
require "compiler/crystal/crystal_path" | |
require "./completion/*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://www.poebuilds.cc/ | |
(function() { | |
function createElementFromHTML(htmlString) { | |
var div = document.createElement('div'); | |
div.innerHTML = htmlString.trim(); | |
// Change this to div.childNodes to support multiple top-level nodes | |
return div.firstChild; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
ECHO Flashing file %~1 | |
ECHO. | |
mdloader_windows.exe --first --download "%~1" --restart | |
PAUSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include QMK_KEYBOARD_H | |
// Layers | |
#define _BASE 0 // Base (QWERTY) | |
#define _FN 3 // Function | |
#define BASE DF(_BASE) | |
// Aliases | |
#define ___V___ KC_TRNS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if [[ "$1" == "-" ]]; then | |
shift | |
fi | |
if [ -z "$1" ]; then | |
echo "Missing argument USER" | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.rainbow-wrapper { | |
position: absolute; | |
left: 0; | |
right: 0; | |
top: 0; | |
height: 10px; | |
width: 100%; | |
overflow: hidden; | |
} |