Skip to content

Instantly share code, notes, and snippets.

func BinaryCount(n int, result string){
if n == len(result) {
fmt.Println(result)
} else {
BinaryCount(n, result + "0")
BinaryCount(n, result + "1")
}
}
package main
import "fmt"
func main() {
BinaryCount(3, "")
}
func BinaryCount(n int, result string){
if n == len(result) {
@anderZubi
anderZubi / HelloWorld.cs
Last active August 29, 2015 14:01
Hello World in C#
using System;
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Kaixo, mundua!");
}
}
@anderZubi
anderZubi / hello_world.py
Created May 14, 2014 14:04
Hello World in Python
print('Kaixo, mundua!')
@anderZubi
anderZubi / transmission_install.sh
Last active September 9, 2024 07:36
Script to install Transmission BitTorrent client in WD MyCloud NAS
#!/bin/bash
echo Backing up your sources.list...
cp /etc/apt/sources.list /etc/apt/sources.list.bak
echo Adding the sid repo to sources.list...
echo deb http://ftp.us.debian.org/debian/ sid main >> /etc/apt/sources.list
echo Updating the sid packages list...
apt-get update
import tweepy, datetime, time
CONSUMER_KEY ="zure_consumer_key"
CONSUMER_SECRET = "zure_consumer_secret"
ACCESS_KEY = "zure_access_key"
ACCESS_SECRET = "zure_access_secret"
def txiokatu_ordua():
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
auth.set_access_token(ACCESS_KEY, ACCESS_SECRET)