Skip to content

Instantly share code, notes, and snippets.

Avatar

Francis Agyapong francis36012

  • Calgary, Canada
View GitHub Profile
@francis36012
francis36012 / google_chrome_and_talk_plugin_installer
Created Apr 19, 2015
Installs google chrome and google talk plugin on an ubuntu based system
View google_chrome_and_talk_plugin_installer
#!/bin/bash
installgtalkplugin() {
printf 'Downloading Google Talk Plugin...\n\n'
case `uname -i` in
i386|i486|i586|i686)
wget https://dl.google.com/linux/direct/google-talkplugin_current_i386.deb
;;
x86_64)
View install_scala_sbt.sh
#!/bin/sh
# one way (older scala version will be installed)
# sudo apt-get install scala
#2nd way
sudo apt-get remove scala-library scala
wget http://www.scala-lang.org/files/archive/scala-2.11.6.deb
sudo dpkg -i scala-2.11.6.deb
sudo apt-get update
View nightscape_sketch.pde
/*
Beautiful night landscape with a full moon and a clear sky that gives you a feeling of peace.
The mountains and the stars are generated dynamically
*/
color[] colors = {#FFF8E3, #FFFDD6, #FFFDFC, #F3FFD6, #FDF6C7, #E2E2E2};
color[] shades = {#18222B, #202E3B, #34495E};
void setup() {
size(1000,707);
View BatchRenamer.java
import java.io.*;
public class BatchRename {
private static File userfile;
private static void renameAll(File folder) throws Exception{
String currentname;
String newname;
You can’t perform that action at this time.