2/1
2/1 2/1
2/1 2/1 2/1
2/1
a0 a1 a2
This file contains hidden or 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
# 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 |
This file contains hidden or 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
#include <stdio.h> | |
double red(double x) | |
{ | |
int plus = 0; | |
int i = 1; | |
double sum = 1; | |
double last = 0; | |
double fact = 1; |
This file contains hidden or 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
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 |
This file contains hidden or 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
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 => { |
This file contains hidden or 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
# 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? |
This file contains hidden or 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
;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 |
This file contains hidden or 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
document.querySelectorAll('.sviHoverKurci').forEach((elem) => { | |
const fn = (add) => () => { | |
const thingy = document.querySelector('.thingy'); | |
if (add) { | |
thingy.classList.add('.class'); | |
} else { | |
thingy.classList.remove('.class'); | |
} | |
}; |
This file contains hidden or 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
<html> | |
<head> | |
<style> | |
.red { | |
background-color: red; | |
} | |
</style> | |
</head> | |
<body> |
OlderNewer