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 <iostream> | |
#include <system_error> | |
#include <memory> | |
template<typename T> | |
class di : public std::shared_ptr<T> | |
{ | |
static std::shared_ptr<T> ptr; | |
public: |
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
import * as crypto from 'crypto'; | |
var SocketHandlerCounter = 0; | |
export class SocketHandler { | |
constructor(req, socket) { | |
this.req = req; | |
this.socket = socket; | |
this.id = SocketHandlerCounter++; | |
this.data = this.parse.bind(this) | |
} |
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
/* | |
skip: giorni del mese da skippare | |
firstDay: primo giorno del mese nella settimana: | |
*/ | |
lunedy = 1; | |
martedy = 2; | |
mercoledy = 3; | |
giovedy = 4; | |
venerdy = 5; | |
sabatdy = 6; |
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
<?php | |
$array = [ | |
"Complimenti", | |
"ora", | |
"puoi", | |
[ | |
"inviare", | |
[ | |
"la tua", |
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
public class ProductShotsPattern | |
{ | |
public string Name { get; set; } | |
public int Data { get; set; } | |
public List<string> Pattern { get; set; } | |
public List<ProductShotsPattern> Overrides { get; set; } | |
public ProductShotsPattern Find(string search, int depth = 0) | |
{ |
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 setPseudoStyle = (function() { | |
document.head.appendChild(document.createElement('style')); | |
style = document.styleSheets[document.styleSheets.length-1]; | |
return function setPseudoStyle(elm, pseudo, text){ | |
var id = elm.dataset.psudoLinkToStyle | |
if(void 0 === id){ | |
id = style.rules.length; | |
style.addRule( '[data-psudo-link-to-style="'+id+'"]:'+pseudo, '', id); | |
elm.dataset.psudoLinkToStyle = id; |