This file contains 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 React from 'react'; | |
/* context helpers from: | |
* https://gist.github.com/ryanflorence/1e1290571337ebcea1c5a748e8f5b37d | |
*/ | |
import provideContext from './provideContext'; | |
import withContext from './withContext'; | |
const contextShape = React.PropTypes.shape({ |
This file contains 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"?> | |
<file> | |
<unit class="" column="0" line="1" method="" package=""> | |
unit | |
<EmptyProcs class="" column="5" line="1" method="" package="">EmptyProcs</EmptyProcs> | |
</unit> | |
<interface class="" column="0" line="3" method="" package=""> | |
interface | |
<type class="" column="0" line="5" method="" package=""> | |
type |
This file contains 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
/* | |
https://jsfiddle.net/kuvmy7sa/1/ | |
*/ | |
var Table = React.createClass({ | |
render: function() { | |
return <div className="table-responsive"> | |
<table className="table table-striped"> | |
{this.props.children} | |
</table> | |
</div> |
This file contains 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
uses DBXJSON, Character; | |
TJsonObjectHelper = class helper for TJsonObject | |
public | |
//Helper to find a JSON pair based on the pair string part | |
function Get(const PairName: UnicodeString): TJSONPair; overload; | |
end; | |
{ TJsonObjectHelper } |
This file contains 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 final class MappingConverters { | |
private static class SelfDocClassAliasingMapper extends MapperWrapper { | |
public SelfDocClassAliasingMapper(Mapper wrapped) { | |
super(wrapped); | |
} | |
@SuppressWarnings("rawtypes") | |
@Override |
This file contains 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
program Project2; | |
{$APPTYPE CONSOLE} | |
{$R *.res} | |
uses | |
System.SysUtils, | |
DbxJsonUnMarshal, | |
RestClient, |
This file contains 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
CREATE OR REPLACE TRIGGER "LOGON_ON" | |
AFTER | |
LOGON | |
ON SCHEMA | |
BEGIN | |
EXECUTE IMMEDIATE 'ALTER SESSION SET NLS_DATE_FORMAT="MM/DD/YYYY"'; | |
EXECUTE IMMEDIATE 'ALTER SESSION SET NLS_NUMERIC_CHARACTERS=".,"'; | |
EXECUTE IMMEDIATE 'ALTER SESSION SET NLS_TIMESTAMP_FORMAT="MM/DD/YYYY HH24:MI:SSXFF"'; | |
EXECUTE IMMEDIATE 'ALTER SESSION SET NLS_TIMESTAMP_TZ_FORMAT="MM/DD/YYYY HH24:MI:SSXFF TZR"'; | |
END; |
This file contains 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
Revert último commit | |
$ git commit ... //Commit equivocado | |
$ git reset --soft HEAD^ //Desfaz commit | |
Revert added file | |
$ git add [file] | |
$ git reset [file] |
This file contains 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
From http://www.cesarromero.com.br/script-para-baixar-atualizacoes-de-repositorios-subversion-mercurial-e-git | |
@echo off | |
::-------------------------------------------------------------------------- | |
:: Copyright (c) 2012-2013, Cesar Romero | |
:: All rights reserved. | |
:: | |
:: Code license Mozilla Public License 1.1 | |
:: | |
:: Redistribution and use in source and binary forms, with or without |
This file contains 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
//Anonymous procedure approach by Lars Fosdal | |
type | |
TArg<T> = reference to procedure(const Arg: T); | |
procedure TForm1.CaptureConsoleOutput(const ACommand, AParameters: String; CallBack: TArg<PAnsiChar>); | |
const | |
CReadBuffer = 2400; | |
var | |
saSecurity: TSecurityAttributes; | |
hRead: THandle; |
NewerOlder