Skip to content

Instantly share code, notes, and snippets.

View moacir's full-sized avatar

Moacir de Oliveira moacir

  • Manaus - AM - Brazil
View GitHub Profile
@moacir
moacir / Child
Created October 27, 2010 15:20
Parent
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.searchengine</groupId>
<artifactId>crawler</artifactId>
<packaging>jar</packaging>
<version>0.1-SNAPSHOT</version>
<name>crawler</name>
<url>http://maven.apache.org</url>
<parent>
@moacir
moacir / gist:758535
Created December 29, 2010 13:31
strstr
{
"name":"strstr",
"purpose":"Find first occurrence of a string",
"manualid":"function.strstr",
"version":"PHP 4, PHP 5",
"params":[
{"name":"haystack","type":"string","optional":"false"},
{"name":"needle","type":"mixed","optional":"false"},
{"name":"before_needle","type":"bool","optional":"true","initializer":"false"}
],
{
"theater": {
"id": "4",
"movies": [
{
"id": "47",
"sessionType": "1",
"sessions": [
{"time": "12h50", "observation": ""},
{"time": "15h30", "observation": ""},
@moacir
moacir / index.php
Last active January 1, 2016 15:08
Extracting last news from Hacker News using Symfony DomCrawler
<?php
require_once './vendor/autoload.php';
use Symfony\Component\DomCrawler\Crawler;
$content = @file_get_contents('https://news.ycombinator.com/news');
if (!$content) {
die('Not able to get contents from Hacker News :(');
@moacir
moacir / composer.json
Last active January 1, 2016 15:09
composer.json to install DomCrawler and CssSelector
{
"require": {
"symfony/dom-crawler": "2.4.*",
"symfony/css-selector": "2.4.*"
}
}
@moacir
moacir / widgetlist.xml
Created August 12, 2014 16:01
Widgetlist
<?xml version="1.0" encoding="UTF-8"?>
<rsp stat="ok">
<list>
<widget id="appName1">
<title>app name 1</title>
<compression size="100000" type="zip"/>
<description></description>
<download>http://xxx.xxx.xxx.xxx/Widget/appName1_20130523.zip</download>
</widget>
</list>
-> Chuva de asteróides atinge a atmosfera
-> Densa névoa contaminada cobre o planeta
-> Seres humanos são seriamente atingidos e quase extintos em semanas
-> Alguns grupos de pessoas conseguem sobreviver
-> Alguns animais apresentam mutações e formas humanóides
-> Invasão alienígena é iniciada em todos os continentes
-> Manaus forma base de resistência defendida por animais mutantes
@moacir
moacir / gist:dc0dc8442e21bcf8b3b7
Last active August 29, 2015 14:21
Web App Frameworks
http://ionicframework.com
http://www.idangero.us/framework7
http://chocolatechip-ui.com/index.html
http://onsen.io
https://www.nativescript.org
@moacir
moacir / NES Links
Last active April 7, 2017 16:43
NES Programming
@moacir
moacir / gist:907a7994e851895245f6e83eddc2e5d7
Last active June 14, 2019 13:35
Beatles - Red Album - Bass Tabs
1. Love Me Do: https://tabs.ultimate-guitar.com/tab/the_beatles/love_me_do_bass_103052
2. Please Please Me: https://tabs.ultimate-guitar.com/tab/the_beatles/please_please_me_bass_577274
3. From Me to You: https://tabs.ultimate-guitar.com/tab/the_beatles/from_me_to_you_bass_531166
4. She Loves You: https://tabs.ultimate-guitar.com/tab/the_beatles/she_loves_you_bass_523537
5. I Want to Hold Your Hand: https://tabs.ultimate-guitar.com/tab/the_beatles/i_want_to_hold_your_hand_bass_826473
6. All My Loving: https://tabs.ultimate-guitar.com/tab/the_beatles/all_my_loving_bass_17465
7. Can't Buy Me Love: https://tabs.ultimate-guitar.com/tab/the_beatles/cant_buy_me_love_bass_520554
8. A Hard Day's Night: https://tabs.ultimate-guitar.com/tab/the_beatles/a_hard_days_night_bass_519048
9. And I Love Her: https://tabs.ultimate-guitar.com/tab/the_beatles/and_i_love_her_bass_531564
10. Eight Days a Week: https://tabs.ultimate-guitar.com/tab/the_beatles/eight_days_a_week_bass_562590