text:
package com.michaelsnowden.juniper;

import org.apache.commons.math3.fraction.Fraction;
import org.apache.commons.math3.fraction.FractionConversionException;

import java.util.LinkedList;

class Matrix {
    LinkedList<LinkedList<Fraction>> matrix;
    int numRows;
    int numCols;

    static class Coordinate {
        int row;
        int col;

        Coordinate(int r, int c) {
            row = r;
            col = c;
        }

        public String toString() {
            return "(" + row + ", " + col + ")";
        }
    }

    Matrix(double[][] m) {
        numRows = m.length;
        numCols = m[0].length;

        matrix = new LinkedList<LinkedList<Fraction>>();

        for (int i = 0; i < numRows; i++) {
            matrix.add(new LinkedList<Fraction>());
            for (int j = 0; j < numCols; j++) {
                try {
                    matrix.get(i).add(new Fraction(m[i][j]));
                } catch (FractionConversionException e) {
                    System.err.println("Fraction could not be converted from double by apache commons . . .");
                }
            }
        }
    }

    public void Interchange(Coordinate a, Coordinate b) {
        LinkedList<Fraction> temp = matrix.get(a.row);
        matrix.set(a.row, matrix.get(b.row));
        matrix.set(b.row, temp);

        int t = a.row;
        a.row = b.row;
        b.row = t;
    }

    public void Scale(Coordinate x, Fraction d) {
        LinkedList<Fraction> row = matrix.get(x.row);
        for (int i = 0; i < numCols; i++) {
            row.set(i, row.get(i).multiply(d));
        }
    }

    public void MultiplyAndAdd(Coordinate to, Coordinate from, Fraction scalar) {
        LinkedList<Fraction> row = matrix.get(to.row);
        LinkedList<Fraction> rowMultiplied = matrix.get(from.row);

        for (int i = 0; i < numCols; i++) {
            row.set(i, row.get(i).add((rowMultiplied.get(i).multiply(scalar))));
        }
    }

    public void reducedRowEchelonForm() {
        Coordinate pivot = new Coordinate(0, 0);

        int subMatrix = 0;
        for (int x = 0; x < numCols; x++) {
            pivot = new Coordinate(pivot.row, x);
            //Step 1
            //Begin with the leftmost nonzero column. This is a pivot column. The pivot position is at the top.
            for (int i = x; i < numCols; i++) {
                if (!isColumnZeroes(pivot)) {
                    break;
                } else {
                    pivot.col = i;
                }
            }
            //Step 2
            //Select a nonzero entry in the pivot column with the highest absolute value as a pivot.
            pivot = findPivot(pivot);

            if (getCoordinate(pivot).doubleValue() == 0.0) {
                pivot.row++;
                continue;
            }

            //If necessary, interchange rows to move this entry into the pivot position.
            //move this row to the top of the submatrix
            if (pivot.row != subMatrix) {
                Interchange(new Coordinate(subMatrix, pivot.col), pivot);
            }

            //Force pivot to be 1
            if (getCoordinate(pivot).doubleValue() != 1) {
                    /*
                    System.out.println(getCoordinate(pivot));
					System.out.println(pivot);
					System.out.println(matrix);
					*/
                Fraction scalar = getCoordinate(pivot).reciprocal();
                Scale(pivot, scalar);
            }
            //Step 3
            //Use row replacement operations to create zeroes in all positions below the pivot.
            //belowPivot = belowPivot + (Pivot * -belowPivot)
            for (int i = pivot.row; i < numRows; i++) {
                if (i == pivot.row) {
                    continue;
                }
                Coordinate belowPivot = new Coordinate(i, pivot.col);
                Fraction complement = (getCoordinate(belowPivot).negate().divide(getCoordinate(pivot)));
                MultiplyAndAdd(belowPivot, pivot, complement);
            }
            //Step 5
            //Beginning with the rightmost pivot and working upward and to the left, create zeroes above each pivot.
            //If a pivot is not 1, make it 1 by a scaling operation.
            //Use row replacement operations to create zeroes in all positions above the pivot
            for (int i = pivot.row; i >= 0; i--) {
                if (i == pivot.row) {
                    if (getCoordinate(pivot).doubleValue() != 1.0) {
                        Scale(pivot, getCoordinate(pivot).reciprocal());
                    }
                    continue;
                }
                if (i == pivot.row) {
                    continue;
                }

                Coordinate abovePivot = new Coordinate(i, pivot.col);
                Fraction complement = (getCoordinate(abovePivot).negate().divide(getCoordinate(pivot)));
                MultiplyAndAdd(abovePivot, pivot, complement);
            }
            //Step 4
            //Ignore the row containing the pivot position and cover all rows, if any, above it.
            //Apply steps 1-3 to the remaining submatrix. Repeat until there are no more nonzero entries.
            if ((pivot.row + 1) >= numRows || isRowZeroes(new Coordinate(pivot.row + 1, pivot.col))) {
                break;
            }

            subMatrix++;
            pivot.row++;
        }
    }

