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
2020-03-08T14:25:15.481Z [DEBUG] plugin.terraform-provider-google_v3.11.0_x5: | |
2020-03-08T14:25:15.481Z [DEBUG] plugin.terraform-provider-google_v3.11.0_x5: ----------------------------------------------------- | |
2020-03-08T14:25:15.481Z [DEBUG] plugin.terraform-provider-google_v3.11.0_x5: 2020/03/08 14:25:15 [DEBUG] Google API Request Details: | |
2020-03-08T14:25:15.481Z [DEBUG] plugin.terraform-provider-google_v3.11.0_x5: ---[ REQUEST ]--------------------------------------- | |
2020-03-08T14:25:15.481Z [DEBUG] plugin.terraform-provider-google_v3.11.0_x5: POST /apis/domains.cloudrun.com/v1/namespaces/project-id-xxxxxxxxxx/domainmappings?alt=json HTTP/1.1 | |
2020-03-08T14:25:15.481Z [DEBUG] plugin.terraform-provider-google_v3.11.0_x5: Host: europe-west1-run.googleapis.com | |
2020-03-08T14:25:15.481Z [DEBUG] plugin.terraform-provider-google_v3.11.0_x5: User-Agent: HashiCorp Terraform/0.12.13 (+https://www.terraform.io) Terraform Plugin SDK/1.4.0 terraform-provider-google/3.11.0 | |
2020-03-08T14:25:15.481Z [DEBUG] plugin.terra |
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 Php53Traits { | |
public function __call($name, $params) { | |
if(!isset($this->{$name}) || !gettype($this->{$name}) == 'object') { | |
throw new Exception('not found'); | |
} | |
$tmp = $this->{$name}; | |
return call_user_func_array($tmp, $params); | |
} |
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 | |
$users = json_decode(file_get_contents('https://api.github.com/repos/:user/:repo/stargazers'), true); | |
foreach ($users as $user) { | |
$user = json_decode(file_get_contents($user['url']), true); | |
if (!empty($user['email']) { | |
mail($user['email'], 'Can has mail', $message); | |
} | |
} |
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
const inputs = ['116860','130144','79347','120725','137692','139037','72089','133224','102168','100679','122298','132969','109196','85162','66316','68461','87608','108091','71061','85477','97748','105766','141169','94553','98932','134376','69822','104858','102584','59682','52092','105784','144100','83695','130436','105447','133102','82770','68684','103878','136774','71462','96828','74743','127523','124145','148013','103862','80052','74095','130394','125589','137576','111299','69311','63144','119014','136084','94348','109511','102493','117791','76202','138442','72724','104579','80285','56847','145460','132255','58264','60460','98995','63343','51207','133619','126155','130707','105010','104589','128527','67715','71823','82517','74115','135483','82230','127410','128969','140127','59133','145973','109430','103608','113203','133402','123971','71761','114178','52940']; | |
const fuel = (weight) => Math.floor(weight / 3) - 2; | |
const test = (input, expected) => { | |
const actual = fuel(input); | |
if (expected !== actu |
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
void fn004017A0() | |
{ | |
fn004017A0_entry: | |
esp = fp | |
l004017A0: | |
esp = esp - 0x04 | |
Mem0[esp:word32] = ebp | |
ebp = esp | |
esp = esp - 0x04 | |
Mem0[esp:word32] = esi |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# don't put duplicate lines in the history. See bash(1) for more options | |
# ... or force ignoredups and ignorespace | |
HISTCONTROL=ignoredups:ignorespace |
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
private Object loadClass(String className, Object arg) { | |
Class classToLoad = null; | |
try { | |
classToLoad = Class.forName(className); | |
} catch (ClassNotFoundException e) { | |
Debugger.out(e); | |
return null; |
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
// method works | |
let asyncForEach = (iterator, fn, cb) => { | |
// code here | |
}; | |
module.exports = asyncForEach; | |
// method does not work | |
module.exports = (iterator, fn, cb) => { | |
// code 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
$ lspci | |
00:00.0 Host bridge: Intel Corporation 4th Gen Core Processor DRAM Controller (rev 06) | |
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06) | |
00:01.1 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x8 Controller (rev 06) | |
00:14.0 USB controller: Intel Corporation 9 Series Chipset Family USB xHCI Controller | |
00:16.0 Communication controller: Intel Corporation 9 Series Chipset Family ME Interface #1 | |
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection (2) I218-V | |
00:1a.0 USB controller: Intel Corporation 9 Series Chipset Family USB EHCI Controller #2 | |
00:1b.0 Audio device: Intel Corporation 9 Series Chipset Family HD Audio Controller | |
00:1c.0 PCI bridge: Intel Corporation 9 Series Chipset Family PCI Express Root Port 1 (rev d0) |
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
console.log($q); | |
function asyncGreet(name) { | |
return $q(function(resolve, reject) { | |
console.log("timeout starts"); | |
setTimeout(function() { | |
console.log("resolving"); | |
console.log("resolve: ", resolve); | |
console.log(resolve('Hello, ' + name + '!')); | |
}, 2000); | |
}); |
NewerOlder