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 | |
class RandomClassWithMock | |
{ | |
public function methodToMock() | |
{ | |
return 42; | |
} | |
} |
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 | |
$result = []; | |
for ($i = 0; $i < 40; $i++) { | |
$inner = new stdClass; | |
$inner->a = $i % 25; | |
$result[0][$inner->a][$i] = $inner; | |
$result[1][] = $inner; | |
} |
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 | |
$byValue = function (array $value) { | |
$z = $value[2]; | |
}; | |
$byValueWrite = function (array $value) { | |
$value[] = 1; | |
array_pop($value); | |
}; |
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
This file contains any messages produced by compilers while | |
running configure, to aid debugging if configure makes a mistake. | |
It was created by DRBD configure 8.9.2rc2, which was | |
generated by GNU Autoconf 2.63. Invocation command line was | |
$ ./configure --prefix=/usr --without-83support --with-pacemaker | |
## --------- ## | |
## Platform. ## |
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
#Table | |
CREATE TABLE `departments` ( | |
`in` int(11) unsigned NOT NULL, | |
`out` int(11) unsigned NOT NULL | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1 | |
#Via JOIN | |
SELECT i.count + o.count as total, i.in | |
FROM | |
( |
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
require.config({ | |
waitSeconds: 15, | |
baseUrl: '/js', | |
paths: { | |
templates: '../templates', | |
knockout: 'libs/knockout', | |
'jquery.ui.widget': 'libs/ui/widget', | |
'jquery.ui.sortable': 'libs/ui/sortable', | |
core: 'libs/ui/core', | |
mouse: 'libs/ui/mouse', |
This file has been truncated, but you can view the full 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
Warning: No Fortran optimization information was provided. You may want to consider | |
setting FCFLAGS and FFLAGS or pass the `--default-fortran-flags` option to | |
`brew install` if your compiler is compatible with GCC. | |
If you like the default optimization level of your compiler, ignore this | |
warning. | |
Warning: No Fortran optimization information was provided. You may want to consider | |
setting FCFLAGS and FFLAGS or pass the `--default-fortran-flags` option to | |
`brew install` if your compiler is compatible with GCC. |
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
#!/usr/bin/env sh | |
dxPath="/Applications/Android Studio.app/sdk/build-tools/android-4.4/dx" | |
jarDir=build/pre-dexed/debug | |
rm temp.dex | |
sum=0 | |
line='-----------------------------------------------------------------------------------------------------------------------' | |
for file in $jarDir/*.jar; do | |
"$dxPath" --dex --output=temp.dex $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
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:+' | |
} | |
} |
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
android { | |
defaultConfig { | |
versionName "actionbar" | |
} | |
signingConfigs { | |
release { | |
storeFile file("android.keystore") | |
... | |
} | |
} |
NewerOlder