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 os | |
import ycm_core | |
# You can set a directory with a lot of libraries to be search recursively here | |
nestedLibDirs = ["lib"] | |
include_flags = [ | |
'-I.' | |
,'-I./mbed-os' | |
,'-I./mbed-os/cmsis' |
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
AVR only; support -C for AVR memory usage - Rev1 | |
Source: http://git.makehackvoid.com/cgi-bin/gitweb.cgi?p=mhvavrtools.git;a=blob_plain;f=mhvavrtools/patches/binutils-001-avr-size.patch;h=e80d28eae46217551d996a2253256c97d10aa4b5;hb=refs/heads/master | |
=========================================================== | |
--- binutils/size.c | |
+++ binutils/size.c | |
@@ -34,10 +34,31 @@ | |
#include "getopt.h" | |
#include "bucomm.h" | |
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
// | |
// Buffer.swift | |
// SwiftSerialport | |
// | |
// Created by Ladislas de Toldi on 09/10/2018. | |
// | |
import Foundation | |
public class Buffer { |
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
struct function_t { | |
let type: String? | |
let action: Any? | |
init(type: String, action: Any?) { | |
self.type = type | |
self.action = action | |
} | |
} |
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
// | |
// main.swift | |
// Test | |
// | |
// Created by Ladislas de Toldi on 29/08/2018. | |
// | |
//: Playground - noun: a place where people can play | |
import Darwin |
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 AppKit | |
let stringHTML = "<meta charset=\'utf-8\'><div style=\"color: rgb(160, 160, 160); font-family: Helvetica, Arial, sans-serif; font-size: 10px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; line-height: 15px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;\">Ladislas de Toldi | cofounder & ceo @<span class=\"Apple-converted-space\"> </span><a href=\"http://leka.io\" class=\"link\" style=\"color: rgb(75, 152, 209); text-decoration: none;\">Leka Inc.</a></div><div style=\"color: rgb(160, 160, 160); font-family: Helvetica, Arial, sans-serif; font-size: 10px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; line-height: 15px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0 |
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 <bitset> | |
// g++ main.cpp -o main && ./main | |
uint8_t b = 0b00000001; | |
int main() { | |
b |= (1 << 7); |
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
# frozen_string_literal: true | |
source "https://rubygems.org" | |
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } | |
gem "colorize" | |
gem "terminal-table" | |
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
for f in "$@" | |
do | |
TMP=$(mktemp) | |
SIZE_OLD=$(wc -c < "$f") | |
echo "Optimizing '$f' of size $SIZE_OLD" | |
/usr/local/bin/gs \ | |
-dNOPAUSE -dBATCH -dSAFER \ | |
-sDEVICE=pdfwrite \ |
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 AppKit | |
let stringHTML = "<meta charset=\'utf-8\'><div style=\"color: rgb(160, 160, 160); font-family: Helvetica, Arial, sans-serif; font-size: 10px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; line-height: 15px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;\">Ladislas de Toldi | cofounder & ceo @<span class=\"Apple-converted-space\"> </span><a href=\"http://leka.io\" class=\"link\" style=\"color: rgb(75, 152, 209); text-decoration: none;\">Leka Inc.</a></div><div style=\"color: rgb(160, 160, 160); font-family: Helvetica, Arial, sans-serif; font-size: 10px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; line-height: 15px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0 |