Skip to content

Instantly share code, notes, and snippets.

View pchaigno's full-sized avatar

Paul Chaignon pchaigno

View GitHub Profile
@pchaigno
pchaigno / test_mx.rb
Last active August 29, 2015 14:23
Check MX records for domains in swot gem
require 'helper'
require 'net/smtp'
require 'resolv'
def resolve_mx(domain)
mxs = Resolv::DNS.open do |dns|
ress = dns.getresources(domain, Resolv::DNS::Resource::IN::MX)
ress.map { |r| r.exchange.to_s }
end
return mxs
79.94% NCL
20.06% Text
NCL:
CS4311-TBA/visko/visko-modules/module_ncl/webapp/scripts/ncl/gsn_csm_xy2_time_series_inputs.ncl
billsacks/cism_misc-make_scrip_grid_file/make_scrip_grid_file.ncl
datoncito/NclPrograms/primero.ncl
decvalts/wrf/var/graphics/ncl/gen_be/gsi_be_plots.ncl
dongli/geodiag/geodiag.ncl
fanghuan/ncl/func/ListSetType-help.ncl
require 'wikicloth'
@wiki = WikiCloth::Parser.new({
:data => "= Title =\n\n #define R23_HIGH_MOD_ADLER32 r23\n \n #define R18_LOW__ADLER_A r18\n\nEnd of test"
})
puts @wiki.to_html

This should be a title

 #define R18_LOW__ADLER_A r18
 #define R19_HIGH_ADLER_A r19
 #define R20_LOW__ADLER_B r20
 #define R21_HIGH_ADLER_B r21

$ linguist --breakdown
88.40% PHP
11.45% Zephir
0.16% Shell
PHP:
optimizers/ParseAnnotationsOptimizer.php
sandbox/annotation.php
sandbox/em.php
sandbox/router.php
@pchaigno
pchaigno / get_samples_rosetta.py
Last active August 29, 2015 14:15
Python script to retrieve sample codes from Rosetta project
#!/usr/bin/env python
import os
import yaml
import shutil
import re
import glob
import sys
from subprocess import call
# Extensions to replace: format: Language_name_in_Rosetta: [to_replace, new_extension].
65.63% E
34.37% Eiffel
E:
Task/100-doors/E/100-doors.e
Task/99-Bottles-of-Beer/E/99-bottles-of-beer.e
Task/Abstract-type/E/abstract-type-1.e
Task/Abstract-type/E/abstract-type-2.e
Task/Accumulator-factory/E/accumulator-factory.e
Task/Ackermann-function/E/ackermann-function.e

Screenshot Build Status

Screenshot is an ActionScript 3 util for integration testing of UI components. It perfectly works with FlexUnit testing flow and Flex Framework UI components.

Flash has one special ability - output always looks the same.

Fast, lightweight and easy to use