This file contains 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
Look at the README. |
This file contains 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
#!/usr/bin/perl -w | |
# chat_client.pl | |
use strict; | |
use IO::Socket::INET; | |
my $port = shift or die "No port\n"; | |
my $server = shift or die "No server\n"; | |
my $client_socket = IO::Socket::INET->new( | |
PeerPort => $port, | |
PeerAddr => $server, |
This file contains 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
#!/usr/bin/perl -w | |
# chat_server.pl | |
use strict; | |
use IO::Socket::INET; | |
my $port = shift or die "Port required!\n"; | |
my $socket = IO::Socket::INET->new( | |
LocalPort => $port, | |
Proto => 'tcp', | |
Listen => SOMAXCONN |
This file contains 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
// this is the background code... | |
// listen for our browerAction to be clicked | |
chrome.browserAction.onClicked.addListener(function (tab) { | |
// for the current tab, inject the "inject.js" file & execute it | |
chrome.tabs.executeScript(tab.ib, { | |
file: 'inject.js' | |
}); | |
}); |
This file contains 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
# Create directories | |
mkdir c:\mongo\db | |
mkdir c:\mongo\config | |
mkdir c:\mongo\log | |
# Create a configuration file | |
# in c:\mongo\config\ as | |
# 'mongod.cfg' and paste: | |
#|==================================| | |
#| logpath=C:\mongo\log\mongodb.log | |
This file contains 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
a.bugzillaLink { | |
position: absolute; | |
top: -24px; | |
right: 0; | |
background: #ebebeb; | |
z-index: 1; | |
padding: 3px 5px; | |
} |
This file contains 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
// ==UserScript== | |
// @name Mockup vodafone | |
// @namespace vortek | |
// @description Load variables | |
// @include https://vf2.ux-playground.com/gateways/* | |
// @version 1 | |
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js | |
// ==/UserScript== | |
// a function that loads jQuery and calls a callback function when jQuery has finished loading | |
function addJQuery(callback) { |
This file contains 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
{ | |
"cardapio": [ | |
{ | |
"tipo": "sanduiche", | |
"nome": "x-salada", | |
"valor": 8, | |
"id": 1 | |
}, | |
{ | |
"tipo": "sanduiche", |
This file contains 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 { Component, OnInit } from '@angular/core'; | |
import { OfertasServices, Oferta } from './ofertas.service'; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.scss'] | |
}) | |
export class AppComponent implements OnInit { | |
title = 'exemplo'; |
This file contains 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 { Component, OnInit } from '@angular/core'; | |
import { NotificationService } from './notification.service'; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.scss'] | |
}) | |
export class Exemplo1Component implements OnInit { |
OlderNewer