Skip to content

Instantly share code, notes, and snippets.

View ronaldosena's full-sized avatar

Ronaldo Sena ronaldosena

View GitHub Profile
<html>
<head>
<title>SignalMan</title>
<script src="/Scripts/jquery-1.6.4.min.js"></script>
<script src="/Scripts/jquery.signalR-1.1.2.js"></script>
<script type="text/javascript">
window.signalman = { connected: false, hub: null, argumentCount: 0 };
$(function() {
@ronaldosena
ronaldosena / git-centos-install.sh
Created December 7, 2018 00:27
Install latest git on Cent-OS 7
# Check if you get GCC instaled
# You should see the version, if not you can install with
# sudo yum groupinstall "Development tools"
gcc -v
# Change into your download folder
cd
cd Downloads
# Download lastest git version from git-scm.com (at this time 2.9.5)
#!/bin/bash
# drop this in the destination folder then run:
# $ chmod 755 hello_world
# usage:
# $ ./gitgo "your message"
# to run this scrip in any context, drop the file in some folder, like ~/bin
# then add to path:
@ronaldosena
ronaldosena / FizzBuzz.js
Created September 8, 2018 00:48
Series of FizzBuzz solutions
for (let i = 0; i < 100; i++) {
// if (i % 15 == 0) {
if (i % 3 == 0 && i % 5 == 0) {
console.log('FizzBuzz');
} else {
if (i % 5 == 0) {
console.log('Buzz');
} else {
if (i % 3 == 0) {
console.log('Fizz');