Skip to content

Instantly share code, notes, and snippets.

│01:43:31 weechat | python: carregando script "/home/squarezin/.we
│ | echat/python/autoload/anotify.py"
│01:43:31 weechat | python: stdout/stderr: Traceback (most recent
│ | call last):
│01:43:31 weechat | python: stdout/stderr: File "/home/squarezin
│ | /.weechat/python/autoload/anotify.py", line
│ | 66, in <module>
│01:43:31 weechat | python: stdout/stderr: import pynotify
│01:43:31 weechat | python: stdout/stderr: File "/usr/lib/python
│ | 2.7/site-packages/gtk-2.0/pynotify/__init__.py
@renanccastro
renanccastro / custom_eula.txt
Created February 1, 2016 03:17
custom eula for user generated content
LICENSED APPLICATION END USER LICENSE AGREEMENT
The Products transacted through the Service are licensed, not sold, to You for use only under the terms of this license, unless a Product is accompanied by a separate license agreement, in which case the terms of that separate license agreement will govern, subject to Your prior acceptance of that separate license agreement. The licensor (“Application Provider”) reserves all rights not expressly granted to You. The Product that is subject to this license is referred to in this license as the “Licensed Application.”
a. Scope of License: This license granted to You for the Licensed Application by Application Provider is limited to a non-transferable license to use the Licensed Application on any iPhone or iPod touch that You own or control and as permitted by the Usage Rules set forth in Section 9.b. of the App Store Terms and Conditions (the “Usage Rules”). This license does not allow You to use the Licensed Application on any iPod touch or iPhone that You do n
projectname="meteor-beacon"
schemename="meteor-beacon"
xcodebuild archive -project $projectname.xcodeproj -scheme $schemename -archivePath $projectname.xcarchive
xcodebuild -exportArchive -archivePath $projectname.xcarchive -exportPath $projectname -exportFormat ipa -exportProvisioningProfile "YOUR PROVISIONING PROFILE NAME"
var nav = window.navigator;
if( this.phonegapNavigationEnabled &&
nav &&
nav.app &&
nav.app.backHistory ){
nav.app.backHistory();
} else {
window.history.back();
}
Started by user Renan Castro
[EnvInject] - Loading node environment variables.
Building on master in workspace /var/lib/jenkins/jobs/landing-page_homolog_meteor_deploy/workspace
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url git@bitbucket.org:tecsinapse/landing-page-generator.git # timeout=10
Fetching upstream changes from git@bitbucket.org:tecsinapse/landing-page-generator.git
> git --version # timeout=10
> git -c core.askpass=true fetch --tags --progress git@bitbucket.org:tecsinapse/landing-page-generator.git +refs/heads/*:refs/remotes/origin/*
> git rev-parse origin/homolog^{commit} # timeout=10
ida = new Array();
pontos = new Array();
volta = new Array();
codigo = new Array();
$ = cheerio.load(data);
parseJavascriptAndSave($('script').contents().text(), codigo_linha, iterador);
function parseJavascriptAndSave(script, codigo_linha, iterador){
//descarta o window, pois não tem no node(server-side)
@renanccastro
renanccastro / slack_delete_all_files.py
Last active July 23, 2016 17:30
deletando files próprios
from slacker import Slacker
# primeiro, instale com: pip install slacker
# deleta todos os arquivos
token = 'gere seu token em: https://api.slack.com/docs/oauth-test-tokens'
name = 'renan.castro'
slack = Slacker(token)
# Get users list
<div id="demo">
<p>{{message}}</p>
<input v-model="message">
</div>
<!DOCTYPE html>
<html lang="en-US">
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<body>
<div ng-app="">
<p>Name : <input type="text" ng-model="name"></p>
<h1>Hello {{name}}</h1>
</div>
var HelloMessage = React.createClass({
render: function() {
return <div>Hello {this.props.name}</div>;
}
});
ReactDOM.render(<HelloMessage name="John" />, mountNode);