<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
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 reg = /^[a-z]$/; | |
console.log('case 01: typeof /^[a-z]$/ returns %s', typeof reg); | |
console.log('case 02: /^[a-z]$/ instanceof RegExp returns %s', reg instanceof RegExp); | |
console.log('case 03: /^[a-z]$/.constructor.name === "RegExp" returns %s', reg.constructor.name === 'RegExp'); | |
var util = require('util'), | |
vm = require('vm'), | |
sandbox = { u: reg }; |
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 settings = require('../config/settings'), | |
url = require('url'), | |
mongodb = require("mongodb"); | |
var Database = function(){ | |
this._isConnected = false; | |
this.uri = url.parse(settings.mongodb, true); | |
var q = this.uri.query; | |
this.socketOptions = { | |
timeout : q.timeout || 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
# -*- mode: ruby -*- | |
# # vi: set ft=ruby : | |
require 'fileutils' | |
CLOUD_CONFIG_PATH = "./user-data" | |
CONFIG= "config.rb" | |
# Defaults for config options defined in CONFIG | |
$num_instances = 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
# goes in /etc/nginx/sites-available & link in ../sites-enabled | |
upstream graphite { | |
server unix:///tmp/uwsgi.sock; | |
} | |
server { | |
listen 9002; | |
server_name localhost; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<array> | |
<dict> | |
<key>name</key> | |
<string>Pages</string> | |
<key>presets</key> |
ATENÇÃO
Estas anotações NÃO compõem um script para ser executado, apesar de possuir comandos a ser executados. Use por sua conta e risco. São apenas anotações para meu próprio uso. Use por sua conta e risco. Este é um setup experimental. Use por sua conta e risco. Estes procedimentos irão apagar completamente as partições de seu disco. Use por sua conta e risco. NÃO siga estas instruções caso deseje montar um sistema com dual boot. Use por sua conta e risco.
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 groovy.json.JsonBuilder | |
import groovy.json.JsonSlurper | |
import groovy.sql.Sql | |
import java.nio.charset.StandardCharsets | |
import org.apache.commons.io.IOUtils | |
import org.apache.nifi.annotation.behavior.EventDriven | |
import org.apache.nifi.annotation.documentation.CapabilityDescription |
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
/* | |
* Poor's man coroutine | |
*/ | |
function co(g) { | |
return new Promise((resolve, reject)=>{ | |
let it = g(), ret; | |
(function iterate(val){ | |
ret = it.next(val) | |
if(ret.done) return resolve(val) |
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 com.sundeepmachado; | |
import java.io.File; | |
import java.net.URL; | |
import junit.framework.Assert; | |
import org.openqa.selenium.By; | |
import org.openqa.selenium.WebDriver; | |
import org.openqa.selenium.WebElement; |
OlderNewer