    public boolean isColumnZeroes(Coordinate a) {
        for (int i = 0; i < numRows; i++) {
            if (matrix.get(i).get(a.col).doubleValue() != 0.0) {
                return false;
            }
        }

        return true;
    }

    public boolean isRowZeroes(Coordinate a) {
        for (int i = 0; i < numCols; i++) {
            if (matrix.get(a.row).get(i).doubleValue() != 0.0) {
                return false;
            }
        }

        return true;
    }

    public Coordinate findPivot(Coordinate a) {
        int first_row = a.row;
        Coordinate pivot = new Coordinate(a.row, a.col);
        Coordinate current = new Coordinate(a.row, a.col);

        for (int i = a.row; i < (numRows - first_row); i++) {
            current.row = i;
            if (getCoordinate(current).doubleValue() == 1.0) {
                Interchange(current, a);
            }
        }

        current.row = a.row;
        for (int i = current.row; i < (numRows - first_row); i++) {
            current.row = i;
            if (getCoordinate(current).doubleValue() != 0) {
                pivot.row = i;
                break;
            }
        }

        return pivot;
    }

    public Fraction getCoordinate(Coordinate a) {
        return matrix.get(a.row).get(a.col);
    }

    public String toString() {
        return matrix.toString().replace("], ", "]\n");
    }
}


text:
*La box xenial.box doit se situer dans le dossier de lancement du script*

1- Créer sa box vagrant
-------------------------
Pour pouvoir créer son dossier de travail et les fichiers nécessaires au travail avec vagrant, choisissez l'option "1".

Pour la première étape, vous allez devoir vous déplacer dans le **dossier** de votre choix et après chaque déplacement, il vous sera demandé si c'est à cet endroit que vous voudrez créer votre dossier. Pour ce déplacer, il suffit de taper le nom d'un des dossier qui est listé au dessus ou de taper '..' pour revenir au dossier précédent.

Une fois que vous aurez décidé de créer le dossier dans le *dossier courant*, il vous suffira de taper un nom de dossier *valide* et qui *n'existe* pas préalablement. Choisissez ensuite le nom de la box que vous-voulez utiliser... et configurer ensuite par étapes selon ce qui est renseigné.

2- Lancer la vagrant et se connecter
-------------------------
Pour se connecter à une vagrant, il faut déjà être dans le bon répertoire et le script se chargera lui même du reste. ***Consulter l'option 4 pour connaitre les emplacements des vagrants***

3- Arrêter une vagrant
-------------------------
Pour arrêter une vagrant, il faut fournir un path à partir du */home* valide et auquel se trouve une vagrant. ***Consulter l'option 4 pour connaitre les emplacements des vagrants***

4- Consulter les vagrants
-------------------------
L'option 4 permet d'avoir un aperçus de toutes les vagrants qui sont présente, et fournir leur état actuel.

redpajama_set_name: RedPajamaGithub


