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 { Prisma } from '@prisma/client'; | |
function testPrismaDecimal(decimalInstance: Prisma.Decimal) { | |
console.log('Testing: ', decimalInstance); | |
switch (decimalInstance) { | |
case new Prisma.Decimal(0): | |
console.log('It is: 0'); | |
break; | |
case new Prisma.Decimal(1): | |
console.log('It is: 1'); |
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 ChildClass extends ParentClass { | |
protected $json; | |
public function __construct() { | |
parent::__construct(); | |
} |
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
{ | |
"USD": { | |
"symbol": "$", | |
"name": "US Dollar", | |
"symbol_native": "$", | |
"decimal_digits": 2, | |
"rounding": 0, | |
"code": "USD", | |
"name_plural": "US dollars" |
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 Person = (function() { | |
// currentName cannot be modified externaly | |
let currentName; | |
function isGoodName() { | |
return !!currentName.match(/Snehanshu/); | |
} | |
class Person { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<script src="https://code.jquery.com/jquery-3.1.0.js"></script> | |
<link href="https://code.jquery.com/qunit/qunit-git.css" rel="stylesheet" type="text/css" /> | |
<script src="https://code.jquery.com/qunit/qunit-git.js"></script> | |
<script src="https://blossom-sample-api.herokuapp.com/qunit-test-suite.js"></script> |
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 wiredep = require('wiredep'); | |
module.exports = function initGrunt(grunt) { | |
grunt.initConfig({ | |
embark: grunt.file.readJSON('embark.json'), | |
}); | |
grunt.registerTask('addDeps', 'Adds JS dependencies to embark config', function () { | |
const deps = wiredep(); |
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
#include <pebble.h> | |
#include <PDUtils.h> | |
#define KEY_DATE_YEAR 0 | |
#define KEY_DATE_MONTH 1 | |
#define KEY_DATE_DAY 2 | |
#define KEY_FAJR_HOUR 3 | |
#define KEY_FAJR_MINUTE 4 | |
#define KEY_SHUROOQ_HOUR 5 | |
#define KEY_SHUROOQ_MINUTE 6 |
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
diff --git a/lib/instance.js b/lib/instance.js | |
index 5668513..688f286 100644 | |
--- a/lib/instance.js | |
+++ b/lib/instance.js | |
@@ -737,6 +737,7 @@ module.exports = (function() { | |
* | |
* @see {Model#find} | |
* @param {Object} [options] Options that are passed on to `Model.find` | |
+ * @param {Array} [options.include] List of joined models to include. If no include option is provided, uses the include option provided to instance in previous `Model.find` |
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
var Client = require('coinbase').Client; | |
var client = new Client({ | |
'apiKey': 'your-coinbase-sandbox-api-key', | |
'apiSecret': 'your-coinbase-sandbox-api-secret', | |
'baseApiUri': 'https://api.sandbox.coinbase.com/v1/', | |
}); | |
var sampleData = { | |
"name": "Multisig Wallet", | |
"type": "multisig", |
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
--- | |
good_things: | |
coffee: because you can sleep when you are dead | |
food: because you need calories to live | |
ansible: because devops |
NewerOlder