Skip to content

Instantly share code, notes, and snippets.

View Zeko369's full-sized avatar
:octocat:
Building cool stuff

Fran Zekan Zeko369

:octocat:
Building cool stuff
  • Zagreb, Croatia
  • 02:40 (UTC +02:00)
  • X @Zeko369
View GitHub Profile
# The following comments fill some of the gaps in Solargraph's understanding of
# Rails apps. Since they're all in YARD, they get mapped in Solargraph but
# ignored at runtime.
#
# You can put this file anywhere in the project, as long as it gets included in
# the workspace maps. It's recommended that you keep it in a standalone file
# instead of pasting it into an existing one.
# @!parse
# class ActionController::Base
#include <stdio.h>
double red(double x)
{
int plus = 0;
int i = 1;
double sum = 1;
double last = 0;
double fact = 1;
describe LocationsController, type: :request do
let(:namespace) { create(:namespace) }
let(:user) { create(:user, namespace: namespace) }
let(:admin) { create(:user, namespace: namespace, role: :namespace_owner) }
let(:location) { create(:location, namespace: namespace) }
before do
location
sign_in(admin)
end
var app = require("express")();
var http = require("http").Server(app);
var io = require("socket.io")(http);
var port = process.env.PORT || 3000;
playerList = {};
io.on("connection", socket => {
// new Clients
socket.on("Login", a => {
# frozen_string_literal: true
module Users
class RegistrationsController < Devise::RegistrationsController
before_action :configure_sign_up_params, only: [:create]
# before_action :configure_account_update_params, only: [:update]
# GET /resource/sign_up
def new
if params[:invite_code].present?

Baze podataka

Update

UPDATE mjesto
  SET naziv = "Varazdin"
  WHERE pbr = 42000

slika

;PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
document.querySelectorAll('.sviHoverKurci').forEach((elem) => {
const fn = (add) => () => {
const thingy = document.querySelector('.thingy');
if (add) {
thingy.classList.add('.class');
} else {
thingy.classList.remove('.class');
}
};
<html>
<head>
<style>
.red {
background-color: red;
}
</style>
</head>
<body>