text:
module.exports = function ( file ) {
  var isAbsolute = require( 'path-is-absolute' );
  if ( !isAbsolute( file ) && !file.match( /^\.\// ) ) {
    file = './' + file;
  }
  return file;
};


text:
<?php

namespace Sineflow\ElasticsearchBundle\Exception;

/**
 * Base exception for all bundle exceptions.
 */
class Exception extends \RuntimeException
{
}


text:
/**
 * This file provided by Facebook is for non-commercial testing and evaluation
 * purposes only. Facebook reserves all rights not expressly granted.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
 * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

"use strict";

var ExampleImage = require('../helpers/ExampleImage');
var FakeObjectDataListStore = require('../helpers/FakeObjectDataListStore');
var FixedDataTable = require('fixed-data-table');
var React = require('react');

var Column = FixedDataTable.Column;
var Table = FixedDataTable.Table;

var ROWS = 1000000;

function renderImage(/*string*/ cellData) {
  return <ExampleImage src={cellData} />;
}

var FilterExample = React.createClass({
  getInitialState() {
    return {
      rows : new FakeObjectDataListStore().getAll(),
      filteredRows: null,
      filterBy: null
    };
  },

  componentWillMount() {
    this._filterRowsBy(this.state.filterBy);
  },

  _filterRowsBy(filterBy) {
    var rows = this.state.rows.slice();
    var filteredRows = filterBy ? rows.filter(function(row){
      return row['firstName'].toLowerCase().indexOf(filterBy.toLowerCase()) >= 0
    }) : rows;

    this.setState({
      filteredRows,
      filterBy,
    });
  },

  _rowGetter(rowIndex) {
    return this.state.filteredRows[rowIndex];
  },

  _onFilterChange(e) {
    this._filterRowsBy(e.target.value);
  },

	render() {
		return (

        <input onChange={this._onFilterChange} placeholder='Filter by First Name' />

          <Column
            cellRenderer={renderImage}
            dataKey='avartar'
            fixed={true}
            label=''
            width={50}
          />
          <Column
            dataKey='firstName'
            fixed={true}
            label='First Name'
            width={100}
          />
          <Column
            dataKey='lastName'
            fixed={true}
            label='Last Name'
            width={100}
          />
          <Column
            dataKey='city'
            label='City'
            width={100}
          />
          <Column
            label='Street'
            width={200}
            dataKey='street'
          />
          <Column
            label='Zip Code'
            width={200}
            dataKey='zipCode'
          />

    );
	},
});

module.exports = FilterExample;


text:
2.20 Protects against brute force attacks
=========================================

Verify that request throttling is in place to prevent automated attacks against common authentication attacks such as brute force attacks or denial of service attacks.

Levels: 1, 2, 3


text:
/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.apache.openjpa.azure.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Lob;
import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

@Entity
public class PersonUID implements Serializable {

    private static final long serialVersionUID = -7842288624981427214L;

    @EmbeddedId
    private PersonUID_PK pk;

    @Column(nullable = false)
    private String username;

    @Column(nullable = false)
    private String password;

    @Enumerated(EnumType.STRING)
    @Column(name = "gender")
    private Gender gender;

    @Lob
    private String info;

    @Lob
    private byte[] picture;

    public PersonUID_PK getPk() {
        return pk;
    }

