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
package main | |
import ( | |
"fmt" | |
"sync" | |
"time" | |
) | |
func worker(id int, wg *sync.WaitGroup) { | |
defer wg.Done() |
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
package main | |
import ( | |
"fmt" | |
) | |
var counter int | |
func increment() { | |
for i := 0; i < 1000; i++ { |
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
Show hidden characters
{ | |
"extensions": | |
[ | |
] | |
} |
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
// Nikita Lebedev's blog, nazz.me/simple-jquery-popup | |
(function($) { | |
$.fn.simplePopup = function() { | |
var simplePopup = { | |
// Events | |
initialize: function(self) { | |
var popup = $(".js__popup"); |
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
// Блог Никиты Лебедева, nazz.me/simple-jquery-popup | |
(function($) { | |
$.fn.simplePopup = function() { | |
var simplePopup = { | |
// Обработчики | |
initialize: function(self) { | |
var popup = $(".js__popup"); |
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
// Блог Никиты Лебедева, nazz.me/simple-jquery-popup | |
(function($) { | |
$.fn.simplePopup = function() { | |
var simplePopup = { | |
// Обработчики | |
initialize: function(self) { | |
var popup = $(".js__popup"); |
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 есть <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(); | |
}; |