Let's say you want to host domains first.com
and second.com
.
Create folders for their files:
<script setup lang="ts"> | |
import { ref } from 'vue'; | |
import InfiniteScroll from '~/components/InfiniteScroll.vue'; | |
import SkeletonPostItem from '~/components/SkeletonPostItem.vue'; | |
interface State { | |
loaded: () => void; | |
complete: () => void; | |
} |
import React from 'react'; | |
import {ScrollView, Text} from 'react-native'; | |
const isCloseToBottom = ({layoutMeasurement, contentOffset, contentSize}) => { | |
const paddingToBottom = 20; | |
return layoutMeasurement.height + contentOffset.y >= | |
contentSize.height - paddingToBottom; | |
}; | |
const MyCoolScrollViewComponent = ({enableSomeButton}) => ( |
# Compresses all .js and .css files under the assets path. | |
namespace :deploy do | |
# It is important that we execute this after :normalize_assets because | |
# ngx_http_gzip_static_module recommends that compressed and uncompressed | |
# variants have the same mtime. Note that gzip(1) sets the mtime of the | |
# compressed file after the original one automatically. | |
after :normalize_assets, :gzip_assets do | |
on release_roles(fetch(:assets_roles)) do | |
assets_path = release_path.join('public', fetch(:assets_prefix)) | |
within assets_path do |
<?php | |
// simple technique to remove bugs from your code | |
// example buggy code | |
$your_code = "<html><Oh man>i hope i don't have any American cockroaches in my code</Oh man></html>"; | |
$list_of_bugs = array('American cockroach', 'Ants', 'Aphids', 'Aphids', 'Asian paper wasp', | |
'Asian paper wasp nest', 'Assassin bug', 'Australian bag moth', 'Australian bag moth pupa', | |
'Avondale spider', 'Backswimmer', 'Bamboo moth', 'Banana moth', 'Banana moth pupa', |
sass-convert -R ./ -F sass -T scss && rm *.sass |
// List all files in a directory in Node.js recursively in a synchronous fashion | |
var walkSync = function(dir, filelist) { | |
var fs = fs || require('fs'), | |
files = fs.readdirSync(dir); | |
filelist = filelist || []; | |
files.forEach(function(file) { | |
if (fs.statSync(dir + file).isDirectory()) { | |
filelist = walkSync(dir + file + '/', filelist); | |
} | |
else { |
FIXME: | |
WARNING: Nokogiri was built against LibXML version 2.7.3, but has dynamically loaded 2.7.8 | |
or | |
ERROR -: Incompatible library version: nokogiri.bundle requires version 11.0.0 or later, but libxml2.2.dylib provides version 10.0.0 | |
gem uninstall nokogiri libxml-ruby | |
brew update | |
brew uninstall libxml2 |
<% flash.each do |type, message| %> | |
<div class="alert <%= bootstrap_class_for(type) %> fade in"> | |
<button class="close" data-dismiss="alert">×</button> | |
<%= message %> | |
</div> | |
<% end %> |
#!/bin/bash | |
set -e | |
### BEGIN INIT INFO | |
# Provides: unicorn | |
# Required-Start: $all | |
# Required-Stop: $network $local_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 |