This file contains 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
Twitter autoresponder bot | |
========================= | |
By Daniel15 (dan.cx) | |
This is a very simple Twitter autoresponder bot. It requires PECL OAuth extension to be installed (run "pecl install oauth", or if on Windows, grab php-oauth.dll. If using cPanel you can install it via WHM). The authentication is designed for command-line usage, it won't work too well via a web browser. You'll have to sign up for an application on Twitter's site to get the consumer key and secret. | |
Could be modified to be more advanced (match regular expressions to answer questions, etc.) | |
By Iskigow | |
Added Match regular expressions... |
This file contains 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
package br.com.tecsinapse.dojo | |
class Anagram { | |
def static anagram ( word ) { | |
// If the word has the size 1 it is itself the anagram, otherwise I want the permutations | |
return (word?.size() == 1) ? [ word ] : permutation( word ) | |
} | |
def static permutation ( word ) { |
This file contains 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
public class LazyProdutoDataModel extends LazyDataModel<Produto> { | |
// ... | |
private ProtudoService produtoService; | |
// ... | |
@Override | |
public List<Produto> load(int first, int pageSize, String sortField, SortOrder sortOrder, Map<String, String> filters) { |
This file contains 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
[[[HSRC]]] | |
[[[STEP]]] | |
[[[DEFINE routername="Thomson DWG850-B4"/]]] | |
[[[/STEP]]] | |
[[[STEP]]] | |
[[[REQUEST]]] | |
GET /RgDhcp.asp HTTP/1.1 | |
Host: %%%routerip%%% |
This file contains 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
Ex.: n = 3 e k = 5 | |
['0b111', '0b11', '0b101', '0b110', '0b1', '0b10', '0b100', '0b0'] | |
quinto elemento '0b1' | |
n = 4 | |
['0b1111', '0b111', '0b1011', '0b1101', '0b1110', '0b11', '0b101', '0b110', '0b1001', '0b1010', '0b1100', '0b1', '0b10', '0b100', '0b1000', '0b0'] | |
n = 5 | |
['0b11111', '0b1111', '0b10111', '0b11011', '0b11101', '0b11110', '0b111', '0b1011', '0b1101', '0b1110', '0b10011', '0b10101', '0b10110', '0b11001', '0b11010', '0b11100', '0b11', '0b101', '0b110', '0b1001', '0b1010', '0b1100', '0b10001', '0b10010', '0b10100', '0b11000', '0b1', '0b10', '0b100', '0b1000', '0b10000', '0b0'] |
This file contains 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 | |
unload() { | |
sudo killall VBoxNetDHCP | |
sudo /Library/Application\ Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh stop | |
} | |
load() { | |
sudo /Library/Application\ Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh start | |
} |
This file contains 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
package br.com.tecsinapse.examples; | |
import java.io.Serializable; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.joda.time.LocalDate; | |
import org.joda.time.YearMonth; | |
import com.google.common.base.Objects; |
This file contains 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
// ==UserScript== | |
// @name Solve Huetest Kiosk Test | |
// @namespace http://tampermonkey.net/ | |
// @version 2.0 | |
// @require http://code.jquery.com/jquery-3.4.1.min.js | |
// @require https://raw.githubusercontent.com/padolsey-archive/jquery.fn/master/sortElements/jquery.sortElements.js | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.xrite.com/hue-test | |
// ==/UserScript== |
This file contains 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
#!/usr/bin/env groovy | |
import org.apache.shiro.crypto.UnknownAlgorithmException | |
@Grab('org.apache.shiro:shiro-core:1.2.4') | |
import org.apache.shiro.crypto.hash.SimpleHash | |
private getOptions(CliBuilder cli, args) { | |
OptionAccessor options = cli.parse(args) | |
if (!options) { | |
return null |
This file contains 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
Caught: org.codehaus.groovy.runtime.metaclass.MissingMethodExceptionNoStack: No signature of method: org.joda.time.LocalDate.next() is applicable for argument types: () values: [] | |
Possible solutions: get(org.joda.time.DateTimeFieldType), get(org.joda.time.DateTimeFieldType), wait(), era(), now(), year() | |
org.codehaus.groovy.runtime.metaclass.MissingMethodExceptionNoStack: No signature of method: org.joda.time.LocalDate.next() is applicable for argument types: () values: [] | |
Possible solutions: get(org.joda.time.DateTimeFieldType), get(org.joda.time.DateTimeFieldType), wait(), era(), now(), year() |
OlderNewer