Skip to content

Instantly share code, notes, and snippets.

View antoniosilveira's full-sized avatar

Antonio Silveira antoniosilveira

View GitHub Profile
@gsamat
gsamat / download.sh
Last active September 29, 2015 17:35
slack private group to channel import
#!/bin/sh
# 0. create a channel you want to import to
# 1. first you get token and channel_id from slack's API page
# 2. then you run the script
# 3. while it is running, you export your team data, delete everything except one channels.json, users.json and one dir for you channel
# 4. then manually (sorry guys) craft json and put it into channel dir
# 5. make zip and upload it to import
# 6. profit
token=
channel_id=

Setup

Add the following gems to your Gemfile:

gem 'activeresource'
gem 'newrelic_api'

Update your bundle:

@mavimo
mavimo / Readme.md
Last active March 11, 2023 09:22 — forked from steintore/Readme.md

Description

Dashing widget to display a Jenkins build status and build progress

The widget is based on the meter-widget which is default in the Dashing installation

The widget can also see the progress of a "pre-build", i.e if you have a job triggering the actual build you want to define, you can configure this job in the jenkins_build.rb as a prebuild.

For more information, please see Coding Like a tosser

@azat-co
azat-co / JSFUN.md
Last active February 7, 2020 12:22
JavaScript FUNdamentals

JS FUNdamentals

If it's not fun, it's not JavaScript.

Expressiveness

Programming languages like BASIC, Python, C has boring machine-like nature which requires developers to write extra code that's not directly related to the solution itself. Think about line numbers in BASIC or interfaces, classes and patterns in Java.

On the other hand JavaScript inherits the best traits of pure mathematics, LISP, C# which lead to a great deal of expressiveness (and fun!).

@davefp
davefp / LICENSE.md
Last active April 1, 2021 04:30
Weather Widget for Dashing

The MIT License (MIT)

Copyright (c) 2014 David Underwood

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

@aaronksaunders
aaronksaunders / post.js
Last active March 16, 2019 14:57
Start of rest adapter for Appcelerator Alloy & sample model file
//
// blog.clearlyionnovative.com
// twitter: @aaronksaunders
//
// Model file for integration Appcelerator Titanium Alloy with Wordpress JSON Plugin
//
exports.definition = {
config : {
"columns" : {},
@tsteur
tsteur / titanium_mobile_apidoc_2_sublimetext.php
Last active October 13, 2015 19:30
Converts Titanium Mobile documentation from API.JSON to sublime-completions (Sublime Text 2 Auto Completion)
<?php
// usage: php -d memory_limit=256M titanium_mobile_apidoc_2_sublimetext.php > Tita.sublime-completions
function shorten_titanium($key)
{
return str_replace('Titanium', 'Ti', $key);
}
function get_completions($content)
{
$processed = array();
@leifg
leifg / README.md
Created December 6, 2012 15:48
Jenkins Dashboard using dashing

This is an example of adding Jenkins build status to a [dashing-dashboard](https://github.com/Shopify/dashing

If a job is running, the widget will have a grey background. If a job succeeded at its last run, it will have a green background. If a job failed at its last run, it will have a red background.

Requirements:

@adamgit
adamgit / .gitignore
Last active November 11, 2024 06:14
.gitignore file for Xcode4 / OS X Source projects
#########################
# .gitignore file for Xcode4 and Xcode5 Source projects
#
# Apple bugs, waiting for Apple to fix/respond:
#
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation?
#
# Version 2.6
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
@alganet
alganet / todo.php
Created June 23, 2012 00:49
A very small PHP todo list that saves to the database in 32 lines
<?php
//The actual implementation is just this file. Others are usage and tests.
class TodoList extends ArrayObject
{
const CREATE = 'CREATE TABLE IF NOT EXISTS tasks (name VARCHAR(32) PRIMARY KEY, status INT)';
const SELECT = 'SELECT * FROM tasks';
const INSERT = 'INSERT INTO tasks VALUES (?,?)';
const UPDATE = 'UPDATE tasks SET status = ? WHERE name = ?';