Skip to content

Instantly share code, notes, and snippets.

@wwwdata
wwwdata / typetest.js
Last active August 29, 2015 13:57
Funny Type Test
// Awesome type Tests
it('0 == 0', function() {
expect(0 == 0).toBe(true);
});
it('\'0\' == 0', function() {
expect('0' == 0).toBe(true);
});
it('false == 0', function() {
@wwwdata
wwwdata / gist:11217377
Last active January 12, 2024 17:46 — forked from jellea/gist:6510897
FreeBSD service script for NodeJS with Forever
#!/bin/sh
# PROVIDE: forever
# REQUIRE: NETWORKING SERVERS DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
# Taken from http://habrahabr.ru/post/137857/
. /etc/rc.subr
@wwwdata
wwwdata / dspdfviewer.rb
Created September 26, 2015 13:31
It is working except for the test
class Dspdfviewer < Formula
desc "Dual-Screen PDF Viewer for latex-beamer"
homepage "http://dspdfviewer.danny-edel.de"
url "https://github.com/dannyedel/dspdfviewer/archive/v1.13.1.tar.gz"
version "1.13.1"
sha256 "333588de0316cfdb5821b8484ee55690dfa3c7431b67c126bfdbe9c9cc3e1ed4"
depends_on "cmake"
depends_on "poppler" => "with-qt4"
@wwwdata
wwwdata / main.dart
Created June 3, 2020 09:36
Google Maps Marker with Flutter Widgets
import 'dart:typed_data';
import 'dart:ui' as ui;
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';
void main() {
runApp(MyApp());
}