Skip to content

Instantly share code, notes, and snippets.

View broomstar's full-sized avatar
🙄
write no code

broomstar

🙄
write no code
View GitHub Profile
@broomstar
broomstar / keybase.md
Created February 27, 2018 08:31
emmmm

Keybase proof

I hereby claim:

  • I am broomstar on github.
  • I am broomstar (https://keybase.io/broomstar) on keybase.
  • I have a public key ASARlEn28m5cDv4JACwl_xadHpTgUy9YXlHWBIpFeoIXvgo

To claim this, I am signing this object:

@broomstar
broomstar / gist:7acf50b4e848031b5e307e7f2b2c0b10
Created December 11, 2017 13:27 — forked from evansd/gist:1639992
Global find and replace using ack
function substitute {
if [ -z "$1" -o -z "$2" ]; then
echo "Usage: substitue FROM_STRING TO_STRING [OPTION]..."
echo
echo "Replace all occurances of FROM_STRING (a sed-compatible regular"
echo "expression) with TO_STRING in all files for which ack-grep matches"
echo "FROM_STRING."
echo
echo "Any additional options are passed directly to ack-grep (e.g.,"
echo " --type=html would only run the substitution on html files)."
@broomstar
broomstar / Castle.xml
Created September 8, 2017 16:26 — forked from kwmt/Castle.xml
<?xml version="1.0" encoding="UTF-8" ?>
<Data>
<Series>
<id>83462</id>
<Actors>|Nathan Fillion|Stana Katic|Molly C. Quinn|Jon Huertas|Seamus Dever|Tamala Jones|Susan Sullivan|Ruben Santiago-Hudson|Monet Mazur|</Actors>
<Airs_DayOfWeek>Monday</Airs_DayOfWeek>
<Airs_Time>10:00 PM</Airs_Time>
<ContentRating>TV-PG</ContentRating>
<FirstAired>2009-03-09</FirstAired>
<Genre>|Drama|</Genre>
#include "MyWidget.h"
#include "ui/UIText.h"
USING_NS_CC;
using namespace std;
using namespace cocos2d::ui;
MyWidget::MyWidget(){}
Widget::ccWidgetTouchCallback MyWidget::onLocateTouchCallback(const string &callBackName)
{