This file contains hidden or 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
| var Gscrape = function(domain) { | |
| var domain = domain || 'com', | |
| searchURL = 'http://www.google.' + domain + '/search?q=', | |
| searchInProgress = false, | |
| cache = { | |
| error: '', | |
| success: true, | |
| pages: 0, | |
| urls: {} | |
| }; |
This file contains hidden or 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
| #!/bin/sh | |
| # Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
| # CREATE block and create them in separate commands _after_ all the INSERTs. | |
| # Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
| # The mysqldump file is traversed only once. | |
| # Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite | |
| # Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite |
This file contains hidden or 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
| library(shiny) | |
| library(datasets) | |
| Logged = FALSE; | |
| PASSWORD <- data.frame(Brukernavn = "withr", Passord = "25d55ad283aa400af464c76d713c07ad") | |
| # Define server logic required to summarize and view the selected dataset | |
| shinyServer(function(input, output) { | |
| source("www/Login.R", local = TRUE) | |
| observe({ | |
| if (USER$Logged == TRUE) { |
This file contains hidden or 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
| library(shiny) | |
| library(ggplot2) | |
| # Get the current day of the month | |
| dom <- 25 | |
| # Define the target for salespeople in our organization. | |
| salesTarget <- 15000 | |
| # Set the seed so we always get the same data. |
This file contains hidden or 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
| If you see the error message below, you may need this patch: | |
| Undefined symbols for architecture x86_64: | |
| "_tun_close", referenced from: | |
| _tuntap_open in n2n.a(tuntap_osx.o) | |
| ld: symbol(s) not found for architecture x86_64 | |
| # How to use | |
| If you got the source code from official repository, like me: | |
| svn co https://svn.ntop.org/svn/ntop/trunk/n2n |
This file contains hidden or 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
| // gcc -O2 -Wall -pedantic process-mysqldump.c -o process-mysqldump | |
| // Usage: cat dump.sql | process-mysqldump | |
| // Or : process-mysqldump dump.sql | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <stdbool.h> | |
| #include <string.h> | |
| #define BUFFER 100000 |
This file contains hidden or 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
| ########################################### | |
| ### COMMANDS TO START WITH R ON ANDROID ### | |
| ########################################### | |
| # Under GNU-GPL license | |
| # R in Android installed via the apps "GNURoot" and "GNURoot Wheezy", and sources.list updated with the newest CRAN repositories. | |
| # I strongly recommend to set the working directory of R to a folder that can be accessed from Android such as /sdcard | |
| setwd("/sdcard/R") |
This file contains hidden or 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
| library(shiny) | |
| library(shinydashboard) | |
| library(sparkline) | |
| library(httr) | |
| library(jsonlite) | |
| library(data.table) | |
| library(dplyr) | |
| library(rvest) | |
| library(magrittr) | |
| library(XML) |
This file contains hidden or 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 requests | |
| import re | |
| import sys | |
| tags = ['', 'python', 'javascript', 'django', 'web', 'google', 'java', 'ajax', | |
| 'rails', 'plugin', 'android', 'cplusplus', 'mysql', 'dotnet', 'game', | |
| 'appengine', 'php', 'flash', 'jquery', 'database', 'gwt'] | |
| seen_tags = set(tags) |
This file contains hidden or 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
| #!/bin/bash | |
| # Ubuntu Developer Script For pdf2htmlEx | |
| # Created by Rajeev Kannav Sharma | |
| # http://rajeevkannav.github.io/ | |
| # | |
| # | |
| # Downloads and configures the following: | |
| # | |
| # CMake, pkg-config | |
| # GNU Getopt |
OlderNewer