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
/** | |
* This program makes a static analysis in | |
* order to extract method calls of a directory containing Java bytecode . | |
* | |
* It uses the Soot library. | |
* | |
* Usage: | |
* 1. Change the classpath and the directoryToAnalyze variable | |
* 2. run java -cp bin:soot.jar mm.soot.MethodCallCollector | |
* 3. look at /tmp/data.dat |
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
// Utility function for detecting generators. | |
let isGenerator = x => { | |
return Function.isGenerator && | |
Function.isGenerator.call(x) | |
} | |
// Data type represents channel into which values | |
// can be `put`, or `received` from. Channel is | |
// very much like queue where reads and writes are | |
// synchronized via continuation passing. |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.IO; | |
using System.Net; | |
namespace Lib.Common | |
{ | |
public class FtpClient |
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
// Tested with version 8.0.6 | |
// Read more at http://wiki.zimbra.com/wiki/SOAP_API_Reference_Material_Beginning_with_ZCS_8.0#ZCS_8.0.6 | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Net; | |
using System.IO; | |
using System.Security.Cryptography.X509Certificates; |
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
// heavily modified version of http://forums.asp.net/t/2011994.aspx | |
... | |
WriteLine(""); | |
WriteDocumentation(entity.Documentation);#> | |
... | |
WriteDocumentation(edmProperty.Documentation, CurrentIndent); | |
... | |
WriteDocumentation(complexProperty.Documentation); | |
... |
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
## by rafaelsc | |
## This is a directory/file filter for WinMerge | |
## This filter Ignore Visual Studio temporary files, build results, and files generated by popular Visual Studio add-ons | |
name: Visual Studio Files | |
desc: Ignore Visual Studio temporary files, build results, and files generated by popular Visual Studio add-ons. | |
## This is an inclusive (loose) filter | |
## (it lets through everything not specified) | |
def: include |
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 MyDiffCallback extends DiffUtil.Callback{ | |
List<Person> oldPersons; | |
List<Person> newPersons; | |
public MyDiffCallback(List<Person> newPersons, List<Person> oldPersons) { | |
this.newPersons = newPersons; | |
this.oldPersons = oldPersons; | |
} |
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 void updateList(ArrayList<Person> newList) { | |
DiffUtil.DiffResult diffResult = DiffUtil.calculateDiff(new MyDiffCallback(this.persons, newList)); | |
diffResult.dispatchUpdatesTo(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
// map.ts | |
import {Observable} from "./observable"; | |
declare module "./observable" { | |
interface Observable<T> { | |
map<U>(f: (x: T) => U): Observable<U>; | |
} | |
} | |
Observable.prototype.map = function (f) { | |
// ... another exercise for the reader |
OlderNewer