    public void setPk(PersonUID_PK pk) {
        this.pk = pk;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(final String password) {
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(final String username) {
        this.username = username;
    }

    public Gender getGender() {
        return gender;
    }

    public void setGender(Gender gender) {
        this.gender = gender;
    }

    public byte[] getPicture() {
        return picture;
    }

    public void setPicture(byte[] picture) {
        this.picture = picture;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    @Override
    public String toString() {
        return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE);
    }

    @Override
    public boolean equals(Object o) {
        return o != null && o instanceof PersonUID && this.getPk().equals(((PersonUID) o).getPk());
    }

    @Override
    public int hashCode() {
        return this.getPk().hashCode();
    }
}


text:
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var core_1 = require('@angular/core');
var http_client_1 = require('../common/http-client');
require('rxjs/add/operator/toPromise');
var ClientDataService = (function () {
    //构造函数
    function ClientDataService(httpClient) {
        this.httpClient = httpClient;
        this.url = server_url + "/ClientsData/GetClientsDataJson";
    }
    //获取客户端数据
    ClientDataService.prototype.getClientData = function () {
        //定义数据结构
        var dataJson = {
            dataItems: [],
            organize: [],
            role: [],
            duty: [],
            user: [],
            authorizeMenu: [],
            authorizeButton: []
        };
        return this.httpClient.get(this.url)
            .toPromise().catch(this.handleError);
        //.then(response => {
        //    debugger;
        //    response.json().data
        //})
    };
    ClientDataService.prototype.handleError = function (error) {
        console.error('An error occurred', error); // for demo purposes only
        return Promise.reject(error.message || error);
    };
    ClientDataService = __decorate([
        core_1.Injectable(),
        __metadata('design:paramtypes', [http_client_1.HttpClient])
    ], ClientDataService);
    return ClientDataService;
}());
exports.ClientDataService = ClientDataService;
//# sourceMappingURL=client-data.service.js.map


text:
My personal blog built on hugo

Please do not fork / clone this repo, my DISQUS comments will copy over and create annoying problems.


text:
@protocol MFComposeBodyFieldDelegate
- (void)composeBodyFieldDidFirstVisuallyNonEmptyLayout:(id)arg1;
- (void)composeBodyFieldDidDraw:(id)arg1;
- (void)composeBodyFieldFrameChanged:(id)arg1;
@end


text:
@interface MLNianlingXingbieView : UIView

@end


text:
package org.apache.hadoop.hbase.http.log;

import static org.junit.Assert.assertTrue;

import java.io.*;
import java.net.*;

import org.apache.hadoop.hbase.testclassification.SmallTests;
import org.apache.hadoop.hbase.http.HttpServer;
import org.apache.hadoop.net.NetUtils;
import org.apache.commons.logging.*;
import org.apache.commons.logging.impl.*;
import org.apache.log4j.*;
import org.junit.Test;
import org.junit.experimental.categories.Category;

@Category(SmallTests.class)
public class TestLogLevel {
  static final PrintStream out = System.out;

  @Test (timeout=60000)
  @SuppressWarnings("deprecation")
  public void testDynamicLogLevel() throws Exception {
    String logName = TestLogLevel.class.getName();
    Log testlog = LogFactory.getLog(logName);

    //only test Log4JLogger
    if (testlog instanceof Log4JLogger) {
      Logger log = ((Log4JLogger)testlog).getLogger();
      log.debug("log.debug1");
      log.info("log.info1");
      log.error("log.error1");
      assertTrue(!Level.ERROR.equals(log.getEffectiveLevel()));

      HttpServer server = null;
      try {
        server = new HttpServer.Builder().setName("..")
            .addEndpoint(new URI("http://localhost:0")).setFindPort(true)
            .build();

        server.start();
        String authority = NetUtils.getHostPortString(server
            .getConnectorAddress(0));

        //servlet
        URL url = new URL("http://" + authority + "/logLevel?log=" + logName
            + "&level=" + Level.ERROR);
        out.println("*** Connecting to " + url);
        HttpURLConnection connection = (HttpURLConnection)url.openConnection();
        connection.connect();

        BufferedReader in = new BufferedReader(new InputStreamReader(
            connection.getInputStream()));
        for(String line; (line = in.readLine()) != null; out.println(line));
        in.close();
        connection.disconnect();

        log.debug("log.debug2");
        log.info("log.info2");
        log.error("log.error2");
        assertTrue(Level.ERROR.equals(log.getEffectiveLevel()));

        //command line
        String[] args = {"-setlevel", authority, logName, Level.DEBUG.toString()};
        LogLevel.main(args);
        log.debug("log.debug3");
        log.info("log.info3");
        log.error("log.error3");
        assertTrue(Level.DEBUG.equals(log.getEffectiveLevel()));
      } finally {
        if (server != null) {
          server.stop();
        }
      }
    }
    else {
      out.println(testlog.getClass() + " not tested.");
    }
  }
}


text:
export interface DialogConfig {
  closeOnEsc?: boolean;
  closeOnClickOutside?: boolean;
  containerClass?: string;
}


text:
<?xml version="1.0" ?>

<container xmlns="http://symfony.com/schema/dic/services"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

    <parameters>
        <parameter key="dcs_notification.form.actions_enabled.class">DCS\NotificationBundle\Form\Type\ActionsEnabledFormType</parameter>
        <parameter key="dcs_notification.form.component_setting.class">DCS\NotificationBundle\Form\Type\ComponentSettingFomType</parameter>
    </parameters>

    <services>
        <service id="dcs_notification.form.actions_enabled" class="%dcs_notification.form.actions_enabled.class%">
            <argument>%dcs_notification.actions%</argument>
            <tag name="form.type" alias="dcs_notification_actions_enabled" />
        </service>
        <service id="dcs_notification.form.component_setting" class="%dcs_notification.form.component_setting.class%">
            <argument>%dcs_notification.model.component_setting.class%</argument>
            <tag name="form.type" alias="dcs_notification_component_setting" />
        </service>
    </services>
</container>


text:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
	id="WebApp_ID" version="2.5">

	<display-name>REST and OrientDB</display-name>

	<context-param>
		<param-name>contextConfigLocation</param-name>
		<param-value>/WEB-INF/spring-mvc-servlet.xml</param-value>
	</context-param>

	<listener>
		<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
	</listener>

	<servlet>
		<servlet-name>springDispatcher</servlet-name>
		<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
		<init-param>
			<param-name>contextConfigLocation</param-name>
			<param-value></param-value>
		</init-param>
		<load-on-startup>1</load-on-startup>
	</servlet>

	<servlet-mapping>
		<servlet-name>springDispatcher</servlet-name>
		<url-pattern>/</url-pattern>
	</servlet-mapping>

</web-app>


text:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="horizontal"
    android:paddingLeft="15dp" >

    <ImageView
        android:id="@+id/imageView1"
        android:gravity="center"
        android:layout_gravity="center"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

    <TextView
        android:id="@+id/textView1"
        android:layout_width="match_parent"
        android:layout_height="51dp"
        android:gravity="left"
        android:paddingLeft="15dp"
        android:textAppearance="?android:attr/textAppearanceLarge" />

</LinearLayout>


text:
'''
Underlying platform implementation for kernel debugging
with vmware gdbserver.

Msv1_0SubAuthenticationRoutine

VMWare config options...
debugStub.listen.guest64 = "TRUE" # ends up on port 8864 (or next avail)

# 32 bit target.... ( defaults to port 8832 )
debugStub.listen.guest32 = "TRUE"
debugStub.listen.guest32.remote = "TRUE" # bind to 0.0.0.0 rather than 127.0.0.1
debugStub.hideBreakpoints = "TRUE" # Enable breakpoints

# 64 bit target.... ( defaults to port 8864 )
debugStub.listen.guest64 = "TRUE"
debugStub.listen.guest64.remote = "TRUE" # bind to 0.0.0.0 rather than 127.0.0.1
debugStub.hideBreakpoints = "TRUE" # Enable breakpoints

'''
import PE
import vtrace

import envi.bits as e_bits
import envi.symstore.resolver as e_resolv
import envi.symstore.symcache as e_symcache

import vtrace.archs.i386 as vt_i386
import vtrace.platforms.base as vt_base
import vtrace.platforms.win32 as vt_win32
import vtrace.platforms.winkern as vt_winkern
import vtrace.platforms.gdbstub as vt_gdbstub

class VMWareMixin(vt_gdbstub.GdbStubMixin):

    def __init__(self, host=None, port=None):
        vt_gdbstub.GdbStubMixin.__init__(self, host=host, port=port)
        self.bigmask = e_bits.u_maxes[ self.getPointerSize() ]

class VMWare32WindowsTrace(
            vtrace.Trace,
            VMWareMixin,
            vt_i386.i386Mixin,
            vt_base.TracerBase,
            ):

    def __init__(self, host=None, port=None):

        vtrace.Trace.__init__(self, archname='i386')
        vt_base.TracerBase.__init__(self)
        vt_i386.i386Mixin.__init__(self)
        VMWareMixin.__init__(self, host=host, port=port)

        self.setMeta('Format','pe')
        self.setMeta('Platform','winkern')

        self._break_after_bp = False  # we stop directly on the bp addr

    def _getVmwareReg(self, rname):
        '''
        Use VMWare's monitor extension to get a register we wouldn't
        normally have...
        '''
        #fs 0x30 base 0xffdff000 limit 0x00001fff type 0x3 s 1 dpl 0 p 1 db 1
        fsstr = self._monitorCommand('r %s' % rname)
        fsparts = fsstr.split()
        return int(fsparts[3], 16)

    def _gdbJustAttached(self):
        # Implement the callback from the GdbStubMixin parent...

        fsbase = self._getVmwareReg('fs')

        fs_fields = self.readMemoryFormat(fsbase, '<8I')
        # Windows has a self reference in the KPCR...
        if fs_fields[7] != fsbase:
            print [ hex(x) for x in fs_fields ]
            raise Exception('poi(fsbase+(ptr*7)) != fsbase! ( not actually windows? )')

        vt_winkern.initWinkernTrace(self,fsbase)
        return

    def normFileName(self, libname):
        basename = libname.split('\\')[-1]
        return basename.split(".")[0].split("-")[0].lower()

    def platformParseBinary(self, filename, baseaddr, normname):
        try:
            pe = PE.peFromMemoryObject(self, baseaddr)
            vhash = e_symcache.symCacheHashFromPe(pe)

            symcache = self.symcache.getCacheSyms(vhash)
            if symcache == None:
                # Symbol type 0 for now...
                symcache = [ ( rva, 0, name, e_resolv.SYMSTOR_SYM_SYMBOL ) for rva,ord,name in pe.getExports() ]
                self.symcache.setCacheSyms( vhash, symcache )

            self.impSymCache( symcache, symfname=normname, baseaddr=baseaddr )

        except Exception, e:
            import traceback;traceback.print_exc()
            print('Error Parsing Binary (%s): %s' % (normname, e))

    def buildNewTrace(self):
        return VMWare32WindowsTrace( host=self._gdb_host, port=self._gdb_port )

    # FIXME move these to gdbstub

    def isValidPointer(self, addr):
        # Fake this out by attempting to read... ( slow/lame )
        cmd = 'm%x,%x' % (addr, 1)
        pkt = self._cmdTransact(cmd)
        return not pkt.startswith('E')

    def archActivBreakpoint(self, addr):
        self._gdbAddMemBreak(addr, 1)

    def archClearBreakpoint(self, addr):
        self._gdbDelMemBreak(addr, 1)


text:
Function New-GitLabMilestone {
    [cmdletbinding()]
    param(
        [ValidateNotNullOrEmpty()]
        [Parameter(Mandatory)]
        [string]$ProjectId,

        [ValidateNotNullOrEmpty()]
        [Parameter(Mandatory)]
        [string]$Title,

        [string]$Description,

        [datetime]$DueDate
    )

    $Project = $Project = Get-GitlabProject -Id $ProjectId;

    $GetUrlParameters = @()
    $GetUrlParameters += @{title=$Title}

    if ($Description) {
        $GetUrlParameters += @{description=$Description}
    }
    if ($DueDate) {
        $GetUrlParameters += @{due_date=($DueDate).ToString("yyyy-MM-dd")}
    }

    $URLParameters = GetMethodParameters -GetURLParameters $GetUrlParameters

    $Request = @{
        URI="/projects/$($Project.id)/milestones$URLParameters";
        Method='POST';
    }

    QueryGitLabAPI -Request $Request -ObjectType 'GitLab.Milestone'
}


text:
<?php
/*
Title: Develop
Order: 80
Flow: WP Helpers Settings Flow
*/