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
/** | |
* | |
* Detect Ad Blockers | |
* | |
* Copyright (c) 2017, 2019 Four And A Half Giraffes, Ltd. | |
* Permission is hereby granted, free of charge, to any person | |
* obtaining a copy of this software and associated documentation | |
* files (the "Software"), to deal in the Software without | |
* restriction, including without limitation the rights to use, | |
* copy, modify, merge, publish, distribute, sublicense, and/or sell |
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
"use strict"; | |
// for better performance - to avoid searching in DOM | |
const inputElement = document.getElementById('input'); | |
const contentElement = document.getElementById('content'); | |
const statusElement = document.getElementById('status'); | |
// my color assigned by the server | |
var myColor = false; | |
// my name sent to the server |
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
package main | |
import ( | |
"math" | |
"fmt" | |
) | |
//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
//::: ::: | |
//::: This routine calculates the distance between two points (given the ::: |
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 * as React from 'react'; | |
import { KeypadKey } from './KeypadKey'; | |
import './styles.less'; | |
export interface IKeypadProps | |
{ | |
onKeyPressed: (keyPressed: KeypadKeys) => void; | |
} |
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
using System; | |
using System.Collections.Generic; | |
using System.Net; | |
using System.Web.Script.Serialization; | |
namespace App.Service.Services | |
{ | |
public class FreeCurrencyConverterService : IFreeCurrencyConverterService | |
{ | |
private readonly String BASE_URI = "http://free.currencyconverterapi.com"; |
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("JamesPerihIsCool".replace(/(?<!^)(?=[A-Z])/g, ' ')); |
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
/** | |
* | |
* Detect Ad Blockers | |
* | |
* Copyright (c) 2020 Four And A Half Giraffes, Ltd. | |
* Permission is hereby granted, free of charge, to any person | |
* obtaining a copy of this software and associated documentation | |
* files (the "Software"), to deal in the Software without | |
* restriction, including without limitation the rights to use, | |
* copy, modify, merge, publish, distribute, sublicense, and/or sell |
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
/// Oct 23, 2020 | |
/// Updated March 17, 2021 | |
/// (c) 2020 James Robert Perih c/o Four And A Half Giraffes, Ltd. | |
void main() { | |
const int theStart = 1; | |
const int theEnd = 100; | |
DartFlutterOutputFactory().printIteration( | |
from: theStart, |
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 'package:flutter/material.dart'; | |
class State with ChangeNotifier { | |
late num _count; | |
num get count => _count; | |
void setCount(newCount) { | |
_count = newCount; | |
notifyListeners(); | |
} |
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 'package:flutter/material.dart'; | |
import 'dart:async'; | |
import 'dart:math'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class RandomNumberStream { | |
final StreamController<int> _nextRandomNumberController = StreamController<int>(); |
OlderNewer