Want to create a Gist from your editor, the command line, or the Services menu? Here's how.
Discover gists
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
package com.vishal2376.animations.ui.theme | |
import androidx.compose.animation.animateColorAsState | |
import androidx.compose.animation.core.EaseInOut | |
import androidx.compose.animation.core.animateFloatAsState | |
import androidx.compose.animation.core.tween | |
import androidx.compose.foundation.background | |
import androidx.compose.foundation.clickable | |
import androidx.compose.foundation.layout.Arrangement | |
import androidx.compose.foundation.layout.Box |
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
# filename: single_page_rails_app.ru | |
# RUN via: `rackup single_page_rails_app.ru` | |
require "bundler/inline" | |
gemfile(true) do | |
source "https://rubygems.org" | |
gem "rack", "2.2.9" | |
gem "rails", "~> 7.1" |
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
# Use Home/End keyboard keys to navigate current line (same as CTRL+A or E), listing all variants for those keys here | |
"\e[1~": beginning-of-line # Home | |
"\e[H": beginning-of-line # Home | |
"\eOH": beginning-of-line # Home | |
"\0001": beginning-of-line # Home | |
"\e[4~": end-of-line # End | |
"\e[F": end-of-line # End | |
"\eOF": end-of-line # End | |
"\0005": end-of-line # End |
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
<# | |
Author: Chris Bibby | |
Date: 11-October-2020 | |
Description: Simple powershell script to start/stop the Tobii Eyetracker service. | |
How To Use: Can be run from a shortcut using the Target: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File <insert path to script>\tobii.ps1 | |
#> | |
$service = get-service TobiiIS5LEYETRACKER5 # Name of service to track, can be changed to stop/start any service. | |
if ($service.Status -eq "Stopped") { | |
$service.start(); |
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
[ | |
{ country: 'Australia', code: 'AU' }, | |
{ country: 'Austria', code: 'AT' }, | |
{ country: 'Belgium', code: 'BE' }, | |
{ country: 'Brazil', code: 'BR' }, | |
{ country: 'Bulgaria', code: 'BG' }, | |
{ country: 'Canada', code: 'CA' }, | |
{ country: 'Croatia', code: 'HR' }, | |
{ country: 'Cyprus', code: 'CY' }, | |
{ country: 'Czech Republic', code: 'CZ' }, |
So you want to write a sync system for a web app with offline and realtime support? Good luck. You might find the following resources useful.
-
Database in a browser, a spec (Stepan Parunashvili)
What problem are we trying to solve with a sync system?
-
The web of tomorrow (Nikita Prokopov)
NewerOlder