Skip to content

Instantly share code, notes, and snippets.

View jumanji27's full-sized avatar
🐻
Sometimes you eat the bear and sometimes, well, the bear eats you.

Nikita Lebedev jumanji27

🐻
Sometimes you eat the bear and sometimes, well, the bear eats you.
View GitHub Profile
@jumanji27
jumanji27 / go-problem-4.go
Created April 11, 2025 14:03
go-problem-4.go
package main
import (
"fmt"
"sync"
"time"
)
func worker(id int, wg *sync.WaitGroup) {
defer wg.Done()
@jumanji27
jumanji27 / go-problems-3.go
Created April 11, 2025 13:42
go-problems-3.go
package main
import (
"fmt"
)
var counter int
func increment() {
for i := 0; i < 1000; i++ {
@jumanji27
jumanji27 / CSS.sublime-settings
Last active March 22, 2021 11:22
sublime settings
{
"extensions":
[
]
}
// Nikita Lebedev's blog, nazz.me/simple-jquery-popup
(function($) {
$.fn.simplePopup = function() {
var simplePopup = {
// Events
initialize: function(self) {
var popup = $(".js__popup");
// Блог Никиты Лебедева, nazz.me/simple-jquery-popup
(function($) {
$.fn.simplePopup = function() {
var simplePopup = {
// Обработчики
initialize: function(self) {
var popup = $(".js__popup");
// Блог Никиты Лебедева, nazz.me/simple-jquery-popup
(function($) {
$.fn.simplePopup = function() {
var simplePopup = {
// Обработчики
initialize: function(self) {
var popup = $(".js__popup");
// Где-то в html есть <a href="#" class="js__p_hidden_start" style="display:none;">Нажмите</a>
$(function() {
$(".js__p_hidden_start").simplePopup();
var hiddenPopup = function() {
$(".js__p_hidden_start").on("click");
// Или $(".js__p_hidden_start").click();
};