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
<script context="module" lang="ts"> | |
import type { SvelteComponent } from 'svelte'; | |
export interface ColumnConfig { | |
sortable?: boolean; | |
sort?: string; | |
name: string; | |
class?: string; | |
default?: string; | |
label: string; |
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
--------------------------------------- | |
-- Test connection to the internet | |
--------------------------------------- | |
local socket = require("socket") | |
local connection = {} | |
local function manual_test(callback, timeout) | |
if timeout == nil then timeout = 1000 end | |
local connection = assert(socket.tcp()) | |
connection:settimeout(0) |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<document> | |
<steps> | |
<wait>5</wait> | |
<press>SkipIntro</press> | |
<wait>3</wait> | |
<press>Menu/Settings</press> | |
<wait>3</wait> | |
<press>SettingsTab/Options</press> | |
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
# Delete all files in the drive folder, excluding google docs | |
find . -type f \( ! -iname "*.gdoc" -and ! -iname "*.html" -and ! -iname "*.gsheet" -and ! -iname "*.gdraw" -and ! -iname "*.gslides" -and ! -iname "*.gform" -and ! -iname "*.gtable" -and ! -iname Icon\? \) -delete |
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 | |
tmpfile1=$(mktemp /tmp/report.XXXXXX) | |
tmpfile2=$(mktemp /tmp/report2.XXXXXX) | |
cd "$1" | |
find . >> $tmpfile1 | |
cd "$2" | |
find . >> $tmpfile2 |
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
# Delete empty folders recursively | |
find . -type d -empty -delete |
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
/* | |
* An usage example of the previous library | |
*/ | |
function loadData() { | |
// Send score 1 | |
indiexpo.sendScore(1).then(function(data) { | |
console.log('score sent, response:', data); | |
}); | |
// Get current user username |
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
begin | |
require 'bundler/inline' | |
rescue LoadError => e | |
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler' | |
raise e | |
end | |
gemfile(true) do | |
source 'https://rubygems.org' | |
gem 'rails', '5.1.1' # use correct rails version |
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
# Customized dotfiles. Original credits: | |
# Shell prompt based on the Solarized Dark theme. | |
# Screenshot: http://i.imgur.com/EkEtphC.png | |
# Heavily inspired by @necolas’s prompt: https://github.com/necolas/dotfiles | |
# iTerm → Profiles → Text → use 13pt Monaco with 1.1 vertical spacing. | |
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then | |
export TERM='gnome-256color'; | |
elif infocmp xterm-256color >/dev/null 2>&1; 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
Neo4j::ActiveBase.current_session.adaptor.logger.level = Logger::DEBUG | |
Neo4j::Core::CypherSession::Adaptors::Base.subscribe_to_query(&method(:puts)) | |
Neo4j::Core::CypherSession::Adaptors::HTTP.subscribe_to_request(&method(:puts)) | |
Neo4j::Core::CypherSession::Adaptors::Embedded.subscribe_to_transaction(&method(:puts)) |