Skip to content

Instantly share code, notes, and snippets.

View Nthole's full-sized avatar

Branny Mthelebofu Nthole

  • Banny Joma Enterprise
  • Johannesburg
View GitHub Profile
@morganahuber04
morganahuber04 / Untitled.py
Created November 28, 2015 18:13
Untitled.py
from scene import *
import ui
print('Welcome to fortune teller!')
number = input('type a number from 1 - 25')
if number == 1 :
print('you will become a millionare when you are 57 years old')
elif number == 2 :
print('you will become famous in 1 year')
create schema Temperature(place string, temperature double);

create window HallTemperature.win:length(2) as Temperature;
insert into HallTemperature select * from Temperature(place='hall');

create window BedroomTemperature.win:length(2) as Temperature;
insert into BedroomTemperature select * from Temperature(place='bedroom');
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8" />
<title></title>
<script src="jquery-1.11.3.min.js"></script>
<script src="jquery-ui.min.js"></script>
<script type="text/javascript" src="jquery-ui-i18n.min.js"></script>
<link rel="stylesheet" href="jquery-ui.min.css" />
<script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja" dir="ltr" xmlns:og="http://ogp.me/ns#" xmlns:mixi="http://mixi-platform.com/ns#">
<head>
<meta http-equiv="Content-Language" content="ja" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="jquery.highlight-5.js"></script>
<style type="text/css">
.highlight {
// There are two ways to run this script
//
// 1. Replace all Smart Quotes in all Docs that are inside of a folder (and all subfolders)
// 2. Replace all Smart Quotes in one particular file
//
// Choose the which one you want to use and then change the value of the appropriate var, then select the method from the menu and press Run.
// Replace Smart Quotes with Dumb Quotes for every Document that is inside of the given folder
function findAndReplaceAll() {
@clive-bunting
clive-bunting / bonfire-mutations.js
Created November 28, 2015 18:08
Bonfire: Mutations
// Bonfire: Mutations
// Author: @clive-bunting
// Challenge: http://www.freecodecamp.com/challenges/bonfire-mutations?solution=function%20mutation(arr)%20%7B%0A%20%20var%20first%20%3D%20arr%5B0%5D.toLowerCase()%3B%0A%20%20var%20second%20%3D%20arr%5B1%5D.toLowerCase()%3B%0A%20%20%0A%20%20for%20(var%20i%20%3D%200%3B%20i%20%3C%20second.length%3B%20i%2B%2B)%20%7B%0A%20%20%20%20if%20(first.indexOf(second%5Bi%5D)%20%3D%3D%3D%20-1)%20%7B%0A%20%20%20%20%20%20return%20false%3B%0A%20%20%20%20%7D%0A%20%20%7D%0A%20%20%0A%20%20return%20true%3B%0A%7D%0A%0Amutation(%5B%22hello%22%2C%20%22hey%22%5D)%3B%0A
// Learn to Code at Free Code Camp (www.freecodecamp.com)
function mutation(arr) {
var first = arr[0].toLowerCase();
var second = arr[1].toLowerCase();
for (var i = 0; i < second.length; i++) {
@doncams
doncams / Routes.js
Created November 28, 2015 18:08
Cannot render from server
import React from 'react';
import { IndexRoute, Route, Link } from 'react-router';
const App = React.createClass({
render() {
return (
<div>
<h1>App</h1>
<ul>
<li><Link to="/about">About</Link></li>