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
let t = document.querySelector("table tbody") | |
let tr = t.querySelectorAll("tr td[align]=right") | |
arr = [] | |
tr.forEach(function(d){ | |
if(d['align'] === 'right'){ | |
let countString = d['innerHTML'] | |
if(typeof countString === 'string'){ | |
let split = countString.split(",") | |
let joined = split.join("") | |
let count = Number.parseFloat(joined) |
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
Init: | |
--------------------------------------------------------------- | |
let collection = await db.collection({ | |
name: 'contacts', | |
schema: contactsMeta.schema, | |
migrationStrategies: contactsMeta.migrations, | |
statics: contactsMeta.statics, | |
methods: contactsMeta.methods, | |
}); | |
middleware.preCreate(collection); |
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
let mix = require('laravel-mix'); | |
const VuetifyLoaderPlugin = require('vuetify-loader/lib/plugin'); | |
/* | |
|-------------------------------------------------------------------------- | |
| Mix Asset Management | |
|-------------------------------------------------------------------------- | |
| |
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 | |
namespace App; | |
use Exception; | |
use Illuminate\Support\Collection; | |
use Illuminate\Contracts\Cache\Repository as Cache; | |
class CacheDirective | |
{ | |
private static $keys = []; |
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 | |
namespace App\Providers; | |
use App\CacheDirective; | |
use Illuminate\Contracts\Cache\Repository; | |
use Illuminate\Support\Facades\Blade; | |
use Illuminate\Support\ServiceProvider; | |
class CustomCacheServiceProvider extends ServiceProvider |
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
class _BiblePageState extends State<BiblePage> { | |
final scrollDirection = Axis.vertical; | |
AutoScrollController controller; | |
@override | |
void initState() { | |
super.initState(); | |
controller = AutoScrollController( | |
viewportBoundaryGetter: () => Rect.fromLTRB(0, 0, 0, MediaQuery.of(context).padding.bottom), | |
axis: scrollDirection |
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
//The user factory constructor, when called will return the same instance, no matter how many times. Hence, the name singleton. | |
main(){ | |
var user1 = User(); | |
user1.name = "Mike"; | |
user1.age = 3; | |
var user2 = User(); | |
print([user1, user2]); | |
} |
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
main() { | |
List<User> users = [ | |
User(lastName: "Mesut", firstName: "Ozil"), | |
User(lastName: "Becham", firstName: "David"), | |
User(lastName: "Samir", firstName: "Nasri"), | |
User(lastName: "Arteta", firstName: "Mikel"), | |
]; | |
User userOLD = users.firstWhere((user){ | |
return user.firstName == "Mikel"; | |
}); |
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 'dart:io'; | |
import 'dart:async'; | |
import 'dart:isolate'; | |
Isolate isolate; | |
main() async{ | |
stdout.writeln('spawning isolate...'); | |
await start(); | |
stdout.writeln('press enter key to quit...'); | |
await stdin.first; |
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
<style scoped> | |
.action-link { | |
cursor: pointer; | |
} | |
.m-b-none { | |
margin-bottom: 0; | |
} | |
</style> |