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
;--------------------------------------------------- | |
; Programa: attribuição e soma de variãveis | |
; Autor: Luiz Carlos Zamboni | |
; Data: 25/05/2015 | |
;--------------------------------------------------- | |
LDI 0 ; zerar o acumulador | |
X EQU 80 ; variavel 1 128 em decimal | |
Y EQU 81 ; variavel 2 129 em decimal |
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
rvm use jruby && bundle && bundler exec sidekiq -e development -C config/sidekiq.yml |
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 com.company; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.Map.Entry; | |
public class StrongParameters { |
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
import java.util.Arrays; | |
public class Routes { | |
public static void main(String[] args) | |
{ | |
Route editRoute = new Route("admin/user/edit/:id").withMethod("GET").dispatch(ExampleController.class).withAction("edit"); | |
System.out.println(editRoute); | |
System.out.println(editRoute.match("admin/user/edit/34")); |
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
//================================================================================================== | |
// T e x 2 p n g Implementation | |
// By Bruno Bachelet | |
//================================================================================================== | |
// Copyright (c) 1999-2011 | |
// Bruno Bachelet - [email protected] - http://www.nawouak.net | |
// | |
// This program is free software; you can redistribute it and/or modify it under the terms of the | |
// GNU General Public License as published by the Free Software Foundation; either version 2 of the | |
// License, or (at your option) any later version. |
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
"use strict"; | |
var P = require("bluebird") | |
var _ = require("underscore") | |
let items = [0,12.5,5,5,87,8,7,48,58,7,78,4,87,854,84,787,78,4,87,7] | |
console.log("items length ------------> " + items.length) | |
let level = 0 | |
function processList(_items){ |
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/sh | |
export PRIVATEADDRS=$(curl -s http://169.254.169.254/metadata/v1/interfaces/private/0/ipv4/address) | |
apt-get update | |
sudo apt-get install default-jre -y | |
wget -O /tmp/es https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/2.4.1/elasticsearch-2.4.1.deb |
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
# This file is used by Rack-based servers to start the application. | |
class Api | |
def initialize app | |
@app = app | |
end | |
def call(env) | |
req = Rack::Request.new env |
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
#include <iostream> | |
#include <stdio.h> | |
#include <stdlib.h> | |
/* | |
para comilar no linux use: | |
g++ ead.cpp | |
e para rodar: | |
./a.out -a 1 |
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
USER="root" # default digitalOcean user | |
APP_NAME="xxx" | |
DEPLOY_DIR="/var/www/${APP_NAME}/" | |
HOST="xxx.xxx.xxx.xxx" | |
echo -e "1) update project" | |
CMD="cd ${DEPLOY_DIR} && git pull" | |
echo $CMD | |
ssh ${USER}@${HOST} $CMD |
OlderNewer