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
# | |
# Will be built with VITE, PG, and different bin/dev | |
# $> cnrav railsvite 8.0.0 | |
# cnrav myapp 8.0.0 --skip-docker --skip-kamal --skip-jbuilder --skip-action-text | |
# | |
cnrav () | |
{ | |
# Create directory, initialize Rails project | |
mkdir -p -- "$1" && cd -P -- "$1" | |
echo "source 'https://rubygems.org'" > Gemfile |
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
:: | |
:: Aliases for windows command line. Heavily inspired by https://gist.github.com/benjamine/5992592 | |
:: | |
:: Installation: | |
:: | |
:: - create a folder for your aliases (eg: ```c:\cmd-aliases```) | |
:: - add that folder to your PATH variable | |
:: - save this script as alias.cmd on that folder | |
:: - run "alias" to see usage | |
:: |
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
NodeList.prototype.forEach = Array.prototype.forEach; | |
document.querySelectorAll('.js-branch-row button[type="submit"].text-red').forEach(function(el){el.click()}); |
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
JSON.stringify({ | |
h1:$('h1').map(function(){return $.trim($(this).text());}).get(), | |
h2:$('h2').map(function(){return $.trim($(this).text());}).get(), | |
h3:$('h3').map(function(){return $.trim($(this).text());}).get(), | |
h4:$('h4').map(function(){return $.trim($(this).text());}).get(), | |
h5:$('h5').map(function(){return $.trim($(this).text());}).get(), | |
h6:$('h6').map(function(){return $.trim($(this).text());}).get() | |
},null, 2) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta content="initial-scale=1, maximum-scale=1" name="viewport"> | |
<title>Clara | Erreur 500</title> | |
<link href="https://fonts.googleapis.com/css?family=Roboto:700" rel="stylesheet"> | |
<style type="text/css"> | |
body { | |
font-family: 'Roboto'; | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta content="initial-scale=1, maximum-scale=1" name="viewport"> | |
<title>Clara | Erreur 404</title> | |
<link href="https://fonts.googleapis.com/css?family=Roboto:700" rel="stylesheet"> | |
<style type="text/css"> | |
body { | |
font-family: 'Roboto'; | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// var forceArray = _.cond([ | |
// [_.isArray, _.identity], | |
// [_.stubTrue,_.stubArray] | |
// ]); | |
// forceArray(_.attempt(_.isError, '>_>')) | |
// _.isError(_.attempt(computeArray, [1,4,5])) ? console.error() |
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
function hello() { | |
console.log("hello max"); | |
} |
NewerOlder