<?PHP
require __DIR__ . '/vendor/autoload.php';
$log = new Monolog\Logger('name');
$log->pushHandler(new Monolog\Handler\StreamHandler('app.log', Monolog\Logger::WARNING));
$log->addWarning('Foo');
?>
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
library(caret) | |
library(doParallel) | |
registerDoParallel(cores = 2) | |
# Read data. | |
data <- read.csv('train.csv') | |
test <- read.csv('test.csv') | |
# Set classification column to factor. |
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
### Sample knitr Doc | |
###Copy and paste all the code to http://shiny.alitrack.com/ace/03-knitr/ | |
This is some markdown text. It may also have embedded R code | |
which will be executed. | |
```{r results="asis" ,echo=FALSE} | |
dat <- data.frame( | |
t = rep(0:23, each = 4), | |
var = rep(LETTERS[1:4], 4), | |
val = round(runif(4*24,0,50)) |
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
=(LEN(C3)-LEN(SUBSTITUTE(C3,B3,"")))/LEN(B3) |
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
# -*- coding: utf-8 -*- | |
#encoding=utf-8 | |
import urllib2 | |
import sys, json | |
from StringIO import StringIO | |
import gzip | |
import MySQLdb | |
import datetime |
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
[PHP] | |
;;;;;;;;;;;;;;;;;;; | |
; About php.ini ; | |
;;;;;;;;;;;;;;;;;;; | |
; PHP's initialization file, generally called php.ini, is responsible for | |
; configuring many of the aspects of PHP's behavior. | |
; PHP attempts to find and load this configuration from a number of locations. | |
; The following is a summary of its search order: |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\*\shell\cmdhere] | |
@="Cmd Here" | |
[HKEY_CLASSES_ROOT\*\shell\cmdhere\command] | |
@="cmd.exe /c start cmd.exe /k color 02 & pushd \"%L\\..\"" | |
[HKEY_CLASSES_ROOT\Folder\shell\cmdhere] | |
@="Cmd Here" |
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
;for windows | |
extension_dir = "ext" | |
extension=php_pdo_sqlite.dll | |
extension=php_sqlite3.dll | |
;for linux | |
extension=php_pdo_sqlite.so | |
extension=php_sqlite3.so |
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
package org.getlantern.firetweet.model; | |
import org.getlantern.firetweet.FiretweetConstants; | |
// Flashlight client | |
import go.client.Client; | |
import android.content.Context; | |
import android.util.Log; | |
import android.os.StrictMode; |
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
:CheckOS | |
IF EXIST "%windir%\SysWOW64\MCPrintX.dll" (GOTO 64BIT) ELSE (GOTO 32BIT) | |
:64BIT | |
echo 64-bit... | |
set dir="%windir%\SysWOW64" | |
GOTO END | |
:32BIT |
NewerOlder