Compare commits
10 commits
eaacf09e12
...
b73a9be379
| Author | SHA1 | Date | |
|---|---|---|---|
| b73a9be379 | |||
| 2b29af618e | |||
| bac9132e78 | |||
| d672867ffd | |||
| c2f3415bea | |||
| 22a6513908 | |||
| 7333b52a40 | |||
| 47a24d39c8 | |||
| fc3f606faf | |||
| 7faa16ce2d |
4 changed files with 83 additions and 75 deletions
10
README.org
10
README.org
|
|
@ -2,27 +2,29 @@
|
||||||
|
|
||||||
Ever felt lost in a group conversation?
|
Ever felt lost in a group conversation?
|
||||||
Have you run out of conversation topics with your friends?
|
Have you run out of conversation topics with your friends?
|
||||||
Don't worry, *socialize* is there to support you.
|
Don't worry, *socialize* is here to support you.
|
||||||
|
|
||||||
It is a self-contained web page which asks socializing, funny and interesting questions.
|
It is a self-contained web page which asks socializing, funny and interesting questions.
|
||||||
Use it as conversation starter or just for fun.
|
Use it as conversation starter or just for fun.
|
||||||
|
|
||||||
|
You can see it in action [[https://deleh.github.io/socialize][here]].
|
||||||
|
|
||||||
** Installation
|
** Installation
|
||||||
|
|
||||||
This is just one HTML file, grab the =index.html= and open it in your favourite browser or host it with whatever webserver you like.
|
This is just one HTML file, grab the =index.html= and open it in your favourite browser or host it with whatever webserver you like.
|
||||||
|
|
||||||
This web page is also available as [[https://nixos.wiki/wiki/Flakes][Nix Flake]].
|
This web page is also available as [[https://nixos.wiki/wiki/Flakes][Nix Flake]].
|
||||||
The =index.html= file is provided in =/var/www/socialize= of the flake output.
|
The =index.html= file is provided in the root of the flake package output.
|
||||||
To use it for example with Nginx, the flakes (here included as =socialize=) content can be accessed like this:
|
To use it for example with Nginx, the flakes (here included as =socialize=) content can be accessed like this:
|
||||||
|
|
||||||
#+begin_example nix
|
#+begin_example nix
|
||||||
services.nginx.virtualHosts."example.org".locations."/".root = "${socialize.packages."<your-arch>".socialize}/var/www/socialize";
|
services.nginx.virtualHosts."example.org".locations."/".root = "${socialize.packages."<your-arch>".socialize}";
|
||||||
#+end_example
|
#+end_example
|
||||||
|
|
||||||
*** Requirements
|
*** Requirements
|
||||||
|
|
||||||
The browser must have JavaScript enabled.
|
The browser must have JavaScript enabled.
|
||||||
But don't worry, nothing is loaded from a third party.
|
But don't worry, nothing gets loaded from a third party.
|
||||||
|
|
||||||
** Adding questions
|
** Adding questions
|
||||||
|
|
||||||
|
|
|
||||||
17
flake.lock
generated
17
flake.lock
generated
|
|
@ -2,11 +2,11 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"flake-utils": {
|
"flake-utils": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1629481132,
|
"lastModified": 1644229661,
|
||||||
"narHash": "sha256-JHgasjPR0/J1J3DRm4KxM4zTyAj4IOJY8vIl75v/kPI=",
|
"narHash": "sha256-1YdnJAsNy69bpcjuoKdOYQX0YxZBiCYZo4Twxerqv7k=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "flake-utils",
|
"repo": "flake-utils",
|
||||||
"rev": "997f7efcb746a9c140ce1f13c72263189225f482",
|
"rev": "3cecb5b042f7f209c56ffd8371b2711a290ec797",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -17,11 +17,12 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1628077112,
|
"lastModified": 1646506091,
|
||||||
"narHash": "sha256-ehfkGNBdq0GFbezcXZP4OPcik+k4Lm7mF8NUKJlq6Ho=",
|
"narHash": "sha256-sWNAJE2m+HOh1jtXlHcnhxsj6/sXrHgbqVNcVRlveK4=",
|
||||||
"path": "/nix/store/gy0x00sjl3lczh2h6akhhcfyp263nmy5-source",
|
"owner": "NixOS",
|
||||||
"rev": "465daf79b4a23d6e47d2efddece7120da8800c63",
|
"repo": "nixpkgs",
|
||||||
"type": "path"
|
"rev": "3e644bd62489b516292c816f70bf0052c693b3c7",
|
||||||
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"id": "nixpkgs",
|
"id": "nixpkgs",
|
||||||
|
|
|
||||||
|
|
@ -1,28 +1,22 @@
|
||||||
{
|
{
|
||||||
description = "socialize web page";
|
description = "socialize web page";
|
||||||
|
|
||||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
|
||||||
outputs = { self, nixpkgs, flake-utils }:
|
outputs = { self, nixpkgs, flake-utils }:
|
||||||
|
|
||||||
flake-utils.lib.eachDefaultSystem
|
flake-utils.lib.eachDefaultSystem
|
||||||
(system:
|
(system:
|
||||||
let
|
let
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
# Package
|
|
||||||
packages.socialize =
|
packages.socialize =
|
||||||
pkgs.stdenv.mkDerivation {
|
pkgs.stdenv.mkDerivation {
|
||||||
name = "socialize";
|
name = "socialize";
|
||||||
src = self;
|
src = self;
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -m 444 -D index.html $out/var/www/socialize/index.html
|
install -m 444 -D index.html $out/index.html
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
defaultPackage = self.packages.${system}.socialize;
|
defaultPackage = self.packages.${system}.socialize;
|
||||||
}
|
}
|
||||||
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
123
index.html
123
index.html
|
|
@ -59,62 +59,73 @@
|
||||||
|
|
||||||
// Questions
|
// Questions
|
||||||
const questions = [
|
const questions = [
|
||||||
"Are you a cat person or a normal person?",
|
"Are you a cat person or a normal person?",
|
||||||
"Blueberry muffin, with ketchup or mustard?",
|
"Are you into musicals?",
|
||||||
"Do you sympathize more with the Empire or the Rebels?",
|
"Blueberry muffin, with ketchup or mustard?",
|
||||||
"How do you feel about beeing disadvantaged as a woman/privileged as a man in society?",
|
"Do you like bread?",
|
||||||
"How do you feel about putting pineapple on pizza?",
|
"Do you sympathize more with the Empire or the Rebels?",
|
||||||
"If animals could talk, which would be the rudest?",
|
"Do you think there are more doors or wheels in the world?",
|
||||||
"If peanut butter wasn’t called peanut butter, what would it be called?",
|
"For which folk band would you like to be a roadie?",
|
||||||
"If you could merge two different animals to create the ultimate animal, what two animals would it be and what would be their product?",
|
"Have you ever been to work without pants?",
|
||||||
"If you could replace all of the grass in the world with something else, what would it be and why?",
|
"How do you feel about beeing disadvantaged as a woman/privileged as a man in society?",
|
||||||
"If you had to go to jail for any reason, what would it be?",
|
"How do you feel about putting pineapple on pizza?",
|
||||||
"If you were transported 400 years into the past with no clothes or anything else, how would you prove that you were from the future?",
|
"If animals could talk, which would be the rudest?",
|
||||||
"If you were wrongfully put into an insane asylum, how would you convince them that you’re actually sane and not just pretending to be sane?",
|
"If peanut butter wasn’t called peanut butter, what would it be called?",
|
||||||
"If you would be a superhero with an unlikely power, would it be the ability to shoot meatballs out of your nostrils or the power to create force fields but only around ants?",
|
"If you could be born elsewhere and completely restart all of your experiences, where would you go?",
|
||||||
"Is a hotdog a sandwich?",
|
"If you could change one law of nature, what would it be and what would be the consequences?",
|
||||||
"Is cereal soup?",
|
"If you could merge two different animals to create the ultimate animal, what two animals would it be and what would be their product?",
|
||||||
"Toilet paper, over or under?",
|
"If you could program one app, what would it be?",
|
||||||
"What are some fun and interesting alternatives to war that countries could settle their differences with?",
|
"If you could replace all of the grass in the world with something else, what would it be and why?",
|
||||||
"What did you miss most during the Covid-19 pandemic?",
|
"If you had to go to jail for any reason, what would it be?",
|
||||||
"What do you normally do for fun?",
|
"If you were transported 400 years into the past with no clothes or anything else, how would you prove that you were from the future?",
|
||||||
"What hat would you wear right now if it were fashionable to wear one at every occasion?",
|
"If you were wrongfully put into an insane asylum, how would you convince them that you’re actually sane and not just pretending to be sane?",
|
||||||
"What mythical creature would improve the world most if it existed?",
|
"If you would be a superhero with an unlikely power, would it be the ability to shoot meatballs out of your nostrils or the power to create force fields but only around ants?",
|
||||||
"What secret conspiracy would you like to start?",
|
"Is a hotdog a sandwich?",
|
||||||
"What set of items could you buy that would make the cashier the most uncomfortable?",
|
"Is cereal soup?",
|
||||||
"What sport would be the funniest to add a mandatory amount of alcohol to?",
|
"Toilet paper, over or under?",
|
||||||
"What two totally normal things become really weird if you do them back to back?",
|
"What are some fun and interesting alternatives to war that countries could settle their differences with?",
|
||||||
"What will finally break the internet?",
|
"What are your thoughts on raisins?",
|
||||||
"What would be the coolest animal to scale up to the size of a horse?",
|
"What did you miss most during the Covid-19 pandemic?",
|
||||||
"What would be your weapon of choice in a zombie apocalypse?",
|
"What do you normally do for fun?",
|
||||||
"What would you name your boat if you had one?",
|
"What hat would you wear right now if it were fashionable to wear one at every occasion?",
|
||||||
"What would you name your spaceship if you had one?",
|
"What mythical creature would improve the world most if it existed?",
|
||||||
"What’s invisible but you wish people could see?",
|
"What secret conspiracy would you like to start?",
|
||||||
"What’s something that everyone looks stupid doing?",
|
"What set of items could you buy that would make the cashier the most uncomfortable?",
|
||||||
"What’s the best Wi-Fi name you’ve seen?",
|
"What sport would be the funniest to add a mandatory amount of alcohol to?",
|
||||||
"What’s the dumbest way you have been injured?",
|
"What two totally normal things become really weird if you do them back to back?",
|
||||||
"What’s the funniest joke you know by heart?",
|
"What will finally break the internet?",
|
||||||
"What’s the most ridiculous fact you know?",
|
"What would be the coolest animal to scale up to the size of a horse?",
|
||||||
"What’s the most useless talent you have?",
|
"What would be your weapon of choice in a zombie apocalypse?",
|
||||||
"What’s the weirdest smell you have ever smelled?",
|
"What would you name your boat if you had one?",
|
||||||
"What’s the weirdest thing you have seen in someone else’s home?",
|
"What would you name your spaceship if you had one?",
|
||||||
"What’s the worst purchase you have ever made?",
|
"What’s invisible but you wish people could see?",
|
||||||
"What’s your animal of the day?",
|
"What’s something that everyone looks stupid doing?",
|
||||||
"What’s your favorite sock color?",
|
"What’s the best Wi-Fi name you’ve seen?",
|
||||||
"What’s your favourite Austin Powers movie?",
|
"What’s the dumbest way you have been injured?",
|
||||||
"What’s your favourite Gilmore Girls episode?",
|
"What’s the funniest joke you know by heart?",
|
||||||
"What’s your favourite beer brewery?",
|
"What’s the most ridiculous fact you know?",
|
||||||
"What’s your hidden talent?",
|
"What’s the most useless talent you have?",
|
||||||
"What’s your net income?",
|
"What’s the weirdest smell you have ever smelled?",
|
||||||
"Which body part do you wish you could detach and why?",
|
"What’s the weirdest thing you have seen in someone else’s home?",
|
||||||
"Which company will put advertising on the moon first?",
|
"What’s the worst purchase you have ever made?",
|
||||||
"Which fruit describes you best?",
|
"What’s your animal of the day?",
|
||||||
"Which sport do you think they’ll invent next?",
|
"What’s your favorite sock color?",
|
||||||
"Would you rather be always 15 minutes late or always 30 minutes early?",
|
"What’s your favorite thing to spend on or would love to spend on?",
|
||||||
"Would you rather brush your teeth with a toilet brush or clean the toilet with your toothbrush?",
|
"What’s your favourite Austin Powers movie?",
|
||||||
"Would you rather have drill-hands or rollerblade-feet?",
|
"What’s your favourite Gilmore Girls episode?",
|
||||||
"Would you take the red pill or the blue pill?",
|
"What’s your favourite beer brewery?",
|
||||||
"You’re a mad scientist, what scientific experiment would you run if money and ethics weren’t an issue?",
|
"What’s your hidden talent?",
|
||||||
|
"What’s your net income?",
|
||||||
|
"Which body part do you wish you could detach and why?",
|
||||||
|
"Which company will put advertising on the moon first?",
|
||||||
|
"Which fruit describes you best?",
|
||||||
|
"Which sport do you think they’ll invent next?",
|
||||||
|
"Which three records do you take with you to a desert island?",
|
||||||
|
"Would you rather be always 15 minutes late or always 30 minutes early?",
|
||||||
|
"Would you rather brush your teeth with a toilet brush or clean the toilet with your toothbrush?",
|
||||||
|
"Would you rather have drill-hands or rollerblade-feet?",
|
||||||
|
"Would you take the red pill or the blue pill?",
|
||||||
|
"You’re a mad scientist, what scientific experiment would you run if money and ethics weren’t an issue?",
|
||||||
];
|
];
|
||||||
|
|
||||||
// Get random question
|
// Get random question
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue