Skip to content

Instantly share code, notes, and snippets.

View Diullei's full-sized avatar

Diullei Gomes Diullei

View GitHub Profile
<h1>teste</h1>
PASSOS:
1) alterar no arquivo index.js o nome do projeto de "node-ant" para "node_ant" na geração da tag <project>. Isso foi necessário para conseguirmos recuperar a referência ao nome do projeto no código javascript que iremos escrever no teste item (3). Não sei como o ant gera o nome quando usamos "-" no meio desse nome.
2) alterar no arquivo jxon.js o trecho de código:
...
else if (key === 'keyValue') {
keyValue = cur;
}
using System.Text;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace TestProject1
{
[TestClass]
public class TestSmsDojo
{
[TestMethod]
@Diullei
Diullei / example.coffee
Created October 20, 2012 06:15 — forked from dc/example.coffee
ANSI styling — node.js
terminal = require('terminal')
console.log terminal.ANSIFormat("{{magenta}}Hello {{blue}}World!{{reset}}")
console.log terminal.ANSIStyle('red;inverse') + "ERROR:" + terminal.ANSIStyle('default;noinverse') + " method not found"
@Diullei
Diullei / result.js
Created October 29, 2012 19:01 — forked from juandopazo/result.js
YUI TypeScript definitions
module Y {
interface Anim extends Base {
}
interface App extends App_Base, App_Content, App_Transitions, PjaxContent {
(config?: any);
/*
underscore-1.4.4.d.ts may be freely distributed under the MIT license.
Copyright (c) 2013 Josh Baldwin https://github.com/jbaldwin/underscore.d.ts
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Web.Http.Dependencies;
using Ninject;
using Ninject.Syntax;
public class NinjectDependencyScope : IDependencyScope
{
private IResolutionRoot resolver;
@Diullei
Diullei / FizzBuzz.hs
Last active December 20, 2015 08:29
FizzBuzz implementation using Haskell http://codingdojo.org/cgi-bin/wiki.pl?KataFizzBuzz
{-
FizzBuzz implementation using Haskell
http://codingdojo.org/cgi-bin/wiki.pl?KataFizzBuzz
-}
fizzBuzz = [
if x `mod` 3 == 0 then
"Fizz"
else
if x `mod` 5 == 0 then
(defn my-last [xs]
(if (= (count xs) 1)
(first xs)
(my-last (rest xs))))
@Diullei
Diullei / gt.js
Created June 2, 2015 20:49
This code will generate a task.json file from your Gruntfile.js and will allow you to run grunt tasks from inside VSCode
/* ****************************************************************************
This code will generate a task.json file from your Gruntfile.js and will
allow you to run grunt tasks from inside VSCode
****************************************************************************
1) Put this file in the same directory of your gruntfile.js (NOTE: must be
the app root directory) run the following command line:
node gt.js